论坛风格切换
正版合作和侵权请联系 sd173@foxmail.com
 
  • 帖子
  • 日志
  • 用户
  • 版块
  • 群组
帖子
购买邀请后未收到邀请联系sdbeta@qq.com
  • 1594阅读
  • 1回复

[求助-网络问题]安全配置交换机端口提高网络安全性 [复制链接]

上一主题 下一主题
离线亮剑
 
发帖
*
今日发帖
最后登录
1970-01-01
只看楼主 倒序阅读 使用道具 楼主  发表于: 2009-10-28 19:23:23
交换机端口安全:交换机端口安全是通过对交换接接口的配置,来限定只允许特定的mac地址向交换机接口发送帧,如果交换机收到mac地址的帧,则丢弃来自该设备的帧。

  基本配置命令:

  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 /查看接口安全的状态/
离线quen2008
发帖
*
今日发帖
最后登录
1970-01-01
只看该作者 沙发  发表于: 2009-10-29 08:52:49
配置交换机端口好像用得比较少,学习一下