Configure Network With OSPF Multiple Area in Cisco Router
Last time we was setup single Area network with OSPF today we will setup our network Multiple Area with OSPF. see the following diagram.
Firstly we configure host name and interfaces of all Router and then configure routing
Core 1Router>
enableRouter#
configure terminal Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#
hostname Core1Core1(config)#
Core1(config)#
interface FastEthernet 0/0Core1(config-if)#
ip address 172.9.0.1 255.255.0.0Core1(config-if)#
no shutdownCore1(config-if)#
exitCore1(config)#i
nterface serial 0/0/0 Core1(config-if)#
ip address 192.168.8.1 255.255.255.0Core1(config-if)#
no shutdown Core1(config-if)#
exitCore1(config)#
interface serial 0/0/1Core1(config-if)#
ip address 172.14.0.254 255.255.0.0Core1(config-if)#
clock rate 64000Core1(config-if)#
no shutdownCore1(config-if)#
exitCore1(config)#i
nterface serial 0/1/0Core1(config-if)#
ip address 192.168.7.1 255.255.255.0Core1(config-if)#
clock rate 64000Core1(config-if)#
no shutdownCore1(config-if)#
exit
Core 2Router>
enableRouter#
configure terminal Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#
hostname Core2Core2(config)#
interface Serial 0/0/0Core2(config-if)#
ip address 192.168.8.2 255.255.255.0Core2(config-if)#
clock rate 64000Core2(config-if)#
no shutdownCore2(config-if)#
exitCore2(config)#
interface serial 0/1/0Core2(config-if)#
ip address 192.3.3.1 255.255.255.0Core2(config-if)#
clock rate 64000Core2(config-if)#
no shutdownCore2(config-if)#
exitCore2(config)#
interface serial 0/1/1Core2(config-if)#
ip address 192.168.4.154 255.255.255.0Core2(config-if)#
clock rate 64000Core2(config-if)#
no shutdownCore2(config-if)#
exitCore2(config)#
interface serial 0/0/1Core2(config-if)#
ip address 192.168.10.1 255.255.255.0Core2(config-if)#
clock rate 64000Core2(config-if)#
no shutdownCore2(config-if)#
exit
Core 3Router>
enableRouter#
configure terminal Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#
hostname Core3Core3(config)#
interface serial 0/1/0Core3(config-if)#
ip address 172.14.0.1 255.255.0.0Core3(config-if)#
no shutdownCore3(config-if)#
exitCore3(config)#
interface serial 0/0/0Core3(config-if)#
ip address 192.168.10.2 255.255.255.0Core3(config-if)#
no shutdownCore3(config-if)#
exitCore3(config)#
interface serial 0/0/1Core3(config-if)#
ip address 192.168.9.1 255.255.255.0Core3(config-if)#
clock rate 64000Core3(config-if)#
no shutdownCore3(config-if)#
exitCore3(config)#
interface serial 0/1/1Core3(config-if)#
ip address 192.168.2.1 255.255.255.0Core3(config-if)#
clock rate 64000Core3(config-if)#
no shutdownCore3(config-if)#
exit
Core 4Router>
enableRouter#
configure terminal Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#
hostname Core4Core4(config)#
interface Serial 0/0/0Core4(config-if)#
ip address 192.168.7.254 255.255.255.0Core4(config-if)#
no shutdownCore4(config-if)#
exitCore4(config)#
interface serial 0/0/1
Core4(config-if)#
ip address 192.168.9.254 255.255.255.0Core4(config-if)#
no shutdownCore4(config-if)#
exitCore4(config)#
Core4(config)#
interface serial 0/1/0Core4(config-if)#
ip address 192.168.11.1 255.255.255.0Core4(config-if)#
clock rate 64000Core4(config-if)#
no shutdownCore4(config-if)#
exitCore4(config)#
interface serial 0/1/1Core4(config-if)#
ip address 192.168.12.1 255.255.255.0Core4(config-if)#
clock rate 64000Core4(config-if)#
no shutdownCore4(config-if)#
exit
ChicagoRouter>
enableRouter#
configure terminal Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#
hostname ChicagoChicago(config)#
interface serial 0/0/0Chicago(config-if)#
ip address 192.3.3.2 255.255.255.0Chicago(config-if)#
no shutdownChicago(config-if)#
exitChicago(config)#
interface FastEthernet 0/0Chicago(config-if)#
ip address 192.1.1.1 255.255.255.0Chicago(config-if)#
no shutdownChicago(config-if)#
exit
France Router>
enableRouter#
configure terminal Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#
hostname FranceFrance(config)#
interface Serial 0/0/0France(config-if)#
ip address 192.168.4.2 255.255.255.0France(config-if)#
no shutdownFrance(config-if)#
exitFrance(config)#
interface FastEthernet 0/0France(config-if)#
ip address 192.2.2.1 255.255.255.0France(config-if)#
no shutdownFrance(config-if)#
exit
JapanRouter>
enableRouter#
configure terminal Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#
hostname JapanJapan(config)#
interface serial 0/0/0Japan(config-if)#
ip address 192.168.2.254 255.255.255.0Japan(config-if)#
no shutdownJapan(config-if)#
exitJapan(config)#
interface fastEthernet 0/0Japan(config-if)#
ip address 172.10.0.1 255.255.0.0Japan(config-if)#
no shutdownJapan(config-if)#
exit
PuneRouter>
enableRouter#
configure terminal Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#
hostname PunePune(config)#
interface serial 0/0/0Pune(config-if)#
ip address 192.168.11.254 255.255.255.0Pune(config-if)#
no shutdownPune(config-if)#
exitPune(config)#
interface fastEthernet 0/0Pune(config-if)#
ip address 172.16.0.1 255.255.0.0Pune(config-if)#
no shutdownPune(config-if)#
exit
MumbaiRouter>
enableRouter#
configure terminal Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#
hostname MumbaiMumbai(config-if)#
ip address 192.168.12.254 255.255.255.0Mumbai(config-if)#
no shutdownMumbai(config-if)#
exitMumbai(config)#
interface fastEthernet 0/0Mumbai(config-if)#
ip address 172.15.0.254 255.255.0.0Mumbai(config-if)#
no shutdownMumbai(config-if)#
exit
Next Step is to configure network Route. :-
we will configure nework route with OSPF with different area and with default route the network that are not connected to area 0. and save the configuration.
Core1
Core1(config)#
router ospf 1Core1(config-router)#
do show ip int brInterface IP-Address OK? Method Status Protocol
FastEthernet0/0 172.9.0.1 YES manual up up
FastEthernet0/1 unassigned YES unset administratively down down
Serial0/0/0 192.168.8.1 YES manual up up
Serial0/0/1 172.14.0.254 YES manual up up
Serial0/1/0 192.168.7.1 YES manual up up
Serial0/1/1 unassigned YES unset administratively down down
Vlan1 unassigned YES unset administratively down down
Core1(config-router)#
Core1(config-router)#
network 172.9.0.0 0.0.255.255 area 0Core1(config-router)#
network 192.168.8.0 0.0.0.255 area 0Core1(config-router)#
network 172.14.0.0 0.0.255.255 area 0Core1(config-router)#
network 192.168.7.0 0.0.0.255 area 0Core1(config-router)#
exit
Core1(config)#
exit
Save configuration
Core1#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]
Core1#
Core2
Core2(config)#
router ospf 1Core2(config-router)#
do show ip int brInterface IP-Address OK? Method Status Protocol
FastEthernet0/0 unassigned YES unset administratively down down
FastEthernet0/1 unassigned YES unset administratively down down
Serial0/0/0 192.168.8.2 YES manual up up
Serial0/0/1 192.168.10.1 YES manual up up
Serial0/1/0 192.3.3.1 YES manual up up
Serial0/1/1 192.168.4.154 YES manual up up
Vlan1 unassigned YES unset administratively down down
Core2(config-router)#
network 192.168.8.0 0.0.0.255 area 0Core2(config-router)#
network 192.168.10.0 0.0.0.255 area 0Core2(config-router)#
network 192.3.3.0 0.0.0.255 area 2Core2(config-router)#
network 192.168.4.0 0.0.0.255 area 2Core2(config-router)#
exitCore2(config)#
exit
Save Configuration
Core2#
copy running-config startup-config Destination filename [startup-config]?
Building configuration...
[OK]
Core2#
Core3
Core3(config)#
router ospf 1Core3(config-router)#
do show ip int brInterface IP-Address OK? Method Status Protocol
FastEthernet0/0 unassigned YES unset administratively down down
FastEthernet0/1 unassigned YES unset administratively down down
Serial0/0/0 192.168.10.2 YES manual up up
Serial0/0/1 192.168.9.1 YES manual up up
Serial0/1/0 172.14.0.1 YES manual up up
Serial0/1/1 192.168.2.1 YES manual up up
Vlan1 unassigned YES unset administratively down down
Core3(config-router)#
Core3(config-router)#
network 192.168.10.0 0.0.0.255 area 0Core3(config-router)#
network 192.168.9.0 0.0.0.255 area 0Core3(config-router)#
network 172.14.0.0 0.0.255.255 area 0Core3(config-router)#
network 192.168.2.0 0.0.0.255 area 3Core3(config-router)#
exitCore3(config)#exit
Save Configuration
Core3#
copy running-config startup-config Destination filename [startup-config]?
Building configuration...
[OK]
Core3#
Core4
Core4(config)#
router ospf 1Core4(config-router)#
do show ip int brInterface IP-Address OK? Method Status Protocol
FastEthernet0/0 unassigned YES unset administratively down down
FastEthernet0/1 unassigned YES unset administratively down down
Serial0/0/0 192.168.7.254 YES manual up up
Serial0/0/1 192.168.9.254 YES manual up up
Serial0/1/0 192.168.11.1 YES manual up up
Serial0/1/1 192.168.12.1 YES manual up up
Vlan1 unassigned YES unset administratively down down
Core4(config-router)#
Core4(config-router)#
network 192.168.7.0 0.0.0.255 area 0Core4(config-router)#
network 192.168.9.0 0.0.0.255 area 0Core4(config-router)#
network 192.168.11.0 0.0.0.255 area 1Core4(config-router)#
network 192.168.12.0 0.0.0.255 area 1Core4(config-router)#
exitCore4(config)#
exit
Save Configuration
Core4#
copy running-config startup-config Destination filename [startup-config]?
Building configuration...
[OK]
Core4#
Chicago
Note:- Chicago network interface is not directly connected to Area 0 so to all communicant we also configure default route along with OSPF
Chicago(config)#
router ospf 1Chicago(config-router)#
do show ip int brInterface IP-Address OK? Method Status Protocol
FastEthernet0/0 192.1.1.1 YES manual up up
FastEthernet0/1 unassigned YES unset administratively down down
Serial0/0/0 192.3.3.2 YES manual up up
Serial0/0/1 unassigned YES unset administratively down down
Vlan1 unassigned YES unset administratively down down
Chicago(config-router)#
Chicago(config-router)#
network 192.1.1.0 0.0.0.255 area 2Chicago(config-router)#
network 192.3.3.0 0.0.0.255 area 2Chicago(config-router)#
exit
Chicago(config)#ip route 0.0.0.0 0.0.0.0 serial 0/0/0
Chicago(config)#
exit
Save Configuration
Chicago#
copy running-config startup-config Destination filename [startup-config]?
Building configuration...
[OK]
Chicago#
France
Note:- This network interface are also not directly connected to Area 0 so to all communicant we also configure default route along with OSPF
France(config)#
router ospf 1France(config-router)#
do show ip int brInterface IP-Address OK? Method Status Protocol
FastEthernet0/0 192.2.2.1 YES manual up up
FastEthernet0/1 unassigned YES unset administratively down down
Serial0/0/0 192.168.4.2 YES manual up up
Serial0/0/1 unassigned YES unset administratively down down
Vlan1 unassigned YES unset administratively down down
France(config-router)#
France(config-router)#
network 192.2.2.0 0.0.0.255 area 2France(config-router)#
network 192.168.4.0 0.0.0.255 area 2France(config-router)#
exitFrance(config)#
ip route 0.0.0.0 0.0.0.0 serial 0/0/0France(config)#
exit
Save Configuration
France#
copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]
France#
Japan
Note:- This
network is also not directly connected to Area 0 so to all
communicant we also configure default route along with OSPF
Japan(config)#
route ospf 1Japan(config-router)#
do show ip int brInterface IP-Address OK? Method Status Protocol
FastEthernet0/0 172.10.0.1 YES manual up up
FastEthernet0/1 unassigned YES unset administratively down down
Serial0/0/0 192.168.2.254 YES manual up up
Serial0/0/1 unassigned YES unset administratively down down
Vlan1 unassigned YES unset administratively down down
Japan(config-router)#
Japan(config-router)#
network 172.10.0.0 0.0.255.255 area 3Japan(config-router)#
network 192.168.2.0 0.0.0.255 area 3Japan(config-router)#
exitJapan(config)#
ip route 0.0.0.0 0.0.0.0 serial 0/0/0Japan(config)#
Japan(config)#
exit
Save ConfigurationJapan#
copy running-config startup-config Destination filename [startup-config]?
Building configuration...
[OK]
Japan#
Pune
Note:- This
network is also not directly connected to Area 0 so to all
communicant we also configure default route along with OSPF
Pune(config)#
router ospf 1Pune(config-router)#
do show ip int brInterface IP-Address OK? Method Status Protocol
FastEthernet0/0 172.16.0.1 YES manual up up
FastEthernet0/1 unassigned YES unset administratively down down
Serial0/0/0 192.168.11.254 YES manual up up
Serial0/0/1 unassigned YES unset administratively down down
Vlan1 unassigned YES unset administratively down down
Pune(config-router)#
Pune(config-router)#
network 172.16.0.0 0.0.255.255 area 1Pune(config-router)#
network 192.168.11.0 0.0.0.255 area 1Pune(config-router)#
exitPune(config)#
ip route 0.0.0.0 0.0.0.0 serial 0/0/0Pune(config)#
exit
Save ConfigurationPune#
copy running-config startup-config Destination filename [startup-config]?
Building configuration...
[OK]
Pune#
Mumbai
Mumbai(config)#
router ospf 1Mumbai(config-router)#
do show ip int brInterface IP-Address OK? Method Status Protocol
FastEthernet0/0 172.15.0.254 YES manual up up
FastEthernet0/1 unassigned YES unset administratively down down
Serial0/0/0 192.168.12.254 YES manual up up
Serial0/0/1 unassigned YES unset administratively down down
Vlan1 unassigned YES unset administratively down down
Mumbai(config-router)#
Mumbai(config-router)#
network 172.15.0.0 0.0.255.255 area 1Mumbai(config-router)#
network 192.168.12.0 0.0.0.255 area 1Mumbai(config-router)#
exitMumbai(config)#
exit
Save ConfigurationMumbai#
copy running-config startup-config Destination filename [startup-config]?
Building configuration...
[OK]
Mumbai#
It Done on Router site now go to PC and set ip address in same network and set default gateway as ip address of Router.
Next time we will see how to create VLAN in Cisco Devices.