DHCP Relay Configuration Commands 121
Use the undo dhcp-server command to remove the VLAN interface from the
selected DHCP Server group. By default, DHCP Server requests are not forwarded.
You can only add the primary VLAN interface to a DHCP Server group. The primary
VLAN interface is the first interface that you configure.
This command has more parameters when entered in system view. Refer to
dhcp-server ip below for details.
Related commands: dhcp-server ip, display dhcp-server, display
dhcp-server interface vlan-interface, debugging dhcp-relay
.
Example
To add VLAN-Interface 1 to DHCP Server group1, enter the following:
<SW5500>system-view
System View: return to User View with Ctrl+Z.
[SW5500]interface vlan-interface 1
[SW5500-Vlan-interface1]dhcp-server 1
dhcp-server ip Syntax
dhcp-server
groupNo
ip
ipaddress1
[
ipaddress2
]
undo dhcp-server
groupNo
View
System View
Parameters
groupNo
Enter the DHCP server group number, in the range 0 to 19.
ipaddress1
Enter the IP address of the primary Server in the group.
ipaddress2
Enter the IP address of the secondary Server in the group. Optional.
Description
Use the dhcp-server ip command to configure the IP address of the DHCP
Server used by the DHCP Server group.
Use the undo dhcp-server ip command to delete the IP addresses of all DHCP
Servers in DHCP Server group.
This command has fewer parameters when entered in VLAN Interface View. Refer
to dhcp-server command for details.
Related commands: dhcp-server, debugging dhcp-relay.
Example
To configure the primary and secondary IP addresses of DHCP Server group 1 as
1.1.1.1 and 2.2.2.2 respectively, enter the following:
<SW5500>system-view
System View: return to User View with Ctrl+Z.
[SW5500]dhcp-server 1 ip 1.1.1.1 2.2.2.2