ip地址与mac绑定简介
通常在交换机或者路由器下配置了dhcp服务器,为了保证某台电脑能一直获取固定IP地址,可以在地址池里静态绑定终端的IP和mac
接口做地址池的方法如下
interface Vlanif1
ip address 192.168.100.1 255.255.255.0
dhcp select interface
dhcp server static-bind ip-address 192.168.100.52 mac-address 1eee-eeef-efdf //P和mac绑定
全局下配置IP地址和mac地址的绑定主要是为了配合ipsg 的功能 保证只有绑定表里的mac和IP相符的终端可以接入网络 配置如下
HUAWEI] user-bind static ip-address 10.0.0.1 mac-address 0001-0001-0001 //创建绑定表项
[HUAWEI] user-bind static ip-address 10.0.0.11 mac-address 0002-0002-0002
[HUAWEI] interface ethernet 0/0/1 //进入接口下使能IP报文检查功能(下联接口或者接终端接口)
[HUAWEI-Ethernet0/0/1] ip source check user-bind enable 开启接口的检测功能
请先 后发表评论~