09-06-2005 08:20 AM - edited 03-05-2019 11:37 AM
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.
09-06-2005 12:48 PM
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) ?
09-07-2005 12:38 AM
I want to setup multiple pools one for each sub interface (vlan).
09-06-2005 10:33 PM
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
09-07-2005 12:52 AM
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).
09-07-2005 09:35 AM
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.
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