1. 程式人生 > >端口綁定MAC地址(思科)

端口綁定MAC地址(思科)

onf 綁定 interface 進入 全局 eth 配置 address mode

Switch>enable //進入特權模式

Switch#configure //進入全局配置模式

Switch(config)#interface fastEthernet 0/1 //進入端口模式

Switch(config-if)#switchport mode access //配置端口為access

Switch(config-if)#switchport port-security //添加端口靜態MAC地址,默認地址數是一個

Switch(config-if)#switchport port-security mac-address 0000.0000.0000 //綁定MAC地址

Switch(config-if)#exit

Switch(config)#interface fastEthernet 0/1

Switch(config-if)#switchport port-security maximum 2 //綁定第二個設備的mac地址

Switch(config-if)#switchport port-security mac-address 0000.0000.0000.0000

端口綁定MAC地址(思科)