1

I configured the switch for two VLANs, as below:

Projects-3560-(config)#int vlan11

Projects-3560-(config-if)#ip address 10.110.1.1 255.255.255.0

Projects-3560-(config)#int vlan10

Projects-3560-(config-if)#ip address 10.110.0.1 255.255.0.0
% 10.110.0.0 overlaps with Vlan11

I am getting the above error.

I want a specific IP address to be used in vlan10, which is 10.110.0.180. Also, I should not change the vlan11 gateway and subnet mask, as it is used by other applications.

Can any one help?

1
  • Did any answer help you? If so, you should accept the answer so that the question doesn't keep popping up forever, looking for an answer. Alternatively, you could provide and accept your own answer.
    – Ron Maupin
    Commented Aug 14, 2017 at 23:28

2 Answers 2

1

You cannot have networks with overlapping addresses. A router needing to route between the two networks could not determine which network to use. Routing must be deterministic.

If you need a host with an address of 10.110.0.180 on VLAN 10, then you could use the 10.110.0.0/24 network for VLAN 10 instead of the 10.110.0.0/16 network. Change the mask on VLAN 10 to 255.255.255.0.

8
  • Hi, I have tried with the following as per your suggestion: Projects-3560-(config-if)#ip address 10.110.0.0 255.255.255.0 Bad mask /24 for address 10.110.0.0 i got the the above error
    – Krishna
    Commented Aug 19, 2016 at 11:51
  • Did changing the mask work?
    – Ron Maupin
    Commented Aug 19, 2016 at 11:52
  • Hi, I have tried with the following as per your suggestion: Projects-3560-(config-if)#ip address 10.110.0.0 255.255.255.0 Bad mask /24 for address 10.110.0.0 i got the the above error
    – Krishna
    Commented Aug 19, 2016 at 11:55
  • Then you need to edit your question to include the whole switch configuration.
    – Ron Maupin
    Commented Aug 19, 2016 at 11:58
  • is there any error in the command i have given? can you Please suggest the command? i am not a network administrator. i am a developer.
    – Krishna
    Commented Aug 19, 2016 at 12:05
0

It is because the interface configuration mode wants a real IP address with the subnet mask. Something like

Projects-3560-(config-if)#ip address 10.110.0.1 255.255.255.0

You can't assign a network subnet to an interface

Josh

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.