Foundry NetIron M2404C and M2404F Metro Access Switches
Configuring DHCP Features (Rev. 03)
DHCP Server
© 2008 Foundry Networks, Inc.
Page 39 of 63
option router 30.30.30.110
subnet 30.30.40.0/24
range 30.30.40.100 30.30.40.200
option domain-name-servers 30.30.40.10
option router 30.30.40.10
host PC1
hardware-address 00:01:00:00:23:34
fixed-ip-address 30.30.50.1
host PC2
hardware-address 00:01:44:D0:23:34
fixed-ip-address 30.30.40.1
host PC3
hardware-address 00:0D:23:BB:00:AC
fixed-ip-address 30.30.40.2
!
!
DHCP Server Option 82 Configuration Examples
Example 1
The following example shows how to define two ranges of IP addresses allocated to specific
circuit-IDs, and enable the DHCP server.
1. Enter into DHCP configuration mode:
device-name
#
configure terminal
device-name
(config)#
service dhcp
2. Enter into DHCP Subnet configuration mode:
device-name
(config-dhcp)#
subnet 10.0.0.0/8
3. Define the IP address range with a hexadecimal circuit-ID value when the
VLAN tag is 20 and the port number is 1:
device-name
(config-dhcp-subnet)#
range 10.0.0.1 10.0.0.5 circuit-id hex
3030303230303030303030303031
4. Define the IP address range with a string circuit-ID value when the VLAN tag
is 20 and the port number is 2:
device-name
(config-dhcp-subnet)#
range 10.0.4.0 10.0.8.0 circuit-id string
area1
5. Exit DHCP configuration mode and enable the DHCP server operation:
device-name
(config-dhcp-subnet)#
exit
device-name
(config-dhcp)#
exit
device-name
(config)#
service dhcp enable
Example 2
The following example shows how to define a range of IP addresses allocated to a specific circuit-
ID. The DHCP policy for unknown circuit-IDs is set to
deny
. The configuration is displayed by the
show ip dhcp
command.
1. Enter into DHCP configuration mode: