华为S3300 S2300系列交换机 做IP、mac、端口三绑定

来源:百度知道 编辑:UC知道 时间:2024/05/28 20:00:58
华为新款S3300系列及S2300系列,三绑定方法。

不要在告诉我用AM命令。此交换机已找不到此命令。

#
sysname S-switch-A
#
vlan batch 3
#
arp static 10.2.2.3 00e0-fc01-0000 vid 3 interface Ethernet0/0/1
#
interface Vlanif3
ip address 10.2.2.2 255.0.0.0
#
interface Ethernet 0/0/1
port trunk allow-pass vlan 3
#
return
上面应该是你要的。下面也有更全面的。

mac-address static 2-2-2 GigabitEthernet0/0/1 vlan 2
MAC+VLAN的绑定

dhcp snooping bind-table static ip-address 10.10.10.2 mac-address 0028-0120-0327 interface GigabitEthernet0/0/1
DHCP表的绑定

mac-address restrict
#
interface GigabitEthernet0/0/1
mac-table limit 100
port-security enable
port-security protect-action shutdown

常规端口安全配置

可以用port-security 命令来实现

每个端口限制一个mac地址。 相当于就绑定了一个。