Cisco router dhcp configuration

This is easy to handle!

First of all, I don't know whether your middle setting is a router or a switch. If it is a switch, it will be easy. If it's a router, it's a big deal, because I don't know how to divide the VLAN on the router yet, hehe! crack a joke

Configuring DHCP on the router mainly includes the following steps:

First of all, the interface between your switch and router must be a three-layer interface. Only ip routing on the switch is possible.

1 defines an address pool.

What is the network segment that enters this address pool and defines this address pool?

Specify a gateway for all hosts in this network segment.

4 Enable DHCP relay agent for each vlan on the switch (if it is not enabled, the IP address will not be obtained, and VLANs are broadcast in segments).

The specific configuration is as follows:

My name is router R 1 and switch SW 1.

R 1(config)#ip dhcp pool aa (here is the first address pool defined, the name doesn't matter).

R1(DHCP-config) # network192.168.1.0 255.255.0 (define network segments in the address pool)

R1(DHCP-config) # default-router192.168.1.254 (this is the IP address of VLAN 10).

R 1(DHCP-config)# Exit

SW 1 (configuration) #int vlan 10

SW1(config-if) # iphelper-address192.168.100.254 (I designate a physical interface on the router as this IP address here. When configuring VLAN relay agent, you should pay attention here, because this is not a real DHCP server, but a router. )

SW 1 (configuration -if)# Exit

That's it! It's okay!

The last two do it themselves! I won't talk about it here.

Remember, the name of the address pool can only appear once! Find your own memorable definition!

Finally, a little advice, such a more professional question, it is better to give a high score.