05-03-2007 07:59 PM - edited 03-05-2019 03:51 PM
Hi folks,
I configured a default gateway and a static default route on my
cat4506 switch running 12.1(19)EW2.
ip default-gateway X.X.X.X
ip route 0.0.0.0 0.0.0.0 X.X.X.X
I issued show ip route and nothing displays.
#sh 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, 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
It should have at least show a gateway of last resort in the routing
table or a " S* 0.0.0.0/0 [1/0] via X.X.X.X " entry.. Right?
I have verified that ip routing is enabled.
Why is the routing table empty? Any ideas?
Regards,
Carol
05-03-2007 10:10 PM
Hi,
For a route to be entered into the routing table its next-hop must be reachable, so the reason that these routes are not inserted into the routing table is that there is no up/up interface that the next-hop would be reachable upon.
HTH, please rate if it does help,
Mohammed Mahmoud.
05-03-2007 10:30 PM
Hi Mohammed,
Thanks for the response. The switch is configured with a management vlan with an ip address.. This is the only L3 address configured in the switch.
I checked sh int and it's UP, UP.
So it could not be the problem right?
Regards,
Carol
05-03-2007 10:40 PM
Hi,
No it is still the problem, if the next-hop of the static routes is not recursive via the ip address under the VLAN interface it would still not enter the routing table.
example:
Router#sh ip int brief
Interface IP-Address OK? Method Status Prot
ocol
Loopback0 192.168.99.1 YES manual up up
ip route 0.0.0.0 0.0.0.0 10.10.10.1
Router#sh 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, 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
C 192.168.99.0/24 is directly connected, Loopback0
--> Since the next-hop of my static route "10.10.10.1" is not recursive reachable via the ip address of the interface "192.168.99.0" then the route is never entered into the routing table.
HTH, please rate if it does help,
Mohammed Mahmoud.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide