Configuration Vlan(s)
Solved
Pedrox13
-
Pedrox13 Posted messages 3 Status Member -
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?
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
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!
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!
Oh yes, indeed... that's something I hadn't thought of. The issue is resolved, thank you for your help.