端口绑定MAC地址(思科)

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了端口绑定MAC地址(思科)相关的知识,希望对你有一定的参考价值。

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地址(思科)的主要内容,如果未能解决你的问题,请参考以下文章

交换机中MAC地址与IP地址怎么绑定

三层交换机端口配置ip地址及绑定MAC地址的方法

通过思科交换机端口查IP或ip查端口?组网见下面描述,由于端口与IP绑定,有些端口不知道IP地址无法上网

交换机如何实现ip-mac绑定?

DCN端口与地址绑定技术

交换机端口安全(mac地址绑定)