cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2305
Views
3
Helpful
14
Replies

static route issue

athan1234
Level 4
Level 4

Hi


How is it possible that after setting up a static route to the core in the SW, when I show ip route, I see the path to the FW?

 

SW

ip forward-protocol nd
ip http server
ip http secure-server
ip http client source-interface Vlan5
ip route 0.0.0.0 0.0.0.0 192.168.5.253
!
!
!
!

S* 0.0.0.0/0 [0/0] via 192.168.5.1
192.168.5.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.5.0/24 is directly connected, Vlan5
L 192.168.5.53/32 is directly connected, Vlan5

 

 

 

 

 

 

 

1 Accepted Solution

Accepted Solutions

johnpalo
Cisco Employee
Cisco Employee

Can you check if you are running

ip routing

Check for the command

ip default-gateway 192.168.5.1

View solution in original post

14 Replies 14

balaji.bandi
Hall of Fame
Hall of Fame

what switch model? what IOS code running?

show version  (look what version and reg)

sure that is not what we expect.

try remove 

no ip route 0.0.0.0 0.0.0.0 192.168.5.253

ip route 0.0.0.0 0.0.0.0 192.168.5.1

and post-show IP route ?

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Switch Ports Model SW Version SW Image Mode
------ ----- ----- ---------- ---------- ----
* 1 28 C9200L-24P-4X 17.03.05 CAT9K_LITE_IOSXE INSTALL
2 28 C9200L-24P-4X 17.03.05 CAT9K_LITE_IOSXE INSTALL


Switch 02
---------

 

Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#no ip route 0.0.0.0 0.0.0.0 192.168.5.253
Switch(config)#ip ro
Switch(config)#ip rout
Switch(config)#ip route 0.0.0.0 0.0.0.0 192.168.5.1
Switch(config)#
Switch(config)#
Switch(config)#do show ip ro
Switch(config)#do show ip route
Extended Host Mode is enabled
Codes: L - local, 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, m - OMP
n - NAT, Ni - NAT inside, No - NAT outside, Nd - NAT DIA
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
H - NHRP, G - NHRP registered, g - NHRP registration summary
o - ODR, P - periodic downloaded static route, l - LISP
a - application route
+ - replicated route, % - next hop override, p - overrides from PfR
& - replicated local route overrides by connected

Gateway of last resort is 192.168.5.1 to network 0.0.0.0

S* 0.0.0.0/0 [0/0] via 192.168.5.1
192.168.5.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.5.0/24 is directly connected, Vlan5
L 192.168.5.53/32 is directly connected, Vlan5







I want to hit the ip 192.168.5.253

really wired, 
copy run start <<- and check again 

Switch#show startup-config | section ip route 0.0.0.0 0.0.0.0
ip route 0.0.0.0 0.0.0.0 192.168.5.253

how ip route
Extended Host Mode is enabled
Codes: L - local, 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, m - OMP
n - NAT, Ni - NAT inside, No - NAT outside, Nd - NAT DIA
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
H - NHRP, G - NHRP registered, g - NHRP registration summary
o - ODR, P - periodic downloaded static route, l - LISP
a - application route
+ - replicated route, % - next hop override, p - overrides from PfR
& - replicated local route overrides by connected

Gateway of last resort is 192.168.5.1 to network 0.0.0.0

S* 0.0.0.0/0 [0/0] via 192.168.5.1
192.168.5.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.5.0/24 is directly connected, Vlan5
L 192.168.5.53/32 is directly connected, Vlan5
Switch#

now do

show ip route

are you run stack ??

Switch Ports Model SW Version SW Image Mode

------ ----- ----- ---------- ---------- ----
* 1 28 C9200L-24P-4X 17.03.05 CAT9K_LITE_IOSXE INSTALL
2 28 C9200L-24P-4X 17.03.05 CAT9K_LITE_IOSXE INSTALL

After adding new route, save the config and show run | in route

show IP route (post the output)

post show version  ( complete output)

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

johnpalo
Cisco Employee
Cisco Employee

Can you check if you are running

ip routing

Check for the command

ip default-gateway 192.168.5.1

I already try config both but always the static route point to what I enter
I use below doc. as reference 
Configure a Gateway of Last Resort that Uses IP Commands - Cisco
can it bug ??

Wiith Ip default - Getway I got it .

Thakns @johnpalo 

 

ip route 0.0.0.0 0.0.0.0 192.168.5.253
!
!
!
Switch#show ip route
Extended Host Mode is enabled
Codes: L - local, 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, m - OMP
n - NAT, Ni - NAT inside, No - NAT outside, Nd - NAT DIA
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
H - NHRP, G - NHRP registered, g - NHRP registration summary
o - ODR, P - periodic downloaded static route, l - LISP
a - application route
+ - replicated route, % - next hop override, p - overrides from PfR
& - replicated local route overrides by connected

Gateway of last resort is 192.168.5.253 to network 0.0.0.0

S* 0.0.0.0/0 [0/0] via 192.168.5.253

believe me I do lab and check twice 
always the default route is override the default gateway next-hop
unless this bug  
so can you share what is exact platform and the IOS XE ver. you use? for my note.
thanks 
MHM

Screenshot (344).png

Hi @MHM Cisco World 

Here you go

Switch#show ver
Cisco IOS XE Software, Version 17.03.05
Cisco IOS Software [Amsterdam], Catalyst L3 Switch Software (CAT9K_LITE_IOSXE), Version 17.3.5, RELEASE SOFTWARE (fc2)
////////////////




Switch#show ip route
Extended Host Mode is enabled
Codes: L - local, 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, m - OMP
n - NAT, Ni - NAT inside, No - NAT outside, Nd - NAT DIA
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
H - NHRP, G - NHRP registered, g - NHRP registration summary
o - ODR, P - periodic downloaded static route, l - LISP
a - application route
+ - replicated route, % - next hop override, p - overrides from PfR
& - replicated local route overrides by connected

Gateway of last resort is 192.168.5.253 to network 0.0.0.0

S* 0.0.0.0/0 [0/0] via 192.168.5.253
192.168.5.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.5.0/24 is directly connected, Vlan5
L 192.168.5.53/32 is directly connected, Vlan5
Switch# show run | section ip ro
ip route 0.0.0.0 0.0.0.0 192.168.5.253

 

Thanks so much.

johnpalo
Cisco Employee
Cisco Employee

You might want to check the documentation for 17.3 of 9200. The default for routing is disabled.

Configuration Guidelines for IP Routing

By default, IP routing is disabled on the device, and you must enable it before routing can take place.

https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst9200/software/release/17-3/configuration_guide/rtng/b_173_rtng_9200_cg/configuring_ip_unicast_routing.html