Fig: OSPF Protocol Configuration
OSPF
Router 0 Configureation
Router>enable
Router#configure
terminal
Enter
configuration commands, one per line. End with CNTL/Z.
Router(config)#interface
FastEthernet0/0
Router(config-if)#ip
address 192.168.1.1 255.255.255.0
Router(config-if)#no
shutdown
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)#interface
Serial2/0
Router(config-if)#ip
address 10.10.0.2 255.0.0.0
Router(config-if)#clock
rate 64000
Router(config-if)#
Router(config-if)#exit
Router(config)#interface
Serial3/0
Router(config-if)#ip
address 12.12.0.2 255.0.0.0
Router(config-if)#clock
rate 64000
Router(config-if)#no
shutdown
%LINK-5-CHANGED:
Interface Serial3/0, changed state to down
Router(config-if)#
%LINK-5-CHANGED:
Interface Serial3/0, changed state to up
%LINEPROTO-5-UPDOWN:
Line protocol on Interface Serial3/0, changed state to up
Router(config-if)#exit
Router(config)#interface
Serial2/0
Router(config-if)#no
shutdown
Router(config-if)#
%LINK-5-CHANGED:
Interface Serial2/0, changed state to up
%LINEPROTO-5-UPDOWN:
Line protocol on Interface Serial2/0, changed state to up
exit
Router(config)#router
ospf 1
Router(config-router)#network
192.168.1.0 0.0.0.255 area 0
Router(config-router)#network
10.0.0.0 0.255.255.255 area 0
Router(config-router)#network
12.0.0.0 0.255.255.255 area 0
Router(config-router)#exi
Router(config)#exit
Router#
%SYS-5-CONFIG_I:
Configured from console by console
00:08:39:
%OSPF-5-ADJCHG: Process 1, Nbr 11.11.0.2 on Serial2/0 from LOADING to
FULL, Loading Done
00:09:57:
%OSPF-5-ADJCHG: Process 1, Nbr 192.168.2.1 on Serial3/0 from LOADING
to FULL, Loading Done
OSPF
Router 1 configuration
outer>enable
Router#configure
terminal
Enter configuration
commands, one per line. End with CNTL/Z.
Router(config)#interface
Serial2/0
Router(config-if)#ip
address 10.10.0.3 255.0.0.0
Router(config-if)#no
shutdown
%LINK-5-CHANGED:
Interface Serial2/0, changed state to down
Router(config-if)#
Router(config-if)#exit
Router(config)#interface
Serial3/0
Router(config-if)#ip
address 11.11.0.2 255.0.0.0
Router(config-if)#clock
rate 64000
Router(config-if)#no
shutdown
%LINK-5-CHANGED:
Interface Serial3/0, changed state to down
Router(config-if)#
Router(config-if)#exit
Router(config)#interface
Serial2/0
Router(config-if)#
Router(config-if)#exit
Router(config)#interface
Serial3/0
Router(config-if)#
%LINK-5-CHANGED:
Interface Serial3/0, changed state to up
%LINEPROTO-5-UPDOWN:
Line protocol on Interface Serial3/0, changed state to up
Router(config-if)#exit
Router(config)#interface
Serial2/0
Router(config-if)#
%LINK-5-CHANGED:
Interface Serial2/0, changed state to up
%LINEPROTO-5-UPDOWN:
Line protocol on Interface Serial2/0, changed state to up
exit
Router(config)#router
ospf 1
Router(config-router)#network
10.0.0.0 0.255.255.255 area 0
Router(config-router)#network
10.0.0.0 0.255.255.255 area 0
00:08:37:
%OSPF-5-ADJCHG: Process 1, Nbr 192.168.1.1 on Serial2/0 from LOADING
to FULL, Loading Done
Router(config-router)#network
11.0.0.0 0.255.255.255 area 0
Router(config-router)#exit
Router(config)#
00:09:38:
%OSPF-5-ADJCHG: Process 1, Nbr 192.168.2.1 on Serial3/0 from LOADING
to FULL, Loading Done
OSPF
Router 2 configuration
Router>enable
Router#configure
terminal
Enter configuration
commands, one per line. End with CNTL/Z.
Router(config)#interface
FastEthernet0/0
Router(config-if)#ip
address 192.168.2.1 255.255.255.0
Router(config-if)#no
shutdown
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)#interface
Serial2/0
Router(config-if)#ip
address 11.11.0.3 255.0.0.0
Router(config-if)#no
shutdown
Router(config-if)#
%LINK-5-CHANGED:
Interface Serial2/0, changed state to up
Router(config-if)#exit
Router(config)#interface
Serial3/0
Router(config-if)#
%LINEPROTO-5-UPDOWN:
Line protocol on Interface Serial2/0, changed state to up
ip address 12.12.0.3
255.0.0.0
Router(config-if)#no
shutdown
Router(config-if)#
%LINK-5-CHANGED:
Interface Serial3/0, changed state to up
%LINEPROTO-5-UPDOWN:
Line protocol on Interface Serial3/0, changed state to up
exit
Router(config)#router
ospf 1
Router(config-router)#network
192.168.2.0 0.0.0.255 area 0
Router(config-router)#network
11.0.0.0 0.255.255.255 area 0
Router(config-router)#network
11.0.0.0 0.255.255.255 area 0
00:09:36:
%OSPF-5-ADJCHG: Process 1, Nbr 11.11.0.2 on Serial2/0 from LOADING to
FULL, Loading Done
Router(config-router)#network
12.0.0.0 0.255.255.255 area 0
Router(config-router)#exit
Router(config)#
00:09:53:
%OSPF-5-ADJCHG: Process 1, Nbr 192.168.1.1 on Serial3/0 from LOADING
to FULL, Loading Done