5-12
z
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
.
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. That is, 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, neither
the IP address leases nor the authorized ARP entries will be deleted. However, these ARP entries may
conflict with new ARP entries generated on the DHCP relay agent; therefore, you are recommended to
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
Summary of Contents for E4510-48G
Page 109: ...2 18 Sysname interface bridge aggregation 1 Sysname Bridge Aggregation1 shutdown ...
Page 309: ...6 4 Sysname interface vlan interface 1 Sysname Vlan interface1 ip address dhcp alloc ...
Page 324: ...8 3 Sysname interface vlan interface 1 Sysname Vlan interface1 ip address bootp alloc ...
Page 530: ...2 5 Sysname mvlan 100 subvlan 10 to 15 ...
Page 739: ...8 15 Sysname system view Sysname port security trap addresslearned ...
Page 819: ...13 11 Sysname system view Sysname public key peer key2 import sshkey key pub ...
Page 914: ...5 17 Sysname reset oam ...
Page 1064: ...5 30 Slot 2 Set next configuration file successfully ...
Page 1325: ...21 13 Examples Redirect to member 2 Sysname irf switch to 2 Sysname Slave 2 ...