cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1965
Views
0
Helpful
5
Replies

DHCP over different vlans

mvraam
Level 1
Level 1

Hi,

I'm building a lab and want to know if it's possible to assign different dhcp pools to a vlan. I want to use the built-in dhcp server in a 2811 router. I've build a router-on-a-stick with 3 sub-interfaces and 3 vlans. I get in all the 3 vlans an ip address from 1 dhcp-server.

5 Replies 5

thisisshanky
Level 11
Level 11

I am not sure what your actual question is. Is it that you want to assign two range of subnets to dhcp clients (in the same vlan ) ?

Or, that you want to setup multiple pools one for each sub interface (vlan) ?

Sankar Nair
UC Solutions Architect
Pacific Northwest | CDW
CCIE Collaboration #17135 Emeritus

I want to setup multiple pools one for each sub interface (vlan).

amit-singh
Level 8
Level 8

Hi,

Why do you need mulptile subnet IP's in a same Vlan ??

If you want to do that you should define the IP adrress of the second subnet as the secondry ip address on the router's sub-interface. But We will not recommned it untill and unless you have a need for that due to design restriction or some other reason.

regards,

-amit singh

I have to configure a lab for Voice. So my guess is that I have to make 3 vlans. 1 Voice vlan (10.100.10.0/24), 1 Data Vlan (10.100.11.0/24) and 1 Native Vlan (10.100.12.0/24). For the Voice and Data Vlan I want to use DHCP. I will probably use the callmanager in the future as a dhcp server. But I'm not that far at the moment (training in october).

Just define multiple pools as follows

## First 10 addresses are reserved.

ip dhcp excluded-address 10.100.10.1 10.100.10.10

ip dhcp excluded-address 10.100.11.1 10.100.11.10

ip dhcp pool Voice

network 10.100.10.0 /24

default-router 10.100.10.1

option 150 ip

lease

dns <>

ip dhcp pool Data

network 10.100.11.0 /24

default-router 10.100.11.1

lease

dns <>

wins <>

int fa0/0

no ip add

int fa0/0.10

description Voice vlan

encapsulation dot1q 10

ip add 10.100.10.1 255.255.255.0

int fa0/0.11

description Data vlan

encapsulation dot1q 11

ip add 10.100.11.1 255.255.255.0

Hope that helps!

Sankar.

Sankar Nair
UC Solutions Architect
Pacific Northwest | CDW
CCIE Collaboration #17135 Emeritus