DEFAULT ROUTE GENERATION  

Friday, November 14, 2008

GENERATING DEFAULT ROUTE IN OSPF


SIMPLE AND STRAIGHT FOREWARD

CODE
default information originate --------> if you have a default route

default information originate always ---------->if you dont have a default route but still wanna advertise it out


CODE
r1#sr | i network
network 10.1.1.1 0.0.0.0 area 0 ---------------------------> think it as a route to internet for whole topology
network 10.1.12.1 0.0.0.0 area 0
network 172.30.30.1 0.0.0.0 area 0
r1#



firstly let us verify the routing table of routers

CODE
r2#sir
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.30.0.0/32 is subnetted, 1 subnets
O 172.30.30.1 [110/65] via 10.1.12.1, 00:29:11, Serial2/0
10.0.0.0/8 is variably subnetted, 5 subnets, 2 masks
C 10.1.12.0/24 is directly connected, Serial2/0
O 10.1.3.1/32 [110/65] via 10.1.23.2, 00:29:11, Serial2/1
C 10.1.2.0/24 is directly connected, Loopback2
O 10.1.1.1/32 [110/65] via 10.1.12.1, 00:29:11, Serial2/0
C 10.1.23.0/24 is directly connected, Serial2/1
O IA 192.168.100.0/22 [110/65] via 10.1.23.2, 00:29:11, Serial2/1
r2#
as#3
[Resuming connection 3 to r3 ... ]

r3(config-router)#do sir
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.30.0.0/32 is subnetted, 1 subnets
O 172.30.30.1 [110/129] via 10.1.23.1, 00:29:17, Serial2/1
10.0.0.0/8 is variably subnetted, 5 subnets, 2 masks
O 10.1.12.0/24 [110/128] via 10.1.23.1, 00:29:17, Serial2/1
C 10.1.3.0/24 is directly connected, Loopback3
O 10.1.2.0/24 [110/65] via 10.1.23.1, 00:29:17, Serial2/1
O 10.1.1.1/32 [110/129] via 10.1.23.1, 00:29:17, Serial2/1
C 10.1.23.0/24 is directly connected, Serial2/1
C 192.168.102.0/24 is directly connected, Loopback102
C 192.168.103.0/24 is directly connected, Loopback103
C 192.168.100.0/24 is directly connected, Loopback100
C 192.168.101.0/24 is directly connected, Loopback101
O 192.168.100.0/22 is a summary, 00:29:27, Null0
r3(config-router)#



so no default route lets create one ..

CODE
r1(config)#router ospf 1
r1(config-router)#de
r1(config-router)#default-in
r1(config-router)#default-information ori
r1(config-router)#default-information originate always
r1(config-router)#


lets verify the routing table of other if we got any ..


CODE
r1(config-router)#
as#2
[Resuming connection 2 to r2 ... ]
sir
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 10.1.12.1 to network 0.0.0.0

172.30.0.0/32 is subnetted, 1 subnets
O 172.30.30.1 [110/65] via 10.1.12.1, 00:30:51, Serial2/0
10.0.0.0/8 is variably subnetted, 5 subnets, 2 masks
C 10.1.12.0/24 is directly connected, Serial2/0
O 10.1.3.1/32 [110/65] via 10.1.23.2, 00:30:51, Serial2/1
C 10.1.2.0/24 is directly connected, Loopback2
O 10.1.1.1/32 [110/65] via 10.1.12.1, 00:30:51, Serial2/0
C 10.1.23.0/24 is directly connected, Serial2/1
O*E2 0.0.0.0/0 [110/1] via 10.1.12.1, 00:00:43, Serial2/0 -------------------------------*
O IA 192.168.100.0/22 [110/65] via 10.1.23.2, 00:30:51, Serial2/1
r2#
as#3
[Resuming connection 3 to r3 ... ]

r3(config-router)#do sir
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 10.1.23.1 to network 0.0.0.0

172.30.0.0/32 is subnetted, 1 subnets
O 172.30.30.1 [110/129] via 10.1.23.1, 00:30:59, Serial2/1
10.0.0.0/8 is variably subnetted, 5 subnets, 2 masks
O 10.1.12.0/24 [110/128] via 10.1.23.1, 00:30:59, Serial2/1
C 10.1.3.0/24 is directly connected, Loopback3
O 10.1.2.0/24 [110/65] via 10.1.23.1, 00:30:59, Serial2/1
O 10.1.1.1/32 [110/129] via 10.1.23.1, 00:30:59, Serial2/1
C 10.1.23.0/24 is directly connected, Serial2/1
C 192.168.102.0/24 is directly connected, Loopback102
C 192.168.103.0/24 is directly connected, Loopback103
C 192.168.100.0/24 is directly connected, Loopback100
C 192.168.101.0/24 is directly connected, Loopback101
O*E2 0.0.0.0/0 [110/1] via 10.1.23.1, 00:00:51, Serial2/1 ---------------------->*
O 192.168.100.0/22 is a summary, 00:31:10, Null0
r3(config-router)#



and there was a simple challenge to configure authentication of simple and md5 no two of the interface on r2 .. i did that if any one want check the running configs ... the documentation is taking more time than labbing lol wink.gif


see you guys with frame-relay beast soon

Design by Blogger Buster | Distributed by Blogging Tips