Foundry NetIron M2404C and M2404F Metro Access Switches
Configuring DHCP Features (Rev. 03)
DHCP Relay
© 2008 Foundry Networks, Inc.
Page 48 of 63
will affect all DHCP packets regardless of the port or VLAN).
2.
Set the DHCP relay IP interfaces. See
Setting the DHCP Relay Agent IP Interface.
Table 14
lists the commands for configuring and displaying DHCP Relay.
Table 14: DHCP Server and Relay Configuration Commands
Command
Description
ip dhcp-server
Sets an IP address for the DHCP server globally.
dhcp relay dhcp-
server address
Specifies the IP address of a DHCP server that is located on a
different network.
dhcp relay
Enables the DHCP Relay capability on the configured IP interface
to which the DHCP client belongs.
Setting the DHCP Server IP Address
The
ip dhcp-server
command, in Global Configuration mode, sets an IP address for the DHCP
server. The
no
form of this command removes the DHCP server IP address.
Command Syntax
device-name
(config)#
ip dhcp-server A.B.C.D
device-name
(config)#
no ip dhcp-server A.B.C.D
Argument Description
A.B.C.D
The IP address of the DHCP server
Example 1
device-name
(config)#
ip dhcp-server 10.0.0.1
device-name
(config)#
vlan
device-name
(config
vlan
)#
config default
device-name
(config
-vlan default
)#
dhcp relay dhcp-server address 10.0.0.1
device-name
(config
-vlan default
)#
exit
device-name
(config
vlan
)#
exit
device-name
(config)#
interface 1/1/1
device-name
(config-if 1/1/1)#
dhcp relay dhcp-server address 10.0.0.1
Example 2
This example uses the same command as the example above in a different mode (Interface
Configuration mode).
device-name
(config)#
interface 1/1/1
device-name
(config config-if 1/1/1)#
dhcp relay dhcp-server address
10.0.0.1
device-name
(config config-if 1/1/1)#
exit