5 dhcp troubleshooting, Dhcp, Roubleshooting – PLANET XGS3-24040 User Manual
Page 217

Chapter 28 DHCP Configuration
28-11
Scenario 2:
Figure 1-3 DHCP Relay Configuration
As shown in the above figure, route switch is configured as a DHCP relay. The DHCP server address is
10.1.1.10, TFTP server address is 10.1.1.20, the configuration steps is as follows:
Switch(config)#interface vlan 1
Switch(Config-if-Vlan1)#ip address 192.168.1.1 255.255.255.0
Switch(Config-if-Vlan1)#exit
Switch(config)#vlan 2
Switch(Config-Vlan-2)#exit
Switch(config)#interface Ethernet 1/2
Switch(Config-Erthernet1/2)#switchport access vlan 2
Switch(Config-Erthernet1/2)#exit
Switch(config)#interface vlan 2
Switch(Config-if-Vlan2)#ip address 10.1.1.1 255.255.255.0
Switch(Config-if-Vlan2)#exit
Switch(config)#ip forward-protocol udp bootps
Switch(config)#interface vlan 1
Switch(Config-if-Vlan1)#ip help-address 10.1.1.10
Switch(Config-if-Vlan1)#exit
It is recommended to use the combination of command ip forward-protocol udp
and ip helper-address
on layer 3 and cannot be configured on layer 2 ports directly.
28.5 DHCP Troubleshooting
If the DHCP clients cannot obtain IP addresses and other network parameters, the following procedures can
be followed when DHCP client hardware and cables have been verified ok.
DHCP Server
10.1.1.10
DHCP Client
DHCP Client
DHCP Client
E1/1
192.168.1.1
DHCP Relay
E1/2
10.1.1.1