Command Reference DHCP Relay Commands
Configuration
Examples
The following example enables the DHCP relay suppression function on interface 1.
Ruijie# configure terminal
Ruijie(config)# interface fastEthernet 0/1
Ruijie(config-if)# ip dhcp relay suppression
Ruijie(config-if)# exit
Ruijie(config)#
Related
Commands
Command Description
service dhcp Enables the DHCP relay.
Platform
Description
This command is only supported by switches.
ip helper-address
Use this command to add the IP address of a DHCP server. Use the no form of this command to
delete the IP address of the DHCP server.
The server address can be configured in global configuration mode or interface configuration mode.
ip helper-address [ vrf vrf-name ]A.B.C.
no ip helper-address [ vrf vrf-name ]A.B.C.
Parameter
Description
Parameter Description
N/A N/A
Defaults
No server address is configured by default.
Command
Mode
Global configuration mode, or interface configuration mode
Usage Guide
Up to 20 DHCP server can be configured globally or on each layer-3 interface.
If the DHCP server address is not configured on the interface, the DHCP relay uses the address of
the global DHCP server. If the DHCP address is configured on the interface, the DHCP relay uses the
configured server address.
For the vrf parameter, the global configuration and interface-based configuration are slightly different.
In global configuration mode, if the vrf parameter is not specified, the default address of the current
server does not belong to any vrf. In interface-based configuration, if the vrf parameter is not
specified, the current default server and port configurations belong to the same vrf.
Configuration
Examples
The following example:
1. Configures the IP address for the global server to 192.168.1.1.
2. Configures the IP address for the vrf instance-based server delp1 to 192.168.2.1.
Ruijie# configure terminal