63
A relay agent interface can only correlate with one DHCP server group, and a newly configured
correlation overwrites the previous one. If the server group in the new correlation does not exist, the new
configuration will not work. The interface still maintains the previous correlation.
The
DHCP server group referenced in this command should have been configured by using the
dhcp
relay server-group
command.
Related commands:
dhcp relay server-group
and
display dhcp relay
.
Examples
# Correlate VLAN-interface 1 to DHCP server group 1.
<Sysname> system-view
[Sysname] interface vlan-interface 1
[Sysname-Vlan-interface1] dhcp relay server-select 1
dhcp select relay
Syntax
dhcp select relay
undo dhcp select relay
View
Interface view
Default level
2: System level
Parameters
None
Description
Use the
dhcp select
relay
command to enable the relay agent on the current interface. Upon receiving
requests from an enabled interface, the relay agent will forward these requests to outside DHCP servers
for IP address allocation.
Use the
undo dhcp select
relay
command to restore the default.
After DHCP is enabled, the DHCP server is enabled on an interface by default. Upon receiving a client’s
request from the interface, the DHCP server allocates an IP address from the DHCP address pool to the
client.
When the working mode of the interface is changed from DHCP server to DHCP relay agent, the IP
address leases will not be deleted. However, these ARP entries may conflict with new ARP entries
generated on the DHCP relay agent. You can delete the existing IP address leases when changing the
interface working mode to DHCP relay agent.
Examples
# Enable the DHCP relay agent on VLAN-interface 1.
<Sysname> system-view
[Sysname] interface vlan-interface 1
[Sysname-Vlan-interface1] dhcp select relay
Содержание A5120 EI Series
Страница 26: ...18 Sysname Vlan interface1 ip address 202 38 160 1 255 255 255 0 sub ...
Страница 83: ...75 Sysname Vlan interface1 ip address dhcp alloc ...
Страница 189: ...181 Sysname tcp ipv6 window 4 ...