• 欢迎访问搞代码网站,推荐使用最新版火狐浏览器和Chrome浏览器访问本网站!
  • 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏搞代码吧

Cisco3550实现MAC和交换机端口绑定

mysql 搞代码 4年前 (2022-01-09) 21次浏览 已收录 0个评论

利用交换机的Port-Security功能实现 以下是一个配置实例: switch#c onfig t switch(config)#int f0/1 switch(config-if)#switchport mode access //设置交换机的端口模式为access模式,注意缺省是dynamic //dynamic模式下是不能使用Port-security功能

<link href=”/js/syntaxhighlighter/SyntaxHighlighter.css” rel=”stylesheet” type=”text/css” />

利用交换机的Port-Security功能实现

  以下是一个配置实例:

  switch#c onfig t

  switch(config)#int f0/1

  switch(config-if)#switchp

本文来源gao!%daima.com搞$代*!码9网(

ort mode access

  //设置交换机的端口模式为access模式,注意缺省是dynamic

  //dynamic模式下是不能使用Port-security功能

  switch(config-if)#switchport port-security

  //打开port-security功能

  switch(config-if)#switchport port-security mac-address xxxx.xxxx.xxxx

  //xxxx.xxxx.xxxx就是你要关联的mac地址

  switch(config-if)#switchport port-security maximum 1

  //其实缺省就是1

  switch(config-if)#switchport port-security violation shutdown

  //如果违反规则,就shutdown端口

  //这个时候你show int f0/1的时候就会看到接口是err-disable的

  附:

  switchport port-security命令语法

  Switch(config-if)#switchport port-security ?

  aging Port-security aging commands

  mac-address Secure mac address

  //设置安全MAC地址

  maximum Max secure addresses

  //设置最大的安全MAC地址的数量,缺省是1

  violation Security violation mode

  //设置违反端口安全规则后的工作,缺省是shutdown


搞代码网(gaodaima.com)提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请说明详细缘由并提供版权或权益证明然后发送到邮箱[email protected],我们会在看到邮件的第一时间内为您处理,或直接联系QQ:872152909。本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:Cisco3550实现MAC和交换机端口绑定
喜欢 (0)
[搞代码]
分享 (0)
发表我的评论
取消评论

表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址