HUB-1#p 192.168.1.1 source lo0 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 192.168.100.1 !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 5/6/7 ms
Spoke-2#traceroute 192.168.1.1 Type escape sequence to abort. Tracing the route to 192.168.1.1 VRF info: (vrf in name/id, vrf out name/id) 1 172.16.1.100 [AS 6666] 7 msec 6 msec 7 msec 2 172.16.1.1 [AS 6666] 6 msec
解决方法:
①可以hub上关闭`下一跳自我`功能:
interface Tunnel0 no ip next-hop-self eigrp 90
再次`traceroute`:
Spoke-2#traceroute 192.168.1.1 Type escape sequence to abort. Tracing the route to 192.168.1.1 VRF info: (vrf in name/id, vrf out name/id) 1 172.16.1.1 [AS 6666] 7 msec —-一跳抵达
②首先hub上tunnel0接口下:
ip nhrp redirect ip summary-address eigrp 90 192.168.0.0 255.255.0.0 —汇总EIGRP
Spoke-1#sh ip route eigrp D 192.168.0.0/16 [90/27008000] via 172.16.1.100, 02:33:51, Tunnel0
Spoke-1# ping 192.168.2.1 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 192.168.2.1, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 5/5/7 ms
Spoke-1#sh ip route nhrp H 192.168.2.0/24 [250/1] via 172.16.1.2, 00:24:22, Tunnel0
Spoke-1#traceroute 192.168.2.1 Type escape sequence to abort. Tracing the route to 192.168.2.1 VRF info: (vrf in name/id, vrf out name/id) 1 172.16.1.2 [AS 6666] 4 msec * 6 msec 一跳抵达