Cisco   « Initial setup | HOME | Setup password »

 ■ DHCP server

This is how to setup DHCP server on Cisco router

In case that you would like to setup with below scenario.

Setup name : test
Default gateway : 192.168.0.1
The range of leased IP address : 192.168.0.30 - 192.168.0.199
Subnet mask : 255.255.255.0
Domain name : abc (If needed)
DNS server : 192.168.0.2 and 192.168.0.3
Lease time : 3 days


Router(config)# ip dhcp pool test
Router(dhcp-config)# network 192.168.0.1 255.255.255.0
Router(dhcp-config)# default-router 192.168.0.1
Router(dhcp-config)# domain-name abc
Router(dhcp-config)# dns-server 192.168.0.2 192.168.0.3

Router(dhcp-config)# lease 3 (or infinite for forever lease)
Router(dhcp-config)# exit
Router(config)# ip dhcp excluded-address 192.168.0.1 192.168.0.29
Router(config)# ip dhcp excluded-address 192.168.0.200 192.168.0.254

Check setup
Router# show running-config

Check leased IP status
Router# show ip dhcp binding

投稿者 tomopugh : 2009年10月15日 17:35

Comment

Please comment !




Save the info?


  (Please don't click on "post" twice. It takes time a bit to change to the next screen!!)