R1 interface Serial1/0 ip address 1.1.1.1 255.255.255.0 ! Interface lo0 ip address 10.10.10.10 255.255.255.255 ! router ospf 1 network 1.1.1.1 0.0.0.0 area 0 network 10.10.10.10 0.0.0.0 area 0 R2 interface Serial1/0 ip address 1.1.1.2 255.255.255.0 ! interface Serial1/1 ip address 2.2.2.2 255.255.255.0 ! Interface lo0 ip address 20.20.20.20 255.255.255.255 ! router ospf 1 network 1.1.1.2 0.0.0.0 area 0 network 2.2.2.2 0.0.0.0 area 0 area 1 nssa R3 interface Serial1/1 ip address 2.2.2.3 255.255.255.0 ! Interface lo0 ip address 30.30.30.30 255.255.255.255 ! router ospf 1 network 2.2.2.3 0.0.0.0 area 0 redistribute connected subnets route-map CONN2OSPF area 1 nssa access-list 1 permit 30.30.30.30 ! route-map CONN2OSPF permit 10 match ip address 1 |
R3# sh ip route Gateway of last resort is not set 1.0.0.0/24 is subnetted, 1 subnets O IA 1.1.1.0 [110/128] via 2.2.2.2, 00:01:45, Serial1/1 2.0.0.0/24 is subnetted, 1 subnets C 2.2.2.0 is directly connected, Serial1/1 20.0.0.0/32 is subnetted, 1 subnets O N2 20.20.20.20 [110/20] via 2.2.2.2, 00:00:07, Serial1/1 10.0.0.0/32 is subnetted, 1 subnets O IA 10.10.10.10 [110/129] via 2.2.2.2, 00:01:45, Serial1/1 30.0.0.0/32 is subnetted, 1 subnets C 30.30.30.30 is directly connected, Loopback0 |
R3# sh ip route Gateway of last resort is 2.2.2.2 to network 0.0.0.0 2.0.0.0/24 is subnetted, 1 subnets C 2.2.2.0 is directly connected, Serial1/1 20.0.0.0/32 is subnetted, 1 subnets O N2 20.20.20.20 [110/20] via 2.2.2.2, 00:02:15, Serial1/1 30.0.0.0/32 is subnetted, 1 subnets C 30.30.30.30 is directly connected, Loopback0 O*IA 0.0.0.0/0 [110/65] via 2.2.2.2, 00:00:03, Serial1/1 |
R3#sh ip ospd database Type-7 AS External Link States (Area 1) Link ID ADV Router Age Seq# Checksum Tag 20.20.20.20 2.2.2.2 1543 0x80000002 0x00F153 0 30.30.30.30 30.30.30.30 1540 0x80000002 0x0074B3 0 |
R3# sh ip route Gateway of last resort is 2.2.2.2 to network 0.0.0.0 2.0.0.0/24 is subnetted, 1 subnets C 2.2.2.0 is directly connected, Serial1/1 30.0.0.0/32 is subnetted, 1 subnets C 30.30.30.30 is directly connected, Loopback0 O*IA 0.0.0.0/0 [110/65] via 2.2.2.2, 00:00:02, Serial1/1 |
Gateway of last resort is 2.2.2.2 to network 0.0.0.0 2.0.0.0/24 is subnetted, 1 subnets C 2.2.2.0 is directly connected, Serial1/1 30.0.0.0/32 is subnetted, 1 subnets C 30.30.30.30 is directly connected, Loopback0 O*IA 0.0.0.0/0 [110/65] via 2.2.2.2, 00:00:03, Serial1/1 |