我有两个在 GNS3 设置中运行的 XRv 路由器,因此我可以 ping 它们的常规接口,但是当我配置 VRRP 时,我无法 ping VRRP 虚拟 IP(除了当前充当活动的路由器)。这个问题也会影响到设备的实际数据包路由(发送到虚拟 IP 作为下面使用的主机的网关的数据包。)
是否有我可能错过的配置选项,或者这只是 XRv 软件中的一个已知问题?如果我尝试使用 HSRP 而不是 VRRP,我会遇到同样的问题。
路由器配置:
R1:
interface GigabitEthernet0/0/0/1
ipv4 address 192.168.102.101 255.255.255.0
!
!
router vrrp
interface GigabitEthernet0/0/0/1
address-family ipv4
vrrp 5
priority 150
address 192.168.102.155
!
!
!
!
R2:
interface GigabitEthernet0/0/0/1
ipv4 address 192.168.102.105 255.255.255.0
!
router vrrp
interface GigabitEthernet0/0/0/1
address-family ipv4
vrrp 5
priority 100
address 192.168.102.155
!
!
!
!
输出自show vrrp
R1。
IPv4 Virtual Routers:
A indicates IP address owner
| P indicates configured to preempt
| |
Interface vrID Prio A P State Master addr VRouter addr
Gi0/0/0/1 5 150 P Master local 192.168.102.155
R2。
IPv4 Virtual Routers:
A indicates IP address owner
| P indicates configured to preempt
| |
Interface vrID Prio A P State Master addr VRouter addr
Gi0/0/0/1 5 100 P Backup 192.168.102.101 192.168.102.155
从主机设备 ping R1 和 R2 上的接口(通过交换机连接到两者)
PC1> ping 192.168.102.101
84 bytes from 192.168.102.101 icmp_seq=1 ttl=255 time=4.854 ms
PC1> ping 192.168.102.105
84 bytes from 192.168.102.105 icmp_seq=1 ttl=255 time=5.304 ms
从主机 ping 虚拟 IP
PC1> ping 192.168.102.155
192.168.102.155 icmp_seq=1 timeout
192.168.102.155 icmp_seq=2 timeout
192.168.102.155 icmp_seq=3 timeout
192.168.102.155 icmp_seq=4 timeout
192.168.102.155 icmp_seq=5 timeout
从活动路由器 (R1) ping 虚拟 IP
Sending 5, 100-byte ICMP Echos to 192.168.102.155, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms
来自show arp
命令的信息:
R1:
-------------------------------------------------------------------------------
0/0/CPU0
-------------------------------------------------------------------------------
Address Age Hardware Addr State Type Interface
192.168.100.101 - 0cd1.c4b1.ed01 Interface ARPA GigabitEthernet0/0/0/0
192.168.100.105 00:01:32 0cd1.c4a0.ec01 Dynamic ARPA GigabitEthernet0/0/0/0
192.168.102.101 - 0cd1.c4b1.ed02 Interface ARPA GigabitEthernet0/0/0/1
192.168.102.105 00:01:32 0cd1.c4a0.ec02 Dynamic ARPA GigabitEthernet0/0/0/1
192.168.102.155 - 0000.5e00.0105 Interface ARPA GigabitEthernet0/0/0/1
R2:
-------------------------------------------------------------------------------
0/0/CPU0
-------------------------------------------------------------------------------
Address Age Hardware Addr State Type Interface
192.168.100.105 - 0cd1.c4a0.ec01 Interface ARPA GigabitEthernet0/0/0/0
192.168.102.105 - 0cd1.c4a0.ec02 Interface ARPA GigabitEthernet0/0/0/1
192.168.102.155 - 0000.5e00.0105 Standby ARPA GigabitEthernet0/0/0/1