2009-6-4 09:53

交换机端口安全配置

基本配置命令:
    switch(config)#int f0/0
    switch(config-if)#switchport mode access /配置此接口为接入接口,不能是中继接口/
    switch(config-if)#switchport port-security /启用端口安全/
    switch(config-if)#switchport port-security mac-address mac
    /指定允许向这个接口内发送帧的mac地址。多次使用此命令,可定义多个mac地址/

其它命令:
    switch(config-if)#switchport port-security macaddress sticky
    /与上面命令功能一样。利用粘带学习,动态的获悉和配置当前已连接主机的mac地址/
    switch(config-if)#switchport port-security maxinum
    /指定当前接口最多允许多少个mac地址,默认为一个/
    switch(config-if)#switchport port-security violation {protect | restrict | shutdown}
    /规定在接收到来自规定地址之外某个mac地址帧时应该采取的动作,默认是关闭该端口/
    switch#show port-security int f0/0 /查看接口安全的状态/

 

来源:51CTO

相关

本评论 更新于:2025-12-15 3:22:22
在C114 APP中与业内人士畅聊通信行业热点话题!