2 commands for dhcp relay configuration, 1 ip forward-protocol udp bootps, 2 ip helper-address – PLANET XGS3-24040 User Manual

Page 331: Ommands for, Dhcp, Elay, Onfiguration

Advertising
background image


24-44

24.2 Commands for DHCP Relay Configuration
24.2.1 ip forward-protocol udp bootps

Command:

ip forward-protocol udp bootps

no ip forward-protocol udp bootps

Function:

Sets DHCP relay to forward UPD broadcast packets on the port; the “no ip forward-protocol udp

bootps”command cancels the service.

Parameter:

bootps forwarding UDP port as 67 DHCP broadcast packets.

Default:

Not forward UPD broadcast packets by default.

Command mode:

Global Mode

Usage Guide:

The forwarding destination address is set in the “ip helper-address” command and described later.

Example:

Setting DHCP packets to be forwarded to 192.168.1.5.

Switch(config)#ip forward-protocol udp boots

Switch(config)#interface vlan 1

Switch(Config-if-Vlan1)#ip helper-address 192.168.1.5

24.2.2 ip helper-address

Command:

ip helper-address <ip-address>

no ip helper-address <ip-address>

Function:

Specifies the destination address for the DHCP relay to forward UDP packets. The “no ip

helper-address <ip-address>” command cancels the setting.

Default:

None.

Command mode:

Interface Configuration Mode

Usage Guide:

The DHCP relay forwarding server address corresponds to the port forwarding UDP, i.e. DHCP

relay forwards corresponding UDP packets only to the corresponding server instead of all UDP

packets to all servers. When this command is run after “ip forward-protocol udp <port>

command, the forwarding address configured by this command receives the UDP packets from

<port>. The combination of “ip forward-protocol udp <port>” command and this command should

be used for configuration.

Advertising