User's Manual
392
network 192.168.20.0 255.255.255.0
range 192.168.20.211 192.168.20.215
domain-name my315
default-router 192.168.20.1
dns-server 192.168.1.3 61.2.2.10
netbios-name-server 192.168.20.1
lease 1 12 0
!
ip dhcpd enable
52.4 Configuring DHCP Relay
52.4.1 Configuration Task List of DHCP Relay
Enabling DHCP relay
Disabling DHCP relay
Setting the parameters of DHCP relay
52.4.2 DHCP Relay Configuration Tasks
(1) Enabling DHCP Relay
If you want to enable DHCP Relay on SWITCH, please enable DHCP server first. For details, please refer to
section “Enabling the DHCP Server.”
(2) Disabling DHCP Relay
If you want to disable DHCP Relay on SWITCH, please disable the DHCP server first. For details, please refer
to section “Disabling the DHCP Server.”
(3) Setting the Parameters of DHCP Relay
You can modify the destination address of DHCP relay according to requirements. The relay function of the
DHCP packet is same in the mechanism of “Forwarding the UDP broadcast packet”. You can refer to the
command, ip forward-protocol udp.
52.4.3 DHCP Relay Configuration Example
In the following example, the DHCP relay is enabled, the DHCP-request packet that is received from vlan 1
will be relayed to 10.1.1.1 and at the same time the DHCP-relay packet that arrives 192.168.20.1 will be
retransmitted out from VLAN1.
interface vlan 1
ip address 192.168.20.1 255.255.255.0
ip help-address 10.1.1.1
!
ip dhcpd enable