Thursday, September 16, 2010

Setting the Cisco Router to be a DHCP Server

From global config mode

Type

ip dhcp pool ip_pool(creating the dhcp pool with the name ip pool)
network 10.10.0.1 255.255.255.0(network for the dhcp pool)
domain-name sourav.local(you should set your dhcp client’s primary dns suffix as sourav.local)
dns-server 4.2.2.2
default-router 10.10.0.1(the dhcp router’s interface ip where all the clients are connected)
import all(this will import those informations into dhcp client by dora process)
lease 3(3 day lease)
exit
ip dhcp excluded-address 10.10.0.1 10.10.0.20(to exclude ips from being leased)
ip dhcp excluded-address 10.10.0.50 10.10.0.254
exit

Now at the client pc simple release renew should gt the ip from dhcp router

To see the ip addresses leased and the mac addresses associated with it

From dhcp server type

sh ip dhcp binding


No comments:

Post a Comment