免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1575 | 回复: 0
打印 上一主题 下一主题

华为交换机ip和mac地址绑定 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-04-04 15:20 |只看该作者 |倒序浏览
端口绑定
2.1 端口绑定命令
2.1.1 am user-bind interface
【命令】
am user-bind mac-addr mac-address ip-addr ip-address interface
interface-type interface-number
undo am user-bind mac-addr mac-address ip-addr ip-address interface
interface-type interface-number
【视图】
系统视图
【参数】
mac-address:绑定的MAC 地址值。
ip-address:绑定的IP 地址值。
interface-type:端口类型。
interface-number:端口编号。
【描述】
am user-bind interface 命令用来将合法用户的MAC 地址和IP 地址绑定到指定的
端口上。undo am user-bind interface 命令用来取消MAC 地址和IP 地址与指定
端口的绑定。
进行绑定操作后,只有合法用户的报文才能通过端口。
  说明:
对同一个MAC 地址,系统只允许进行一次绑定操作。
【举例】
# 将MAC 地址为00e0-fc00-5101,IP 地址为10.153.1.1 的合法用户与端口
Ethernet1/0/1 进行绑定。
system-view
System View: return to User View with Ctrl+Z.
Quidway S3900 系列以太网交换机命令手册-Release 1510
端口安全&端口绑定第2 章端口绑定
2-2
[Quidway] am user-bind mac-addr 00e0-fc00-5101 ip-addr 10.153.1.1 interface
Ethernet1/0/1
2.1.2 am user-bind
【命令】
am user-bind mac-addr mac-address ip-addr ip-address
undo am user-bind mac-addr mac-address ip-addr ip-address
【视图】
以太网端口视图
【参数】
mac-address:绑定的MAC 地址值。
ip-address:绑定的IP 地址值。
【描述】
am user-bind 命令用来将合法用户的MAC 地址和IP 地址绑定到当前的端口上。
undo am user-bind 命令用来取消MAC 地址和IP 地址与当前端口的绑定。
进行绑定操作后,只有合法用户的报文才能通过端口。
  说明:
对同一个MAC 地址,系统只允许进行一次绑定操作。
【举例】
# 将MAC 地址为00e0-fc00-5102,IP 地址为10.153.1.2 的合法用户与端口Ethernet1/0/2 进行绑定。
system-view
System View: return to User View with Ctrl+Z.
[Quidway] interface Ethernet1/0/2
[Quidway-Ethernet1/0/2] am user-bind mac-addr 00e0-fc00-5102 ip-addr
10.153.1.2
2.1.3 display am user-bind
【命令】
display am user-bind [ interface interface-type interface-number | mac-addr |
ip-addr ]
Quidway S3900 系列以太网交换机命令手册-Release 1510
端口安全&端口绑定第2 章端口绑定
2-3
【视图】
任意视图
【参数】
interface:显示指定端口的绑定信息。
interface-type:端口类型。
interface-number:端口编号。
mac-addr:显示MAC 地址的绑定信息。
ip-addr:显示IP 地址的绑定信息。
【描述】
display am user-bind 命令用来显示端口绑定的配置信息。
【举例】
# 显示当前系统端口绑定的配置信息。
display am user-bind
Following User address bind have been configured:
Mac IP Port
00e0-fc00-5101 10.153.1.1 Ethernet1/0/1
00e0-fc00-5102 10.153.1.2 Ethernet1/0/2
Unit 1:Total 2 found, 2 listed.
Total: 2 found.
以上显示信息表示,设备Unit 1 当前总共有两条端口绑定的配置:
  MAC 地址00e0-fc00-5101、IP 地址10.153.1.1 已经与端口Ethernet1/0/1 进行了绑定;
  MAC 地址00e0-fc00-5102、IP 地址10.153.1.2 已经与端口Ethernet1/0/2 进行了绑定。


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/16554/showart_270828.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP