03-03-2023 01:33 PM
Hello,
I have a subinterface on port 0/0 on a 2911 Cisco router. This is a gigabit port. However I don't see a command to create a dhcp pool for each of the vlans. Please help lead me to the correct syntax on this particular router. Thanks
03-03-2023 01:51 PM
follow below guide :
03-03-2023 02:04 PM
the router dont care about VLAN except the case you have EtherModule
in your case what you need only
ip dhcp pool POOL1
default router <subinterface-IP1>
ip dhcp pool POOLx
default router <subinterface-IPx>
that it
NOTE:- add network command under dhcp pool in same subnet with subinteface you select as default router
03-03-2023 02:14 PM
03-03-2023 02:23 PM
03-03-2023 03:00 PM
03-03-2023 03:01 PM
You are so so welcome
if you face issue share the config you run and I will check it.
NOTE:- also please if you can share topology
03-04-2023 03:58 PM
It seems a large part of the issue of the original poster is where are the commands entered (in which config mode) and the answer is that the dhcp pool is configured in global config mode. The dhcp pool has parameters for the subnet that will match the subnet configured on the router subnet. So the subinterface will use the dhcp pool but the pool is not configured on the subinterface.
03-03-2023 03:29 PM - edited 03-03-2023 03:29 PM
Hello
@npranger wrote:
I have a subinterface on port 0/0 on a 2911 Cisco router. This is a gigabit port. However I don't see a command to create a dhcp pool for each of the vlans.
Not sure what you are expecting to see, The dhcp scopes will relate to the L3 interfaces on the router ( including sub -interfaces)
example:
int gigx/x.10
encapsulation dot1q 10
ip address 10.10.10.254 255.255.255.0
int gigx/x.20
encapsulation dot1q 20
ip address 20.20.20.254 255.255.255.0
ip dhcp pool lan
network 10.10.10.0 255.255.255.0
network 20.20.20.0 255.255.255.0 secondary
override default-router 20.20.20.254
default-router 10.10.10.254
lease 0 8
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide