cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3409
Views
0
Helpful
8
Replies

Creating a dhcp pool for a subinterface

npranger
Level 1
Level 1

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

8 Replies 8

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 

Thank you, do i put this command under the
Config-if# interface g0/0
Or under just
Config#

Thanks for such a quick response. Much appreciated

Get Outlook for Android<>

Thank you for your tme.

Get Outlook for Android<>

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 

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.

HTH

Rick

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


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul
Review Cisco Networking for a $25 gift card