Configuring the DHCP Server
665
Option 3—Default Router. If this option is not set with the
set
interface dhcp-server
command’s
default-router
option, the MSS
DHCP server can use the value set by the
set ip route
command. A
default route configured by
set ip route
can be used if the route is in
the DHCP client’s subnet. Otherwise, the MSS DHCP server does not
specify a router address.
Option 6—Domain Name Servers. If these options are not set with the
set interface dhcp-server
command’s
primary-dns
and
secondary-dns
options, the MSS DHCP server uses the values set by
the
set ip dns server
command.
Configuring the
DHCP Server
You can configure the DHCP server on an individual VLAN basis. To
configure the server, use the following command:
set interface
vlan-id
ip dhcp-server
[
enable
|
disable
] [
start
ip-addr1
stop
ip-addr2
] [
dns-domain
domain-name
] [
primary-dns
ip-addr
[
secondary-dns
ip-addr
]] [
default-router
ip-addr
]
The
vlan-id
can be the VLAN name or number.
The
start
ip-addr1
and
stop
ip-addr2
options specify the beginning and
ending addresses of the address range (also called the address
pool
). By
default, all addresses except the host address of the VLAN, the network
broadcast address, and the subnet broadcast address are included in the
range. If you specify the range, the start address must be lower than the
stop address, and all addresses must be in the same subnet. The IP
interface of the VLAN must be within the same subnet but is not required
to be within the range.
The following command enables the DHCP server on VLAN
red-vlan
to
serve addresses from the 192.168.1.5 to 192.168.1.25 range:
WX1200#
set interface red-vlan ip dhcp-server enable start
192.168.1.5 stop 192.168.1.25
success: change accepted.
To remove all IP information from a VLAN, including the DHCP client and
user-configured DHCP server, use the following command:
clear interface
vlan-id
ip
This command clears all IP configuration information from the interface.
Summary of Contents for 3CRWX120695A
Page 138: ...138 CHAPTER 6 CONFIGURING AND MANAGING IP INTERFACES AND SERVICES ...
Page 272: ...272 CHAPTER 11 CONFIGURING RF LOAD BALANCING FOR MAPS ...
Page 310: ...310 CHAPTER 13 CONFIGURING USER ENCRYPTION ...
Page 322: ...322 CHAPTER 14 CONFIGURING RF AUTO TUNING ...
Page 350: ...350 CHAPTER 16 CONFIGURING QUALITY OF SERVICE ...
Page 368: ...368 CHAPTER 17 CONFIGURING AND MANAGING SPANNING TREE PROTOCOL ...
Page 412: ...412 CHAPTER 19 CONFIGURING AND MANAGING SECURITY ACLS ...
Page 518: ...518 CHAPTER 21 CONFIGURING AAA FOR NETWORK USERS ...
Page 530: ...530 CHAPTER 22 CONFIGURING COMMUNICATION WITH RADIUS ...
Page 542: ...542 CHAPTER 23 MANAGING 802 1X ON THE WX SWITCH ...
Page 598: ...598 CHAPTER 26 ROGUE DETECTION AND COUNTERMEASURES ...
Page 706: ...706 GLOSSARY ...