Configuration Vlan(s)

Solved
Pedrox13 -  
Pedrox13 Posted messages 3 Status Member -
Hello,
As part of a lab assignment, I need to create several VLANs on a switch, assigning each one an IP address. I have a 24-port switch.
Ports Fa0/1 and Fa0/2 are assigned to VLAN 1, which is named "Management." I want it to have the IP 192.168.0.95. My issue is that when I enter the command:
ip address 192.168.0.95 255.255.255.0, an error indicates that there is an overlap with "VLAN 99" (which exists and is assigned to ports Fa0/3 and Fa0/4). This would mean that this second VLAN already has the IP 192.168.0.95. However, this is not the case, as the "Show run" command indicates that "VLAN 99" has the IP 192.168.0.245.
Has anyone encountered this problem before?

4 answers

brupala Posted messages 111108 Registration date   Status Member Last intervention   14 434
 
Hi,
I would love to have some fun configuring routers, but we still need to learn the basics of IP routing first :-(
You can't assign the same IP network to two different VLAN interfaces:
192.168.0.0/24
If you've set a mask of 255.255.255.0 (/24) on VLAN 99, both VLANs will be in the same IP network.
Either you change both networks to /25 (255.255.255.128) and you will be able to configure these two addresses, or you change one of the two addresses to place it in another network, like 192.168.1.95/24 for example.

--
And ... There you go!
2
pedrox13
 
Oh yes, indeed... that's something I hadn't thought of. The issue is resolved, thank you for your help.
1
krakixx Posted messages 3404 Registration date   Status Member Last intervention   721
 
You're welcome, don't forget to mark the topic as resolved.
0
Pedrox13 Posted messages 3 Status Member
 
I would love to, but I don't have the ability to do it.. :/
0
krakixx Posted messages 3404 Registration date   Status Member Last intervention   721
 
If at the top of your post you have written marked as resolved
0
Pedrox13 Posted messages 3 Status Member
 
No, I assure you, I looked on the internet for how to do it, the "Mark as resolved" button is not there for me...
0
basilisk4 Posted messages 79 Status Member 8
 
Hello,

Well, it's normal since 192.168.0.95 and 192.168.0.245 are on the same network (192.168.0.0/24); when we talk about VLAN, we're talking about a subnet.

Best regards
0
krakixx Posted messages 3404 Registration date   Status Member Last intervention   721
 
Hi, you're using the same IP range for two different VLANs, so it's normal that it doesn't work for the second VLAN. You can set yourself to 191.168.0.95, let me know if that works.
-1