From: Radioactive Frog (pbhatkoti@gmail.com)
Date: Mon Apr 17 2006 - 09:43:29 GMT-3
Hi Group,
Theoitcally all static routes have an administrative distance of 1, but
something strange happening while doing it practically.
It comes and shows the AD is directly connected , hence its 0 (zero).
See the below configs
1) when I am issuing the command
London(config)#
London(config)#ip route 0.0.0.0 0.0.0.0 s0/0
then the output of 'show ip route' is as below:-
London#show ip route
Codes: C - connected, S - static, I - IGRP, 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, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate
default
U - per-user static route, o - ODR
Gateway of last resort is 0.0.0.0 to network 0.0.0.0
Network 192.168.1.0 has 5 subnets
R 192.168.1.0/27 [120/1] via 192.168.1.33 00:00:03 S0/0
C 192.168.1.32/27 is directly connected to Serial0/0
R 192.168.1.64/27 [120/1] via 192.168.1.33 00:00:03 S0/0
C 192.168.1.96/27 is directly connected to FastEthernet0/0
R 192.168.1.128/27 [120/2] via 192.168.1.33 00:00:03 S0/0
S* 0.0.0.0/0 is directly connected to Serial0/0
London#
Note: it shows Directly connected hence the administrative distance is ZERO.
But when I issue the below command (static routes)
London(config)#
London(config)#no ip route 0.0.0.0 0.0.0.0 s0/0
London(config)#
London(config)#ip route 0.0.0.0 0.0.0.0 192.168.1.33
London(config)#
The show ip route comes with :
London(config)#
London#show ip route
Codes: C - connected, S - static, I - IGRP, 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, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate
default
U - per-user static route, o - ODR
Gateway of last resort is 192.168.1.33 to network 0.0.0.0
Network 192.168.1.0 has 5 subnets
R 192.168.1.0/27 [120/1] via 192.168.1.33 00:00:01 S0/0
C 192.168.1.32/27 is directly connected to Serial0/0
R 192.168.1.64/27 [120/1] via 192.168.1.33 00:00:01 S0/0
C 192.168.1.96/27 is directly connected to FastEthernet0/0
R 192.168.1.128/27 [120/2] via 192.168.1.33 00:00:01 S0/0
S* 0.0.0.0/0 [1/0] via 192.168.1.33 00:00:30 S0/0
London#
Note: here its showing as per the books and theory. but in above static
route it shows directly connected (zero ad).
Can anyone shed light on this ?
Frog..
This archive was generated by hypermail 2.1.4 : Mon May 01 2006 - 11:41:57 GMT-3