ASR#show ip route
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
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, H - NHRP, l - LISP
a - application route
+ - replicated route, % - next hop override, p - overrides from PfR
Gateway of last resort is 192.168.1.1 to network 0.0.0.0
S* 0.0.0.0/0 [1/0] via 192.168.1.1, Vlan2
10.0.0.0/8 is variably subnetted, 8 subnets, 4 masks
C 10.7.1.0/26 is directly connected, Vlan3
L 10.7.1.1/32 is directly connected, Vlan3
C 10.7.2.0/23 is directly connected, Vlan4
L 10.7.2.1/32 is directly connected, Vlan4
C 10.7.5.0/24 is directly connected, Vlan5
L 10.7.5.1/32 is directly connected, Vlan5
C 10.7.6.0/23 is directly connected, Vlan6
L 10.7.6.1/32 is directly connected, Vlan6
192.168.1.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.1.0/24 is directly connected, Vlan2
L 192.168.1.164/32 is directly connected, Vlan2
ASR#
без дефолтного маршрута тоже самое
если мы отправляем icmp с самого ASR с его vlan nat-трансляция идет, а со свича даже не попадает.
ASR#p 192.168.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms
ASR#sh ip nat translations
ASR#
ASR#p 192.168.1.1 source vlan 4
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.1.1, timeout is 2 seconds:
Packet sent with a source address of 10.7.2.1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/4 ms
ASR#sh ip nat translations
Pro Inside global Inside local Outside local Outside global
icmp 192.168.1.164:1024 10.7.2.1:31 192.168.1.1:31 192.168.1.1:1024
ASR#