华为设备ARP配置命令

[Huawei-Vlanif10]arp expire-time 1200 //配置动态ARP表项的老化超时时间,缺省为1200秒,即20分钟
[Huawei-Vlanif10]arp detect-times 3 //配置动态ARP表项的老化探测次数,缺省为3次
[Huawei-Vlanif10]arp detect-mode unicast //配置接口以单播方式发送ARP老化探测报文,缺省只在最后一次发送ARP老化探测报文是广播方式,其余均为单播方式发送。
[Huawei]l2-topology detect enable //使能二层拓扑探测功能
[Huawei]mac-address update arp //使能MAC刷新ARP功能,保证动态ARP表项及时更新
[Huawei]display current-configuration | include arp //查看动态ARP的老化参数配置
[Huawei]arp static 10.1.1.1 1-2-3 vid 10 interface g0/0/1 //当出接口是以太网接口,并且以太网接口处于二层模式时,配置静态ARP表项
[Huawei]arp static 10.1.1.1 1-2-3 vpn-instance 1 //当需要指定ARP表项所属的VPN实例时,配置静态ARP表项
[Huawei]arp static 10.1.1.1 1-2-3 //当需要配置短静态ARP表项,配置静态ARP表项
[Huawei]display arp dynamic //查看设备已经学到的所有动态ARP表项
[Huawei]display arp static //查看静态ARP表项
[Huawei]display arp network 10.1.1.1 //查看基于网段的静态ARP表项
[Huawei]display arp vpn-instance 1 //查看基于VPN实例的静态ARP表项
[Huawei-Vlanif10]arp-proxy enable //使能路由式Proxy ARP功能
[Huawei-Vlanif10]arp-proxy inner-sub-vlan-proxy enable //使能VLAN内Proxy ARP功能
[Huawei-Vlanif10]arp-proxy inter-sub-vlan-proxy enable //使能VLAN间Proxy ARP
[Huawei]mac-address multicast 0100-0100-0100 interface GigabitEthernet 0/0/1 vlan 10 //配置对应多出接口的MAC地址表项
[Huawei-GigabitEthernet0/0/2]mac-address multicast 0100-0100-0100 vlan 10 //在接口视图下配置对应多出接口的MAC地址表项
[Huawei]display mac-address multicast //查看对应多出接口的MAC地址表项信息
[Huawei]display mac-address multicast 0100-0100-0100 vlan 10
[Huawei]display arp statistics all //查看ARP表项的统计信息
[Huawei]display arp status 10.1.1.1 slot 0 //查看ARP表项在设备的下发状态
reset arp packet statistics //清除ARP报文统计信息
display arp error packet //查看最近接收的10个错误的ARP报文
display arp packet statistics //查看ARP报文的统计数据
display arp track //查看VLANIF接口在学习ARP表项过程中出接口的变化情况
display cpu-defend statistics packet-type arp-request all //查看ARP请求报文上送CPU的统计信息
display cpu-defend statistics packet-type arp-miss all //查看ARP应答报文上送CPU的统计信息

  • 1
    点赞
  • 14
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值