编辑: Mckel0ve 2017-09-16
Cisco Confidential ?

2010 Cisco and/or its affiliates.

All rights reserved.

1 Cisco DHCP部署 Alex Zhang (张勇田) CCIE R&S CCIE 讲师 Yeslab A manual IP address assignment in a medium-sized LAN is as follows: ? Time consuming-浪费时间 ? Prone to errors-容易出错 ? Unfavorable to employee mobility-毫无扩展性 A DHCP IP address assignment in a segmented LAN is as follows: ? An IP address that is automatically assigned in accordance with user VLAN settings根据用户VLAN属性,地址被自动的指定分配 ? A centralized IP address allocation that enables consistency across the whole organization通过和中心地址的关联,使得整个组织有连续的和层 次化的结构 Ender ICND1 ― 4-36 Ender ICND1 ― 4-37 Configuration scenario: ? Configure a DHCP server on a Cisco router ? Assign IP addresses from address pool 10.1.50.0/24 with a lease time of

12 hours ? Do not assign IP addresses from 10.1.50.1 to 10.1.50.50 ? Additional parameters: default gateway, domain name, and DNS server Ender ICND1 ― 4-38 Cisco IOS DHCP server configuration: ? Enter the DHCP pool configuration mode ? Assign DHCP parameters to the DHCP pool ? Exclude IP addresses from the DHCP assignment Branch(config)# ip dhcp pool Guests ====动态的分配地址 Branch(dhcp-config) #network 10.1.50.0 /24 Branch(dhcp-config)# default-router 10.1.50.1 Branch(dhcp-config)# dns-server 10.1.50.1 Branch(dhcp-config)# domain-name example.com Branch(dhcp-config)# lease

0 12 Branch(dhcp-config)# exit Branch(config)# ip dhcp excluded-address 10.1.50.1 10.1.50.50 Ender ICND1 ― 4-39 Ender ICND1 ― 4-40 Branch(config)# ip dhcp pool Yeslab 静态的分配地址 Branch(dhcp-config) #host 10.1.50.110 255.255.255.0 Branch(dhcp-config)# client-identifier XX Branch(dhcp-config)# dns-server 10.1.50.1 Branch(dhcp-config)# domain-name example.com Branch(dhcp-config)# lease

0 12 Ender ICND1 ― 4-40 Branch(config)# ip dhcp pool Yeslab 静态的分配地址 方法二 Branch(dhcp-config) #origin file tftp://192.168.98.1/text.txt Branch(dhcp-config)#network 192.168.98.0 255.255.255.0 例如要让MAC为abcd.abcd.abcd的客户端每次都分配到192.168.98.4的IP,

1、创建静态映射文本 *time* Oct

29 2013 20:52 PM *version*

2 ! IP address Type Client-ID Lease expiration 192.168.98.3 /24 id 0100.104b.33da.73 Infinite 192.168.98.4 /24 id 01abcd.abcd.abcd Infinite 192.168.98.5 /24 id 0100.104b.33da.75 Infinite *end* 将以上蓝色文字另存为一个名为test.txt的文本文件,并上传到Router的flash中,注意在Client-ID局域的 MAC前面多了一个01表示是介质类型是以太网,同时系统同的是windows. ? Verifies information about configured DHCP address pools Branch# show ip dhcp pool Pool Guests : Utilization mark (high/low) :

100 /

0 Subnet size (first/next) :

0 /

0 Total addresses :

254 Leased addresses :

2 Pending event : none

1 subnet is currently in the pool : Current index IP address range Leased addresses 10.1.50.55 10.1.50.1 - 10.1.50.254

2 Ender ICND1 ― 4-40 ? Displays address bindings information Branch# show ip dhcp binding Bindings from all pools not associated with VRF: IP address Client-ID/ Lease expiration Type Hardware address/ User name 10.1.50.54 0100.0c29.8807.34 Oct

18 2012 06:56 PM Automatic 10.1.50.56 0100.0c29.4532.be Oct

18 2012 07:08 PM Automatic Ender ICND1 ― 4-41 Router1(config)#ip dhcp database flash:ABC.TXT Router1(config)#end Branch# show ip dhcp conflict IP address Detection method Detection time VRF 10.1.50.52 Gratuitous ARP Oct

18 2012 06:56 AM 10.1.50.53 Ping Oct

下载(注:源文件不在本站服务器,都将跳转到源网站下载)
备用下载
发帖评论
相关话题
发布一个新话题