How to configure a DHCP server on a route

Source: Internet
Author: User
Tags exit config domain name server

A Environment: Cisco simulator

Two Topology map:

Three Compounding process

1. First, the preparation of the ROUETR0

router>en

Router#conf T

Router (config) #

1> Configure IP address pool and enter DHCP pool configuration mode

Router (config) #ip DHCP pool DG <--address pool name

Router (dhcp-config) #ip DHCP pool 289 <--address pool name

#注: The address pool name can be used as a letter or a number.

2> Configure IP address pools and subnet masks

Router (dhcp-config) #network 192.168.10.0 255.255.255.0

Router (Dhcp-config) #exit

3> Configure IP addresses that are not used for dynamic allocation

Router (config) #ip DHCP ex-tab complement

Router (config) #ip dhcp excluded-address 192.168.10.20 192.168.10.30

#↑ excludes 192.168.10.20 to 192.168.10.30 address.

Router (config) #ip DHCP pool DG

4> The default gateway for the IP address pool

Router (dhcp-config) #default-router 192.168.10.1

5> the IP address of the IP address pool's domain name server

Router (Dhcp-config) #dns

Router (dhcp-config) #dns-server 192.168.10.40

Router (Dhcp-config) #exit

6> Configuration Port IP

Router (config) #int f0/0

Router (config-if) #ip add 192.168.10.1 255.255.255.0

Router (config-if) #no shut

Router#wr

Building configuration ...

[OK]

Back to the column page: http://www.bianceng.cnhttp://www.bianceng.cn/Network/lyjs/

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.