xStack
®
DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
140
Command Parameters
create address_binding ip_mac ipaddress
<ipaddr> mac_address <macaddr> {ports [ <portlist> | all]}
config address_binding ip_mac ipaddress
<ipaddr> mac_address <macaddr> {ports [ <portlist> | all]}
config address_binding ip_mac ports
[ <portlist>| all ] {state [enable {[strict | loose]} | disable]
|allow_zeroip [enable | disable] |forward_dhcppkt [enable |
disable] |mode [arp | acl] |stop_learning_threshold <value 0-500>}
(1)
show address_binding
[ip_mac {[all | ipaddress <ipaddr> mac_address <macaddr>]} |
blocked {[all | vlan_name <vlan_name> mac_address
<macaddr>]} | ports <portlist>]}
delete address_binding
[ip_mac [ipaddress <ipaddr> mac_address <macaddr> | all] |
blocked [all | vlan_name <vlan_name> mac_address
<macaddr>]]
enable address_binding trap_log
disable address_binding trap_log
debug address_ binding
[event | dhcp |all]
no debug address_binding
enable address_binding dhcp_snoop
disable address_binding dhcp_snoop
clear address_binding dhcp_snoop
binding_entry
ports [<portlist>|all]
show address_binding dhcp_snoop
{[max_entry { ports <portlist>} | binding_entry {port <port>}]}
config address_binding dhcp_snoop
max_entry ports
[<portlist> | all] limit [<value 1-50> | no_limit]
config address_binding recover_learning ports
[<portlist> | all]
Each command is listed, in detail, in the following sections.
create address_binding ip_mac ipaddress
Purpose
Used to create an IP–MAC-Port Binding entry in the white list.
Syntax
create address_binding ip_mac ipaddress <ipaddr> mac_address <macaddr>
{ports [<portlist> | all]}
Description
This command is used to create an IP–MAC-Port Binding entry.
Parameters
<ipaddr>
–
The IP address of the device where the IP–MAC-Port Binding is made.
<macaddr>
– The MAC address of the device where the IP–MAC-Port binding is made.
<portlist>
– Specifies a port or range of ports to be configured for address binding. The
port list is specified by listing the lowest switch number and the beginning port number on
that switch, separated by a colon. Then the highest switch number, and the highest port
number of the range (also separated by a colon) are specified. The beginning and end of
the port list range are separated by a dash. For example, 1:3 specifies switch number 1,
port 3. 2:4 specifies switch number 2, port 4. 1:3–2:4 specifies all of the ports between
switch 1, port 3 and switch 2, port 4
−
in numerical order. Non–contiguous portlist entries
are separated by a comma. (ex: 1:1–1:3,1:7–1:9)
all
– Specifies that all ports on the switch will be configured for address binding.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To create address binding on the Switch: