• 产品与解决方案
  • 行业解决方案
  • 服务
  • 支持
  • 合作伙伴
  • 关于我们

H3C S7500系列以太网交换机 命令手册-RELEASE 3100系列(V1.04)

12-端口绑定命令

本章节下载  (81.56 KB)

12-端口绑定命令


第1章  端口绑定配置命令

1.1  端口绑定配置命令

1.1.1  am user-bind interface

【命令】

am user-bind { mac-addr mac-address | ip-addr ip-address }* interface-list

undo am user-bind { mac-addr mac-address | ip-addr ip-address } interface-list

【视图】

系统视图

【参数】

mac-address:绑定的MAC地址值。

ip-address:绑定的IP地址值。

interface-list:目的端口列表。interface-list = interface-type interface-number [ to interface-type interface-number ] &<1-10>。其中:

l              interface-type表示绑定的端口类型;

l              interface-number表示绑定的端口号;

l              to用来指定一组连续的端口,to之后的端口号要大于或等于to之前的端口号;

l              &<1-10>表示前面的参数最多可以输入10次。

【描述】

am user-bind命令用来将合法用户的MAC地址和IP地址绑定到指定的端口上。undo am user-bind命令用来取消MAC地址和IP地址与指定端口的绑定。

进行绑定操作后,只有合法用户的报文才能通过端口。

&  说明:

对于一个端口,最多可以绑定100个MAC地址和IP地址。

 

【举例】

# 将MAC地址为000f-e20f-5600,IP地址为10.1.1.1的合法用户与端口GigabitEthernet2/0/2进行绑定。

<H3C> system-view

System View: return to User View with Ctrl+Z.

[H3C] am user-bind mac-addr 000f-e20f-5600 ip-addr 10.1.1.1 GigabitEthernet2/0/2

1.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地址与当前端口的绑定。

进行绑定操作后,只有合法用户的报文才能通过当前端口。

&  说明:

对于一个端口,最多可以绑定100个MAC地址和IP地址。

 

【举例】

# 将MAC地址为000f-e20f-5600,IP地址为10.1.1.1的合法用户与端口GigabitEthernet2/0/2进行绑定。

<H3C> system-view

System View: return to User View with Ctrl+Z.

[H3C] interface GigabitEthernet2/0/2

[H3C-GigabitEthernet2/0/2] am user-bind mac-addr 000f-e20f-5600 ip-addr 10.1.1.1

1.1.3  display am user-bind

【命令】

display am user-bind [ interface interface-type interface-number | mac-addr | ip-addr ]

【视图】

任意视图

【参数】

interface:显示指定端口的绑定信息。

interface-type:端口类型。

interface-number:端口编号。

mac-addr显示MAC地址的绑定信息。

ip-addr:显示IP地址的绑定信息。

【描述】

display am user-bind命令用来显示端口绑定的配置信息。

【举例】

# 显示当前系统端口绑定的配置信息。

<H3C> display am user-bind

Following address bind have been configured (* means that the rule is set by system):

  Mac                     IP                     Port

  000f-e20f-5101        1.2.3.3               Ethernet3/0/2

  000f-e20f -5102        2.3.2.3               Ethernet3/0/4

以上显示信息表示,系统当前总共有两条端口绑定的配置:

l              MAC地址000f-e20f -5101、IP地址1.2.3.3已经与端口Ethernet3/0/2进行了绑定;

l              MAC地址000f-e20f -5102、IP地址2.3.2.3已经与端口Ethernet3/0/4进行了绑定。

 

不同款型规格的资料略有差异, 详细信息请向具体销售和400咨询。H3C保留在没有任何通知或提示的情况下对资料内容进行修改的权利!

新华三官网
联系我们