cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
915
Views
1
Helpful
20
Replies

2 Different VLans using same 10.78.x.x Network Scheme

chueymtz
Level 1
Level 1

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?

20 Replies 20

luis_cordova
VIP Alumni
VIP Alumni

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

 

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

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

Hello,

I tried doing this but it says the vlans overlap 

 

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.

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

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

 

 

 

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

Can you give me an example of how to do this?

 

Two /25 subnet one for each vlan.

MHM

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.

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

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).

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

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

Review Cisco Networking for a $25 gift card