How Do I Bind an IP address and a MAC Address to an Interface?

m7g
m7g  Diamond  (1)
7 years 10 months ago  View: 1655  Reply: 1
1F

The switch supports static bindings of IP+port, MAC+port, IP+MAC+port, IP+port+VLAN, MAC+port+VLAN, and IP+MAC+port+VLAN.


The user-bind static { { ip-address | ipv6-address } start-ip [ to end-ip ] &<1-10> | mac-address mac-address } * [ interface interface-type interface-number ] [ vlan vlan-id [ ce-vlan ce-vlan-id ] ] command can be used to configure the static bindings.


For example, to bind an IP address and a MAC address to an interface, run the following command:


[HUAWEI] user-bind static ip-address 192.168.1.1 mac-address 1-1-1 interface GigabitEthernet 0/0/1

m7g
m7g  Diamond 
7 years 10 months ago
2F

For expamle2:

[HUAWEI]user-bind static ip-address 10.20.30.10 vlan 100 ce-vlan 3000


cool!