Foundry NetIron M2404C and M2404F Metro Access Switches
Configuring DHCP Features (Rev. 03)
DHCP Relay
© 2008 Foundry Networks, Inc.
Page 57 of 63
| Customer_2 | 1/1/2 | 12 |
| Customer_3 | 1/1/3 | 13 |
| Partner_1 | 1/1/5 | 15 |
Configuration Examples
DHCP Relay Agent Configuration
Figure 18: DHCP Relay Example
1. Set the DHCP server IP address:
device-name
#
configure terminal
device-name
(config)#
ip dhcp-server 20.2.1.252
2. Create an interface on the same subnet as the server:
device-name
(config)#
interface sw1
device-name
(config-if sw1)#
ip address 20.2.1.201/18
device-name
(config-if sw1)#
exit
3. Create a VLAN and relate it to the IP interface sw1:
device-name
(config)#
vlan
device-name
(config vlan)#
create Server 2
device-name
(config vlan)#
config Server
device-name
(config-vlan Server)#
add ports 1/1/7 untagged
device-name
(config-vlan Server)#
add ports default 1/1/7
device-name
(config-vlan Server)#
rif sw1
device-name
(config-vlan Server)#
exit
device-name
(config vlan)#
exit
4. Create an IP interface and connect the client to it:
device-name
(config)#
interface sw5
device-name
(config-if sw5)#
ip address 40.2.1.201/18
5. Enable DHCP relay agent on the IP interface sw5: