华为主用设备MAC与IP绑定相关_翱翔鸟-e网日记_百度空间

1、系统视图下
am user-bind mac-addr mac地址 ip-addr ip地址 interface 接口类型 接口序号
2、以太网端口视图下
interface 接口类型 接口序号
am user-bind mac-addr mac地址 ip-addr ip地址

端口绑定
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 进行绑定。
<Quidway> 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 进行绑定。
<Quidway> 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 命令用来显示端口绑定的配置信息。
【举例】
# 显示当前系统端口绑定的配置信息。
<Quidway> 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 进行了绑定。

假设IP地址10.1.1.2,MAC地址0000-0000-0001
1IP+MAC+端口绑定流程

三层交换机中目前只有S3526系列支持使用AM命令来进行IP地址和端口的绑定。并且如果S3526系列交换机要采用AM命令来实现绑定功能,则交换机必须是做三层转发(即用户的网关应该在该交换机上)。

2、采用DHCP-SECURITY来实现
1.配置端口的静态MAC地址

[SwitchA]mac-address static 0000-0000-0001 interface e0/1 vlan 1
2.配置IP和MAC对应表[SwitchA]dhcp-security 10.1.1.2 0000-0000-0001 static
3.配置dhcp-server组号(否则不允许执行下一步,此dhcp-server组不用在交换机上创建也可)[SwitchA-Vlan-interface1]dhcp-server 1
4. 使能三层地址检测[SwitchA-Vlan-interface1]address-check enable
3、采用AM命令来实现
1.使能AM功能[SwitchA]am enable
2.进入端口视图[SwitchA]vlan 10
3. 将E0/1加入到vlan10[SwitchA-vlan10]port Ethernet 0/1
4.创建(进入)vlan10的虚接口[SwitchA]interface Vlan-interface 10
5.给vlan10的虚接口配置IP地址[SwitchA-Vlan-interface10]ip add 10.1.1.1 255.255.255.0
6.进入E0/1端口[SwitchA]interface Ethernet 0/1
7. 该端口只允许起始IP地址为10.1.1.2的10个IP地址上网[SwitchA-Ethernet0/1]am ip-pool 10.1.1.2 10



郑重声明:资讯 【华为主用设备MAC与IP绑定相关_翱翔鸟-e网日记_百度空间】由 发布,版权归原作者及其所在单位,其原创性以及文中陈述文字和内容未经(企业库qiyeku.com)证实,请读者仅作参考,并请自行核实相关内容。若本文有侵犯到您的版权, 请你提供相关证明及申请并与我们联系(qiyeku # qq.com)或【在线投诉】,我们审核后将会尽快处理。
—— 相关资讯 ——