由于终结子接口不能转发广播报文,在收到广播报文后它们直接把该报文丢弃。为了允许终结子接口能转发广播报文,可以通过在子接口上执行命令arp broadcast enable使能终结子接口的ARP广
播功能。
最终将配置修改为
AR1配置:
interface GigabitEthernet0/0/0.1
dot1q termination vid 10
ip address 1.1.1.1 255.255.255.0
arp broadcast enable
AR2配置:
interface GigabitEthernet0/0/0.1
dot1q termination vid 10
ip address 1.1.1.2 255.255.255.0
arp broadcast enable
测试可以ping通
ping 1.1.1.1
PING 1.1.1.1: 56 data bytes, press CTRL_C to break
Reply from 1.1.1.1: bytes=56 Sequence=1 ttl=255 time=30 ms
Reply from 1.1.1.1: bytes=56 Sequence=2 ttl=255 time=20 ms
Reply from 1.1.1.1: bytes=56 Sequence=3 ttl=255 time=20 ms
Reply from 1.1.1.1: bytes=56 Sequence=4 ttl=255 time=30 ms
Reply from 1.1.1.1: bytes=56 Sequence=5 ttl=255 time=50 ms