Header Ads

OSPF ROUTING PROTOCOL

Download The Pkt File:
Download



OSPF ROUTING:

OSPF Routing between 3 routers and 2 pc
                                                   

Configuration:

PC0:

PC1:

Router 1:
Router>en
Router#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#int
Router(config)#interface fa
Router(config)#interface fastEthernet 0/0
Router(config-if)#ip add
Router(config-if)#ip address 192.168.1.1 255.255.255.0
Router(config-if)#no sh

Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up

Router(config-if)#exit
Router(config)#int
Router(config)#interface se
Router(config)#interface serial 0/0/0
Router(config-if)#ip add
Router(config-if)#ip address 192.168.3.1 255.255.255.0
Router(config-if)#clo
Router(config-if)#clock ra
Router(config-if)#clock rate 64000
Router(config-if)#no sh

%LINK-5-CHANGED: Interface Serial0/0/0, changed state to down
Router(config-if)#exit
Router(config)#int
Router(config)#interface se
Router(config)#interface serial 0/0/1
Router(config-if)#ip add
Router(config-if)#ip address 192.168.5.1 255.255.255.0
Router(config-if)#clo
Router(config-if)#clock r
Router(config-if)#clock rate 64000
Router(config-if)#no sh

%LINK-5-CHANGED: Interface Serial0/0/1, changed state to down
Router(config-if)#exit
Router(config)#do wr
Building configuration...
[OK]
Router(config)#

Router 2:
Router>en
Router#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#int
Router(config)#interface fa
Router(config)#interface fastEthernet 0/0
Router(config-if)#ip add
Router(config-if)#ip address 192.168.2.1 255.255.255.0
Router(config-if)#no sh

Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up

Router(config-if)#exit
Router(config)#int
Router(config)#interface se
Router(config)#interface serial 0/0/1
Router(config-if)#ip add
Router(config-if)#ip address 192.168.5.2 255.255.255.0
Router(config-if)#no sh

Router(config-if)#
%LINK-5-CHANGED: Interface Serial0/0/1, changed state to up

Router(config-if)#exit
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0/1, changed state to up

Router(config)#int
Router(config)#interface se
Router(config)#interface serial 0/0/0
Router(config-if)#ip add
Router(config-if)#ip address 192.168.4.1 255.255.255.0
Router(config-if)#no sh

%LINK-5-CHANGED: Interface Serial0/0/0, changed state to down
Router(config-if)#exit
Router(config)#do wr
Building configuration...
[OK]
Router(config)#

Router 0:

Router>en
Router#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#int
Router(config)#interface se
% Incomplete command.
Router(config)#int
Router(config)#interface se
Router(config)#interface serial 0/0/0
Router(config-if)#ip add
Router(config-if)#ip address 192.168.3.2 255.255.255.0
Router(config-if)#no sh

Router(config-if)#
%LINK-5-CHANGED: Interface Serial0/0/0, changed state to up

Router(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0/0, changed state to up

Router(config-if)#exit
Router(config)#int
Router(config)#interface se
Router(config)#interface serial 0/0/1
Router(config-if)#ip add
Router(config-if)#ip address 192.168.4.2 255.255.255.0
Router(config-if)#clo
Router(config-if)#clock ra
Router(config-if)#clock rate 64000
Router(config-if)#no sh

Router(config-if)#
%LINK-5-CHANGED: Interface Serial0/0/1, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0/1, changed state to up

Router(config-if)#exit
Router(config)#do wr
Building configuration...
[OK]
Router(config)#

Router 1 OSPF:
Router>en
Router#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#router ospf 10
Router(config-router)#net
Router(config-router)#network 192.168.1.0 0.0.0.255 area 0
Router(config-router)#network 192.168.3.0 0.0.0.255 area 0
Router(config-router)#network 192.168.5.0 0.0.0.255 area 0
Router(config-router)#exit
Router(config)#do wr
Building configuration...
[OK]
Router(config)#


Router 2 OSPF:
Router>en
Router#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#rou
Router(config)#router ospf 10
Router(config-router)#ne
Router(config-router)#net
Router(config-router)#network 192.168.2.0 0.0.0.255 area 0
Router(config-router)#network 192.168.4.0 0.0.0.255 area 0
Router(config-router)#network 192.168.5.0 0.0.0.255 area 0
Router(config-router)#
01:30:34: %OSPF-5-ADJCHG: Process 10, Nbr 192.168.5.1 on Serial0/0/1 from LOADING to FULL, Loading Done

Router(config-router)#exit
Router(config)#do wr
Building configuration...
[OK]
Router(config)#


Router 0 OSPF:
Router>en
Router#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#rou
Router(config)#router ospf 10
Router(config-router)#net
Router(config-router)#network 192.168.3.0 0.0.0.255 area 0
Router(config-router)#
01:32:33: %OSPF-5-ADJCHG: Process 10, Nbr 192.168.5.1 on Serial0/0/0 from LOADING to FULL, Loading Done

Router(config-router)#network 192.168.4.0 0.0.0.255 area 0
Router(config-router)#
01:32:54: %OSPF-5-ADJCHG: Process 10, Nbr 192.168.5.2 on Serial0/0/1 from LOADING to FULL, Loading Done

Router(config-router)#exit
Router(config)#do wr
Building configuration...
[OK]
Router(config)#

Powered by Blogger.