09-07-2023 11:55 AM
I would like to know if it is possible to create 2 vlans ex: VLan 300 Wifi and VLan 400 Voip, am I able to set dhcp pool and ip scheme of ex 10.78.2.x /24. Can i use half of the ip's for VLan 300 and the other half for Vlan400? Any suggestions?
09-07-2023 12:11 PM - edited 09-07-2023 12:11 PM
Hello
In your case I would divide the IP segment and configure two DHCP pools, one for network 172.78.2.0/25 and another for network 172.78.2.128/25.
Then, I assign each pool/segment to a different vlan.
Regards
09-07-2023 12:18 PM
Thanks,
So does this look about right? Gateway etc?
ip dhcp pool Wifi
network 10.78.2.0.0 255.255.255.0
bootfile undionly.kpxe
default-router 10.78.6.1
dns-server 10.x.x.228 10.x.x.229
lease 0 4
!
ip dhcp pool Voip
network 10.78.6.128 255.255.255.0
default-router 10.78.6.1
dns-server 1.1.1.1 8.8.8.8
lease 0 4
09-07-2023 12:28 PM
Hi
just some changes
ip dhcp pool Wifi
network 10.78.2.0.0 255.255.255.128
bootfile undionly.kpxe
default-router 10.78.2.1
dns-server 10.x.x.228 10.x.x.229
lease 0 4
!
ip dhcp pool Voip
network 10.78.2.128 255.255.255.128
default-router 10.78.2.129
dns-server 1.1.1.1 8.8.8.8
lease 0 4
Remember that in the case of voice DHCP, you must include an option so that IP phones know where to look for their voice parameters (option 150).
Regards
12-06-2023 06:19 AM
Hello,
I tried doing this but it says the vlans overlap
12-06-2023 06:57 AM
what you have tried - if the IP already live, you need to shutdown the interface and make changes
by the way what device is this ? what IOS code running ?
can you post the error when you apply the commands.
12-06-2023 07:52 AM
what you have tried - if the IP already live, you need to shutdown the interface and make changes:
Bad mask 0xFFFFFF81 for address 10.78.2.129 I'm trying to add an ip address to the Vlan300 10.78.2.130 255.255.225.128
by the way what device is this ? what IOS code running ? it is a cisco 9300 IOS Cisco IOS XE Software, Version 16.12.03a
Cisco IOS Software [Gibraltar], Catalyst L3 Switch Software (CAT9K_IOSXE), Version 16.12.3a, RELEASE SOFTWARE (fc1)
can you post the error when you apply the commands
This is my current setup but I can't ping any of these unless there is an ip assigned.
interface Vlan100
description Admin
ip address 10.76.2.1 255.255.255.0
!
interface Vlan200
description
ip address 172.16.2.1 255.255.254.0
!
interface Vlan300
description Wifi
no ip address
!
interface Vlan400
description Security
no ip address
!
interface Vlan500
description Voip
ip address 10.78.2.1 255.255.255.128
12-06-2023 07:01 AM
It not work you need to make each vlan have half of /24 by more subnetting the prefix.
Otherwise you will alway get issue in connectivity
MHM
12-06-2023 07:48 AM
Can you give me an example of how to do this?
12-06-2023 08:10 AM
Two /25 subnet one for each vlan.
MHM
12-06-2023 08:15 AM
I tried that like this
interface Vlan300
description Wifi
10.78.2.128 255.255.255.128
!
interface Vlan500
description Voip
ip address 10.78.2.1 255.255.255.128
When i try to apply it doesn't let me apply one because it says that the vlans overlap so it doesn't save the ip on one of the vlans.
12-06-2023 08:32 AM - edited 12-06-2023 09:37 AM
Two /25
First net id 10.78.2.0 it broadcast 10.78.2.127
Second net id 10.78.2.128 and broadcast 10.78.2.255
Above IP you can not use it.
You need to use host IP between it range' this range is called host usable IP.
MHM
12-06-2023 08:39 AM
I think the problem is with your IP for Vlan 300. Try 10.78.2.129, you are currently using .128 which is not a usable address for that subnet (it is the network address).
12-06-2023 10:36 AM
That did the trick, i was able to add that to the vlan and i'm able to ping now. I had another issue now, when i do a tracert to www.google.com i can't seem to get online, it gets 1 hop in at 10.78.2.129 and thats where the traffic stops
12-06-2023 10:39 AM
You sucess split the subnet'
Now add these subnet to NAT to access internet.
And this includes add ip nat inside to both new vlan.
Also when ping googl . Com are the DNS resolve the IP?
MHM
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