cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
666
Views
0
Helpful
4
Replies

Can different vlans have dhcp enabled for their own subnets on Catalyst 3750x

Corrupted.Dll
Level 1
Level 1

Is it possible to create vlans with different subnets, and have each vlan give dynamic IP's (DHCP) for their own subnet? I'd like to separate different items (like cameras, and guest wifi) and also be able to route between vlans if needed?  Or should I just subnet the network and not vlan and assigned different IP's to different items like 192.168.1.0 and 192.168.2.0 etc and use a subnet of 255.255.0.0

4 Replies 4

marce1000
Hall of Fame
Hall of Fame

 

 - You can use a central DHCP server , and assign  different ip-ranges for each VLAN ; see the below thread as an example of how this can be done :

                   https://learningnetwork.cisco.com/thread/30414

 M.



-- Each morning when I wake up and look into the mirror I always say ' Why am I so brilliant ? '
    When the mirror will then always repond to me with ' The only thing that exceeds your brilliance is your beauty! '

Hello

You can have a router/L3 swith to be able to do this.


example:

Switch

int vlan 1

ip address 1.1.1.254. 255.255.255.0

 

int vlan 2

ip address 2.2.2.254. 255.255.255.0

 

int vlan 3

ip address 3.3.3.254. 255.255.255.0

 

int vlan 4

ip address 4.4.4.254. 255.255.255.0

 

 

Router

int x/x
description vlan 1

ip address 1.1.1.254 255.255.0

int x/x.2
description vlan 2
encapsulation dot1q 2

ip address 2.2.2.254 255.255.0

int x/x.3
description vlan 3
encapsulation dot1q 3

ip address 3.3.3.254 255.255.0

int x/x.4
description vlan 4
encapsulation dot1q 4

ip address4.4.4.4.254 255.255.0

 

 

Either switch or router
ip dhcp pool vlan1-2
network 1.1.1.0 255.255.255.0
network 2.2.2.0 255.255.255.0 secondary
override default-router 2.2.2.254
default-router 1.1.1.254
dns-server 208.67.222.222. 208.67.220.220
lease 0 8

ip dhcp pool vlan3-4
network 3.3.3.0 255.255.255.0
network 4.4.4.0 255.255.255.0 secondary
override default-router 4.4.4.254
default-router 3.3.3.254
dns-server 208.67.222.222. 208.67.220.220
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

 

 - Admitted personalty I prefer DHCP services to be split from L2 and L3 services for more network resiliency.

 M.



-- Each morning when I wake up and look into the mirror I always say ' Why am I so brilliant ? '
    When the mirror will then always repond to me with ' The only thing that exceeds your brilliance is your beauty! '

Joseph W. Doherty
Hall of Fame
Hall of Fame
Yes you can (as described in detail by the others).

Also yes, you normally would have a VLAN per subnet. (I.e. You should avoid doing what you mention in your last sentence.)