cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
244
Views
0
Helpful
4
Replies

static route on 7k

Dragomir
Level 1
Level 1

I need to creastea static route on my L3 switch to my nsx environment

the nsx vxlan is 192.168.10.0/24

how do I add that into the 7k switch. I do not want to overlap any networks

when I do 

sh ip route

I see these

192.168.39.0/24, ubest/mbest: 1/0
*via 10.70.0.52, Vlan70, [110/20], 2y15w, ospf-100, type-2
192.168.40.0/24, ubest/mbest: 1/0
*via 10.70.0.52, Vlan70, [110/20], 2y15w, ospf-100, type-2
192.168.45.0/24, ubest/mbest: 1/0
*via 10.70.0.52, Vlan70, [110/20], 2y15w, ospf-100, type-2
192.168.46.0/24, ubest/mbest: 1/0
*via 10.70.0.52, Vlan70, [110/20], 2y15w, ospf-100, type-2
192.168.49.0/24, ubest/mbest: 1/0
*via 10.70.0.52, Vlan70, [110/20], 2y15w, ospf-100, type-2

what are these? I do not see then under sh run in ip route

4 Replies 4

Reza Sharifi
Hall of Fame
Hall of Fame

On the 7k, try this command to see if the vlan exist:

sh ip route direct interface vlan <vlan id>

HTH

i dont think its there.

ip route 0.0.0.0/0 10.70.0.52
ip route 10.5.140.0/23 10.70.0.52 200
ip route 10.5.144.0/23 10.70.0.52 200
ip route 10.5.152.0/23 10.70.0.52 200
ip route 10.5.170.0/23 10.70.0.52 200
ip route 10.9.100.0/24 10.70.0.52 200
ip route 10.9.120.0/24 10.70.0.52 200
ip route 10.9.130.0/24 10.70.0.52 200
ip route 10.9.150.0/24 10.70.0.52 200
ip route 10.9.156.0/24 10.70.0.52 200
ip route 10.9.190.0/24 10.70.0.52 200
ip route 10.100.0.0/16 10.70.0.52 200
ip route 10.120.0.0/16 10.70.0.52 200
ip route 10.144.1.0/24 10.70.0.52 200
ip route 10.145.0.0/16 10.70.0.52 200
ip route 10.147.0.0/16 10.70.0.52
ip route 10.151.0.0/16 10.70.0.52 200
ip route 10.185.0.0/16 10.70.0.52 200
ip route 10.190.0.0/16 10.70.0.52 200
ip route 161.82.12.16/32 10.70.0.3
no ip source-route

Hi;

The static route you attached having AD 200 & while the route you received via OSPF with default AD (110).

Always remember for Route selection process always prefer most-specific route, then AD and so on.

Thanks & Best regards;

ahmedshoaib
Level 4
Level 4

Hi;

The output you attached clearly show that you are receiving (192.168.39.0, 192.168.40.0, 192.168.45.0, 192.168.46.0, 192.168.49.0) route via OSPF as a type-2 not a static route. And OSPF neighbourship is created on vlan 70 with neighbor-id 10.70.0.52.

Thanks & Best regards;

Review Cisco Networking products for a $25 gift card