0

In case declaring DHCP server in CISCO routers, should define pool with network addresses.↓

Example

Router(config)#ip dhcp pool net1

Router(dhcp-config)#network 192.168.1.0 255.255.255.0

The router has predefined interfaces ip address and subnet mask.

Thus for each interface can only define dhcp service enable or disable? and dhcp options. and excluded-address.

Why should we write Router(dhcp-config)#network 192.168.1.0 255.255.255.0 ?

  • 1
    You can also use the DHCP server for non-connected networks, so you must define the network for the pool. – Ron Maupin Jul 14 at 15:04
  • @RonMaupin Thank you so much. You find my mean clearly! – mgae2m Jul 14 at 16:16
2

Router will automatically know which interface is associated with which DHCP Pool. You create a network for the pool, exclude the addresses like static hosts or reserved addresses, provide default gateway and DNS servers (you can edit few different DHCP options if needed). Based on default gateway and the network, router associates it with either the interface or vlan.

| improve this answer | |
1

For example

Router(config)# ip DHCP pool vlan10 Router(dhcp-config)# network 192 .168.1.0 255.255.255.0

This command is mentioned beacuse desktops in vlan10 will get ip allocation from this pool of ip network..

Vlan 10 allocated desktop will get DHCP ip range from 192.168.1.1-192.168.1.255 dynamically.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.