Current connection path: 10.40.20.0/24 desktop <-> access switch <-> core switch <-> 10.30.15.33 NAT firewall for internet access
Objective: adding additional path as following to test another new NAT firewall which have IP 10.40.15.33; While all other desktop on 10.40.20.0/24 except 10.40.20.8 desktop would go to 10.30.15.33 as usual.
New additional connection path: 10.40.20.8 desktop <-> access switch <-> core switch
Original routing config on access switch (No dynamic routing protocol):
interface Vlan420
description OFFICE USER LAN
ip address 10.40.20.254 255.255.255.0
ip route 0.0.0.0 0.0.0.0 10.40.15.78
Original config on core switch (Contain dynamic routing protocol):
interface Vlan451
description INTER SWITCH INTERNAL LAN
ip address 10.40.15.78 255.255.255.240
ip route 0.0.0.0 0.0.0.0 10.30.15.33
route-map static2ospf permit 10
match tag 100
set metric-type type-1
router ospf 10
router-id 10.40.15.254
redistribute connected route-map connected2ospf
redistribute static route-map static2ospf
passive-interface default
no passive-interface GigabitEthernet1/0/46
no passive-interface GigabitEthernet1/0/47
no passive-interface TenGigabitEthernet1/1/4
no passive-interface GigabitEthernet2/0/47
no passive-interface TenGigabitEthernet2/1/4
network 10.0.1.0 0.0.0.15 area 0
network 10.0.1.16 0.0.0.15 area 0
network 10.0.6.0 0.0.0.15 area 0
network 10.0.6.16 0.0.0.15 area 0
network 10.0.7.0 0.0.0.15 area 0
working traceroute from 10.40.20.8 (Ping loss expected after 10.0.6.2 because we have a firewall to block traceroute and ping)
traceroute -n 10.30.15.33
traceroute to 10.30.15.33 (10.30.15.33), 30 hops max, 60 byte packets
1 10.40.20.254 1.775 ms 2.074 ms 1.968 ms
2 10.40.15.78 1.422 ms 1.318 ms 1.620 ms
3 10.0.6.2 2.121 ms 2.439 ms 2.734 ms
4 * * *
5 * * *
After applying this line of config on core switch, 10.40.20.8 route to everywhere start failing
ip route 10.40.20.8 255.255.255.255 10.30.15.33 tag 100 name my_test
failing traceroute from 10.40.20.8 (all packet stuck at 10.40.20.254 which is the access switch VLAN420 interface
traceroute -n 10.30.15.33
traceroute to 10.30.15.33 (10.30.15.33), 30 hops max, 60 byte packets
1 10.40.20.254 1.791 ms 1.650 ms 1.537 ms
2 * * *
3 * * *
Question: access switch pointing default gateway to 10.40.15.78 which is the core switch, then in core switch it's going default gateway to 10.30.15.33; What's wrong on the routing after I put a more specific route via "ip route" command with same default gateway?
Remark: We are trying to put in static route for old internet firewall 10.30.15.33 before putting 10.40.15.33