华为交换机静态地址绑定
六种静态地址绑定方法
交换机支持IP+PORT、MAC+PORT、IP+MAC+PORT、IP+PORT+VLAN、MAC+PORT+VLAN、IP+MAC+PORT+VLAN六种类型的静态绑定。
使用命令:
user-bind static { { ip-address | ipv6-address } start-ip [ to end-ip ] &<1-10> | mac-address mac-address } * [ interface interface-type interface-number ] [ vlan vlan-id [ ce-vlan ce-vlan-id ] ]
可以配置IP地址、MAC地址和接口的绑定。
IP+MAC+PORT绑定配置方法:
[HUAWEI] user-bind static ip-address 192.168.1.1 mac-address 1-1-1 interface GigabitEthernet 0/0/1
IP+MAC+VLAN绑定配置方法:
[HUAWEI] user-bind static ip-address 192.168.1.1 mac-address 1-1-1 vlan 201
需注意的点
配置了user-bind static的命令后,需要在接口或是vlan下开启检测,如果交换机下有多个用户需要进行绑定,则要建立多个绑定表项
开启检测的具体配置方法是:
- 接口视图下:
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] ip source check user-bind enable - vlan视图下
[Huawei]vlan 2
[Huawei-vlan2]ip source check user-bind enable
更新时间 「2023-01-06 08:59:56」 添加「交换机 mac绑定 ip绑定」标签,已有 111 位阅读。