Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.
Enabling the Cisco IOS DHCP Server and Relay Agent Features
Router(config)# service dhcp
Excluding IP Addresses
Router(config)# ip dhcp excluded-address low-address [high-address]
Configuring a DHCP Address Pool
Router(config)# ip dhcp pool name
Configuring the DHCP Address Pool Subnet and Mask
Router(dhcp-config)# network network-number [mask | /prefix-length]
Configuring the Domain Name for the Client
Router(dhcp-config)# domain-name domain
Configuring the IP Domain Name System Servers for the Client
Router(dhcp-config)# dns-server address [address2 ... address8]
Configuring the NetBIOS Windows Internet Naming Service Servers for the Client
Router(dhcp-config)# netbios-name-server address [address2 ... address8]
Configuring the Default Router for the Client
Router(dhcp-config)# default-router address [address2 ... address8]
Configuring the Address Lease Time
Router(dhcp-config)# lease {days [hours][minutes] | infinite}
For more details please check the following link or you can contact me directly
http://www.cisco.com/en/US/docs/ios/12_2/ip/configuration/guide/1cfdhcp.html#wp1010670
bro i never had work on real router bt whn i used to work n cisco packet tracer i write in config mode
in different way we can configure dhcp
First you need to create a DHCP Pool by the "ip dhcp pool" command
Then you enable the DHCP Service by the "service dhcp"
its easy man
for next time you can ask MR.google
to offer range of ips:
Router(config)# ip dhcp excluded-address172.16.1.100172.16.1.103
- to configer auto DHCP :
Router(config)# ip dhcp pool1
Router(dhcp-config)# network172.16.0.0 /16 ---------->16 mean "lenght"
Router(dhcp-config)# dns server172.16.1.103172.16.2.103 -------> DNS configer