王伟,H3C S6550XE-56HF-HI配置ip-mac绑定
问题描述:
H3C S6550XE-56HF-HI,软件版本为Version 7.1.070, Release 6008,如何配置ip-mac绑定?
组网及组网描述:
IP+MAC方法一:
在全局模式使用arp static方式进行绑定,命令如下:
arp static 1.1.1.1 0023-24a1-0605
IP+MAC方法二:
进入接口使用arp filter方式进行绑定,命令如下:
int Ten-GigabitEthernet1/0/1
arp filter binding 1.1.1.1 0023-24a1-0605
IP+MAC方法三:
进入接口使用动态绑定表项的方式进行绑定,命令如下:
int Ten-GigabitEthernet 1/0/1
ip source binding ip-address 1.1.1.1 mac-address 0023-24a1-0605
ip verify source ip-address mac-address
也可在系统模式下使用动态绑定表项的方式进行绑定,命令如下:
ip source binding ip-address 1.1.1.1 mac-address 0023-24a1-0605
7小时前回答用了arp static绑定了,但是电脑修改IP地址后,仍能正常上网呢。在vlan 接口下配置了方法三,电脑修改地址后,仍能正常上网。
王伟您好,参考
作
命令
说明
进入系统视图
system-view
-
进入接口视图
interface interface-type interface-number
可支持二层以太网端口/二层聚合接口/三层以太网接口/三层以太网子接口/三层聚合接口/三层聚合子接口/VLAN接口
开启IPv4接口绑定功能
ip verify source { ip-address | ip-address mac-address | mac-address }
缺省情况下,接口的IPv4接口绑定功能处于关闭状态
IPv4接口绑定功能可多次配置,最后一次的配置生效
配置接口的IPv4静态绑定表项
表1-5 配置接口的IPv4静态绑定表项
操作
命令
说明
进入系统视图
system-view
-
进入接口视图
interface interface-type interface-number
可支持二层以太网端口/二层聚合接口/三层以太网接口/三层以太网子接口/三层聚合接口/三层聚合子接口/VLAN接口
配置接口的IPv4静态绑定表项
ip source binding { ip-address ip-address | ip-address ip-address mac-address mac-address | mac-address mac-address } [ vlan vlan-id ]
缺省情况下,接口上未配置IPv4静态绑定表项
VLAN参数仅在二层以太网接口视图下支持
在与ARP Detection功能配合时,绑定表项中必须指定IP、MAC和VLAN参数,且该VLAN为使能ARP Detection功能的VLAN,
7小时前回答参考
https://www.h3c.com/cn/d_
7小时前回答没有ip-mac binding enable命令
王伟进入接口下,输入下面三条命令
ip source binding ip-address X.X.X.X mac-address H-H-H
ip verify source ip-address mac-address
你正在,H3C S6550XE-56HF-HI配置ip-mac绑定