Lab 16:
There is a sneaky gotcha in this lab. I hope you spotted it.
The 10.0.0.0 network is not in the first subnet (the zero subnet) so putting the below won’t work:
network 10.0.0.0 0.0.0.3 area 0
Because this would advertise host .1 and .2 so if you want to advertise the hosts in the 10.0.0.4
network which are .5 and .6 you need to enter:
network 10.0.0.4 0.0.0.3 area 0
Show Runs
RouterA
hostname RouterA
!
interface Loopback0
ip address 192.168.1.1 255.255.255.252
!
interface FastEthernet0/0
no ip address
shutdown
duplex auto
speed auto
!
interface Serial0/0
ip address 10.0.0.5 255.255.255.252
clock rate 2000000
!
router ospf 1
log-adjacency-changes
network 10.0.0.4 0.0.0.3 area 0
network 192.168.1.0 0.0.0.3 area 2
Router B
hostname RouterB
!
interface Serial0/0
ip address 10.0.0.6 255.255.255.252
clock rate 2000000
!
interface Serial0/1
ip address 172.16.1.1 255.255.255.252
clock rate 2000000
!
router ospf 1
log-adjacency-changes
network 10.0.0.4 0.0.0.3 area 0
network 172.16.1.0 0.0.0.3 area 1
Router C
!
hostname RouterC
!
interface Serial0/0
ip address 172.16.1.2 255.255.255.252
clock rate 2000000
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
router ospf 1
log-adjacency-changes
network 172.16.1.0 0.0.0.3 area 1
Tests
RouterA#show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-
2
ia - IS-IS inter area, * - candidate default, U - per-user static
route
o - ODR, P - periodic downloaded static route
Gateway of last resort is not set
172.16.0.0/30 is subnetted, 1 subnets
O IA 172.16.1.0 [110/128] via 10.0.0.6, 00:06:32, Serial0/0
10.0.0.0/30 is subnetted, 1 subnets
C 10.0.0.4 is directly connected, Serial0/0
192.168.1.0/30 is subnetted, 1 subnets
C 192.168.1.0 is directly connected, Loopback0
RouterA#
RouterA#show ip ospf neighbor
Neighbor ID Pri State Dead Time Address Interface
172.16.1.1 0 FULL/ - 00:00:30 10.0.0.6 Serial0/0
RouterA#
RouterA#show ip protocols
Routing Protocol is "ospf 1"
Outgoing update filter list for all interfaces is not set
Incoming update filter list for all interfaces is not set
Router ID 192.168.1.1
It is an area border router
Number of areas in this router is 2. 2 normal 0 stub 0 nssa
Maximum path: 4
Routing for Networks:
10.0.0.4 0.0.0.3 area 0
192.168.1.0 0.0.0.3 area 2
Reference bandwidth unit is 100 mbps
Routing Information Sources:
Gateway Distance Last Update
192.168.1.1 110 00:08:43
172.16.1.1 110 00:07:11
Distance: (default is 110)
RouterC#show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-
2
ia - IS-IS inter area, * - candidate default, U - per-user static
route
o - ODR, P - periodic downloaded static route
Gateway of last resort is not set
172.16.0.0/30 is subnetted, 1 subnets
C 172.16.1.0 is directly connected, Serial0/0
10.0.0.0/30 is subnetted, 1 subnets
O IA 10.0.0.4 [110/128] via 172.16.1.1, 00:00:15, Serial0/0
192.168.1.0/32 is subnetted, 1 subnets
O IA 192.168.1.1 [110/129] via 172.16.1.1, 00:00:15, Serial0/0
RouterC#ping 192.168.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.1.1, timeout is 2 seconds:
!!!!!