349
Fig 11-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)#service dhcp
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 67
Switch (Config)#interface vlan 1
Switch (Config-if-Vlan1)#ip help-address 10.1.1.10
Switch (Config-if-Vlan1)#exit
Switch (Config)#ip forward-protocol udp 69
Switch (Config)#interface vlan 1
Switch (Config-if-Vlan1)#ip help-address 10.1.1.20
Switch (Config-if-Vlan1)#exit
Note: DHCP server address and TFTP server address must be configured separately
since their receiving UDP protocols are different. It is recommended to use the