08-06-2019 09:40 PM
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
08-06-2019 11:34 PM
- 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.
08-07-2019 12:58 AM
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
08-07-2019 09:00 AM
- Admitted personalty I prefer DHCP services to be split from L2 and L3 services for more network resiliency.
M.
08-07-2019 11:33 AM
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