How to Configure the Cisco router for a DHCP router

Publié le 12/11/2013 à 10:00 par cisco2960switch Tags : background you mode

The DHCP function

The DHCP server is greatly simplified network management staff, in the Cisco router in the network, we do not have to re build a new DHCP server, the Cisco router configured as a DHCPserver, it has double function of routing and DHCP, and under general condition, everyone isbuild based on Windows/linux based on application level system platform DHCP server.

An Cisco router, want to configure fora DHCP server, in order to simplify the operation test, will use another one Cisco router as a client to obtain an IP address from the router.

How to Configure the Cisco 3900 series router for a DHCP router

(1) the router configured for DHCP

Configuration commands and explained as follows:

Dhcp#configureterminal

/ / into the global schema

DHCP (config) #servicedhcp

/ / DHCP enabled services

DHCP (config) #noipdhcpconflictlogging

/ / close the DHCP log records

DHCP (config) #ipdhcppoolctocio

/ / name to configure the DHCP server for ctocio

DHCP (dhcp-config) #network192.168.2.0255.255.255.0

/ / configure the DHCP server can be assigned segment

DHCP (dhcp-config) #default-router192.168.2.1

/ / configure the default gateway for 192.168.2.1

DHCP (dhcp-config) #dns-server192.168.2.1

/ / DNS configuration for 192.168.2.1

DHCP (dhcp-config) #exit

/ / exit the DHCP configuration mode

DHCP (config) #ipdhcpexcluded-address192.168.2.2192.168.2.10

/ / configuration DHCP to exclude the assigned address

DHCP (config) #exit

/ / exit global mode

DHCP (config) #showrun

/ / check the routing configuration

(2) the client access to IP

Connected in a and R1 R2, if you want to set the IP address for a port, through the following commands can obtain the IP address from the R1 DHCP server.

Client#configureterminal

/ / into the global schema

DHCP (config) #interfacefastethernet0/1

/ / into fastethernet0/1 interface

DHCP (config-if) #ipaddressdhcp

/ / get IP address from DHCP

So wait a moment, will show a similar"InterfaceFastEthernet0/0assignedDHCPaddress192.168.2.11, mask255.255.255.0,hostnameR2" this suggests, the client obtains the success of IP.

In a large network environment, will become the DHCP server router configuration different subnet, convenient management and maintenance.

In the actual network environment, the client connects to the Cisco router via a switch, we can provide the DHCP router configuration function, which not only has the routing function, but alsohas the function of DHCP, as long as the client is configured to automatically obtain IP address,and then set the gateway.

This not only eliminates the deployment of specialized DHCP server trouble andsaves cyber source, and fully tap the Cisco 3900 router functions, is convenient for network management in the future.

More information about Cisco 3900 router price, visit 3anetwork.com.

 

 

Commentaires (1)

Comparatif VPN le 18/09/2014
Le VPN est une bonne option pour les internautes.
http://comparatif-vpn.centerblog.net


Ecrire un commentaire