HP VPN Firewall Appliances Network Management Command Reference
191
Examples
# Request the DHCP server to release the IP address 1.1.1.1.
<Sysname> system-view
[Sysname] dhcp relay release ip 1.1.1.1
dhcp relay security static
Use dhcp relay security static to configure a static client entry, which is the binding between IP address,
MAC address, and Layer 3 interface on the relay agent.
Use undo dhcp relay security to remove specified client entries from the relay agent.
Syntax
dhcp relay security static ip-address mac-address [ interface interface-type interface-number ]
undo dhcp relay security { ip-address | all | dynamic | interface interface-type interface-number |
static }
Default
No manual client entry is configured on the DHCP relay agent.
Views
System view
Default command level
2: System level
Parameters
ip-address: Client IP address for creating a static binding.
mac-address: Client MAC address for creating a static binding, in the format H-H-H.
interface interface-type interface-number: Specifies a Layer 3 interface connecting to the DHCP client.
interface-type interface-number specifies the interface type and interface number.
all: Specifies all client entries to be removed.
dynamic: Specifies dynamic client entries to be removed.
static: Specifies manual client entries to be removed.
Usage guidelines
When using the dhcp relay security static command to bind an interface to a static client entry, make sure
that the interface is configured as a DHCP relay agent. Otherwise, entry conflicts might occur.
The undo dhcp relay security interface command is used to remove all dynamic client entries from the
interface.
Examples
# Bind DHCP relay interface GigabitEthernet 0/1 to IP address 10.10.1.1 and MAC address
0005-5d02-f2b3 of the client.
<Sysname> system-view
[Sysname] dhcp relay security static 10.10.1.1 0005-5d02-f2b3 interface gigabitethernet
0/1