Configuring DHCP


Router(config)#ip dhcp pool academy

Creates a DHCP pool called academy

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 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 empson.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 (default time is 1 day)

Router(dhcp-config)#exit

 

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)#no service dhcp

Turns the DHCP service off (service is on by default in IOS)

Router(config)#service dhcp

Turns the DHCP service on





CCNA Self-Study(c) CCNA Portable Command Guide
CCNA Portable Command Guide
ISBN: 1587201585
EAN: 2147483647
Year: 2006
Pages: 261
Authors: Scott Empson

Similar book on Amazon

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net