11月 252014
 

相关引用:

http://www.ciscopress.com/articles/article.asp?p=1574301&seqNum=5

Configuring DHCP Server on a Router or Layer 3 Switch
Router(config)#ip dhcp pool internal

Creates a DHCP pool called internal.

Router(dhcp-config)#network 172.16.10.0 255.255.255.0

Defines the range of addresses to be leased.

Router(dhcp-config)#default-router 172.16.10.1

Defines the address of the default router for the client.

Router(dhcp-config)#dns-server 172.16.10.10

Defines the address of the Domain Name System (DNS) server for the client.

Router(dhcp-config)#netbios-name-server 172.16.10.10

Defines the address of the NetBIOS server for the client.

Router(dhcp-config)#domain-name fakedomainname.ca

Defines the domain name for the client.

Router(dhcp-config)#lease 14 12 23

Defines the lease time to be 14 days, 12 hours, 23 minutes.

Router(dhcp-config)#lease infinite

Sets the lease time to infinity; the default time is 1 day.

Router(dhcp-config)#exit

Returns to global configuration mode.

Router(config)#ip dhcp excluded-address 172.16.10.1 172.16.10.9

Specifies the range of addresses not to be leased out to clients.

Router(config)#service dhcp

Enables the DHCP service and relay features on a Cisco IOS router.

Router(config)#no service dhcp

Turns off the DHCP service. DHCP service is enabled by default in Cisco IOS Software.

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

(required)

(required)

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据