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/