yumsy9,H3C S5500V2-52C-EI
问题描述:
1、想要实现员工的电脑Mac地址绑定,陌生电脑不能接入公司内网,应该怎么配置?
2、电脑识别网络很慢,是哪里的问题?应该怎么配置交换机?
组网及组网描述:
目前核心详细配置如下:
Login: admin Password: ****************************************************************************** * Copyright (c)
11小时前提问您好,参考
1.5.1 IPv4静态绑定表项配置举例
1. 组网需求
如图1-2所示,Host A与Host B分别与Device B的端口Ethernet1/0/2、Ethernet1/0/1相连;Host C与Device A的端口Ethernet1/0/2相连。Device B接到Device A的端口Ethernet1/0/1上。各主机均使用静态配置的IP地址。
通过在Device A和Device B上配置IPv4静态绑定表项,可以满足以下各项应用需求:
· Device A的端口Ethernet1/0/2上只允许Host C发送的IP报文通过。
· Device A的端口Ethernet1/0/1上只允许Host A发送的IP报文通过。
· Device B的端口Ethernet1/0/2上只允许Host A发送的IP报文通过。
· Device B的端口Ethernet1/0/1上只允许使用IP地址192.168.0.2/24的主机发送的IP报文通过,即允许Host B更换网卡后仍然可以使用该IP地址与Host A互通。
2. 组网图
图1-2 配置静态绑定表项组网图
3. 配置步骤
配置Device A
# 在端口Ethernet1/0/2上配置IPv4端口绑定功能,绑定源IP地址和MAC地址。
<DeviceA> system-view
[DeviceA] interface ethernet 1/0/2
[DeviceA-Ethernet1/0/2] ip verify source ip-address mac-address
# 配置IPv4静态绑定表项,只允许MAC地址为0001-0
[DeviceA] interface ethernet 1/0/2
[DeviceA-Ethernet1/0/2] ip source binding ip-address 192.168.0.3 mac-address 0001-0
[DeviceA-Ethernet1/0/2] quit
# 在端口Ethernet1/0/1上配置IPv4端口绑定功能,绑定源IP地址和MAC地址。
[DeviceA] interface ethernet 1/0/1
[DeviceA-Ethernet1/0/1] ip verify source ip-address mac-address
# 配置IPv4静态绑定表项,只允许MAC地址为0001-0
[DeviceA] interface ethernet 1/0/1
[DeviceA-Ethernet1/0/1] ip source binding ip-address 192.168.0.1 mac-address 0001-0
[DeviceA-Ethernet1/0/1] quit
配置Device B
# 在端口Ethernet1/0/2上配置IPv4端口绑定功能,绑定源IP地址和MAC地址。
<DeviceB> system-view
[DeviceB] interface ethernet1/0/2
[DeviceB-Ethernet1/0/2] ip verify source ip-address mac-address
# 配置IPv4静态绑定表项,只允许MAC地址为0001-0
[DeviceB-Ethernet1/0/2] ip source binding ip-address 192.168.0.1 mac-address 0001-0
[DeviceB-Ethernet1/0/2] quit
# 在Ethernet1/0/1上配置IPv4端口绑定功能,绑定源IP地址。
[DeviceB] interface ethernet 1/0/1
[DeviceB-Ethernet1/0/1] ip verify source ip-address
# 配置IPv4静态绑定表项,只允许IP地址为192.168.0.2的主机发送的IP报文通过端口Ethernet1/0/1。
[DeviceB-Ethernet1/0/1] ip source binding ip-address 192.168.0.2
[DeviceB-Ethernet1/0/1] quit
4. 验证配置结果
# 在Device A上显示IPv4静态绑定表项配置成功。
[DeviceA] display ip source binding static
Total entries found: 2
MAC Address IP Address VLAN Interface Type
0001-0
0001-0
# 在Device B上显示IPv4静态绑定表项配置成功。
[DeviceB] display ip source binding static
Total entries found: 2
MAC Address IP Address VLAN Interface Type
0001-0
N/A 192.168.0.2 N/A Eth1/0/1 Static
11小时前回答
暂无
你正在,H3C S5500V2-52C-EI