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

H3C S3610[S5510]系列以太网交换机命令手册-RELEASE 0001(V1.03)

07-MAC+IP+端口绑定命令

本章节下载  (93.1 KB)

07-MAC+IP+端口绑定命令


第1章  MAC+IP+端口绑定配置命令

1.1  MAC+IP+端口绑定配置命令

1.1.1  display user-bind

【命令】

display user-bind

【视图】

任意视图

【参数】

【描述】

display user-bind用来显示所有端口下的绑定配置。

【举例】

# 显示所有端口的绑定配置。

<Sysname> display user-bind

The Following User address bind have been configured:

  Mac                   IP                    Port

  0007-0001-0005        200.201.202.205       Ethernet1/0/4

  0007-0001-0005        200.201.202.205       Ethernet1/0/5

  0007-0001-0005        200.201.202.205       Ethernet1/0/7

 -------------3 bind entries queried, 3 listed------------

1.1.2  display user-bind interface

【命令】

display user-bind interface interface-list

【视图】

任意视图

【参数】

interface-list:需要显示的以太网端口列表,表示方式为interface-list={ interface-type interface-number [ to interface-type interface-number ] }&<1-10>。其中interface-type为端口类型,interface-number为端口号。&<1-10>表示参数可重复次数,最小为1,最大为10。

【描述】

display user-bind interface用来按指定端口显示绑定配置。

【举例】

# 显示Ethernet1/0/4的绑定配置。

<Sysname> display user-bind interface Ethernet 1/0/4

The Following User address bind have been configured:

  Mac                   IP                    Port

  0007-0001-0005        200.201.202.205       Ethernet1/0/4

 -------------1 bind entries queried, 1 listed------------

# 显示Ethernet1/0/4Ethernet1/0/5Ethernet1/0/9的绑定配置。

<Sysname> display user-bind interface Ethernet 1/0/4 Ethernet 1/0/5 Ethernet 1/0/9

The Following User address bind have been configured:

  Mac                   IP                    Port

  0007-0001-0005        200.201.202.205       Ethernet1/0/4

  0007-0001-0005        200.201.202.205       Ethernet1/0/5

  0007-0001-0005        200.201.202.205       Ethernet1/0/9

 -------------3 bind entries queried, 3 listed ------------

# 显示Ethernet1/0/10Ethernet1/0/15的绑定信息。

<Sysname> display user-bind interface Ethernet 1/0/10 to Ethernet 1/0/15

The Following User address bind have been configured:

  Mac                   IP                    Port

  0007-0001-0005        200.201.202.205       Ethernet1/0/10

  0007-0001-0005        200.201.202.205       Ethernet1/0/11

  0007-0001-0005        200.201.202.205       Ethernet1/0/12

 -------------3 bind entries queried, 3 listed ------------

1.1.3  display user-bind ip-addr

【命令】

display user-bind ip-addr ip-address

【视图】

任意视图

【参数】

ip-address:IP地址。

【描述】

display user-bind ip-addr用来按IP地址显示所有端口的绑定配置。

【举例】

# 按IP地址显示对应的绑定配置。

<Sysname> display user-bind ip-addr 192.168.0.2

The Following User address bind have been configured:

  Mac                   IP                    Port

  0007-0001-0001        192.168.0.2           Ethernet1/0/22

 -------------1 bind entries queried, 1 listed------------

1.1.4  display user-bind mac-addr

【命令】

display user-bind mac-addr mac-address

【视图】

任意视图

【参数】

mac-address:MAC地址,格式为H-H-H。

【描述】

display user-bind mac-addr用来按MAC地址显示所有端口的绑定配置。

【举例】

# 按MAC地址显示对应的绑定配置。

<Sysname> display user-bind mac-addr 0001-0002-0003

The Following User address bind have been configured:

  Mac                   IP                    Port

  0001-0002-0003        1.1.1.1               Ethernet1/0/30

 -------------1 bind entries queried, 1 listed------------

1.1.5  user-bind

【命令】

系统视图下:

user-bind mac-addr mac-address ip-addr ip-address interface interface-list

undo user-bind mac-addr mac-address ip-addr ip-address interface interface-list

以太网端口视图下:

user-bind mac-addr mac-address ip-addr ip-address

undo user-bind mac-addr mac-address ip-addr ip-address

【视图】

系统视图/以太网端口视图

【参数】

mac-address:MAC地址,格式为H-H-H。

ip-address:IP地址。

interface-list:需要绑定的以太网端口列表,表示方式为interface-list={ interface-type interface-number [ to interface-type interface-number ] }&<1-10>。其中interface-type为端口类型,interface-number为端口号。&<1-10>表示参数可重复次数,最小为1,最大为10。

【描述】

l              在系统视图下:

user-bind mac-addr mac-address ip-addr ip-address interface interface-list命令用来对指定端口进行绑定配置。

undo user-bind mac-addr mac-address ip-addr ip-address interface interface-list命令用来对指定端口取消绑定。

l              在以太网端口视图下:

user-bind mac-addr mac-address ip-addr ip-address命令用来对当前端口进行绑定配置。

undo user-bind mac-addr mac-address ip-addr ip-address命令用来对当前端口取消绑定。

需要注意以下几点:

l              在系统视图下,interface interface-list参数必选。在以太网端口视图下,不能输入interface interface-list参数。

l              聚合端口不支持进行“MAC+IP+端口”绑定操作。

l              绑定策略:S3610&S5510系列以太网交换机以“MAC地址+IP地址+端口”区分不同的绑定,要求MAC地址和IP地址必须是一一对应的。

l              绑定是针对端口的,一个端口被绑定后,仅仅只是这个端口被限制了,对于其他端口是不受该绑定影响的。

l              合法的绑定条目的MAC地址必须为非全0,非全F,非组播MAC。IP地址必须是ABC三类地址之一。此外,不能绑定127.x.x.x与0.0.0.0的IP地址。

【举例】

# 在系统视图下为端口Ethernet1/0/2配置一条MAC地址为0001-0001-0001、IP地址为192.168.0.1的绑定。

<Sysname> system-view

[Sysname] user-bind mac-addr 0001-0001-0001 ip-addr 192.168.0.1 interface Ethernet 1/0/2

 

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

新华三官网
联系我们