Cisco Systems OL-6426-02 Benutzerhandbuch
5-2
Book Title
OL-xxxxx-xx
Chapter 5 Configuring a LAN with DHCP and VLANs
Configure DHCP
•
Note
The procedures in this chapter assume you have already configured basic router features as well as
PPPoE or PPPoA with NAT. If you have not performed these configurations tasks, see
PPPoE or PPPoA with NAT. If you have not performed these configurations tasks, see
as appropriate for your router. See the
to assign an IP address to the ports.
Configure DHCP
Perform these steps to configure your router for DHCP operation, beginning in global configuration
mode:
mode:
Command
Purpose
Step 1
ip domain name name
Example:
Router(config)# ip domain name smallbiz.com
Router(config)#
Identifies the default domain that the router uses to
complete unqualified hostnames (names without a
dotted-decimal domain name).
complete unqualified hostnames (names without a
dotted-decimal domain name).
Step 2
ip name-server server-address1
[server-address2...server-address6]
[server-address2...server-address6]
Example:
Router(config)# ip name-server 192.168.11.12
Router(config)#
Specifies the address of one or more Domain
Name System (DNS) servers to use for name and
address resolution.
Name System (DNS) servers to use for name and
address resolution.
Step 3
ip dhcp excluded-address low-address
[high-address]
[high-address]
Example:
Router(config)# ip dhcp excluded-address
192.168.9.0
Specifies IP addresses that the DHCP server
should not assign to DHCP clients. In this
example, we are excluding the router address.
should not assign to DHCP clients. In this
example, we are excluding the router address.
Step 4
ip dhcp pool name
Example:
Router(config)# ip dhcp pool dpool1
Router(config-dhcp)#
Creates a DHCP address pool on the router and
enters DHCP pool configuration mode. The name
argument can be a string or an integer.
enters DHCP pool configuration mode. The name
argument can be a string or an integer.
Step 5
network network-number [mask | prefix-length]
Example:
Router(config-dhcp)# network 10.10.0.0
255.255.255.0
Router(config-dhcp)#
Defines subnet number (IP) address for the DHCP
address pool, optionally including the mask.
address pool, optionally including the mask.