In the field of Ethernet, after years of efforts and development, H3C has accumulated a large number of industry-leading intellectual property rights and patents, covering campus switches and data center switches. Below, I sorted out the basic configuration of H3C Huawei switch port binding, hoping to help you.
1, MAC port
A)AM command
Use the special AM User-bind command to complete the binding of MAC address and port. For example:
[SwitchA]am user binds mac address 00e0-fc22-f8d3 interface Ethernet 0/ 1
Configuration description: As the port parameter is used, the port will be taken as the reference, that is, at this time, port E0/ 1 only allows PC 1 to access the Internet, while PCs with other unbound MAC addresses cannot access the Internet. However, PC 1 can use this MAC address to surf the Internet on other ports.
B)mac address command
Use mac-address static command to complete the binding between mac address and port. For example:
[SwitchA]mac address static 00e0-fc22-f8d3 interface Ethernet 0/ 1 vlan 1
[SwitchA]mac address Maximum mac Count 0
Configuration description: Because the port learning function is used, it is necessary to set the mac learning number of this port to 0 after the mac is statically bound, so that other PCs cannot learn the mac address of this port after accessing this port.
2、IP MAC
A)AM command
Use the special AM User-bind command to complete the binding of IP address and MAC address. For example:
[SwitchA]am user binds ip address10.1.1.2 MAC address 00e0-fc22-f8d3.
Configuration description: The above configuration completes the global binding of PC. IP address and MAC address, that is, PCs with different IP addresses or MAC addresses cannot access the Internet at any port.
Supported models: S3026E/EF/C/G/T, S3026C-PWR, E026/E026T, S3050C, E050, S3526E/C/EF, S50 12T/G, S5024G.
B)arp command
Use special arp static command to complete the binding of IP address and MAC address. For example:
[SwitchA]arp static10.1.1.200e0-fc22-f8d3
Configuration description: The above configuration completes the global binding of IP address and MAC address of PC.
3. Port IP MAC
Use the special AM User-bind command to complete the binding between IP, MAC address and port. For example:
[SwitchA]am user binds ip address10.1.1.2 MAC address 00e0-fc22-f8d3 interface Ethernet 0/ 1
Configuration Description: It can complete the binding function between the IP address and MAC address of PC 1 and port E0/ 1. Because the port parameter is used, the port will be used as a reference, that is, at this time, port E0/ 1 only allows PC 1 to access the Internet, while PCs using other unbound IP addresses and MAC addresses cannot access the Internet. But PC 1 can use this IP address and MAC address to surf the Internet on other ports.
;
1, Dong Fangbubai, a character in Jin Yong's martial arts novel the legendary swordsman, is the founder of Sun Moon Shin