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 ?

3
  • 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, 2020 at 15:04
  • @RonMaupin Thank you so much. You find my mean clearly!
    – mgae2m
    Jul 14, 2020 at 16:16
  • Did any answer help you? If so, you should accept the answer so that the question doesn't keep popping up forever, looking for an answer. Alternatively, you can post and accept your own answer.
    – Ron Maupin
    Dec 17, 2020 at 19:00

2 Answers 2

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.

3

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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