Two IPs with different netmask on the same vlan

  • 0
  • 1
  • Question
  • Updated 2 years ago
  • Answered
Can i add two ip in the same vlan?

My Black Diamond (BD8810) have his management interface on my vlan50 with netmask 255.255.0.0 (/16) and i have one Cisco that have the same vlan50 with netmask 255.0.0.0 (/8) but for other network.

I want to move the uplink of this other network to my BD. But the users of the other network need to check my "switch" SNMP via vlan50/8.

So, if i can use two VLAN50 ip address, one with /16 and other with /8 mask i can start to remove the cisco switch.

I know that i will have another problem in the future. That is to block all my traffic from VLAN50/16 to go to VLAN50/8 port. We already do this with the cisco switch, by blocking mac addresses.
Photo of gbs

gbs

  • 490 Points 250 badge 2x thumb

Posted 2 years ago

  • 0
  • 1
Photo of Henrique

Henrique, Employee

  • 10,342 Points 10k badge 2x thumb
Photo of Tripathy, Priya Ranjan

Tripathy, Priya Ranjan, ESE

  • 2,306 Points 2k badge 2x thumb
What i feel this feature is not supported on EXOS. Well as stated by Henrique you can avail  the facility of using the VR concept. This may help you in achieving the same.
Photo of gbs

gbs

  • 490 Points 250 badge 2x thumb
Ok. I'm going to study this feature and try.

Thanks.
Photo of Jeremy

Jeremy, Embassador

  • 9,788 Points 5k badge 2x thumb
I am assuming vlan50 on the BD and Cisco switch are different and you don't want the users talking?  If that isn't the case, proxy arp might take care of some of this.
Photo of gbs

gbs

  • 490 Points 250 badge 2x thumb
@Henrique,
create vlan TEST-VL50 vr "VR-TEST" tag 50

Error: 802.1Q Tag 50 is assigned to VLAN vlan50.

I can't create another vlan using the same vlanID :/

And i need it to be the same ID "50" because my switch is part of one ring using this tagged vlan.
(Edited)
Photo of Jeremy

Jeremy, Embassador

  • 9,788 Points 5k badge 2x thumb
The VID is the vlan, so if you already created it, why would you need to make it again?
Photo of gbs

gbs

  • 490 Points 250 badge 2x thumb
Cos, i want to add two ip in the same vlan. And @Henrique told me to create another virtual route.
Photo of Henrique

Henrique, Employee

  • 10,342 Points 10k badge 2x thumb
Hi Gerson, you can use the same ipaddress/subnet in different VRs. However, you cannot use the same VRID since the vlan table is shared between VRs.
Photo of Erik Auerswald

Erik Auerswald, Embassador

  • 13,792 Points 10k badge 2x thumb
Hi Gerson,

are the two "VLAN 50" networks overlapping? For example, 10.0.0.0/8 and 10.55.0.0/16 are overlapping networks. You cannot use a secondary IP address in this case. In fact, for overlapping IP networks you need different virtual routers (VRs), not just different VLANs.

If the networks are not overlapping, e.g. 10.0.0.0/8 and 172.20.0.0/16, then you can use a secondary IP address on VLAN 50. Please see the GTAC Knowledge article How to add secondary IP address on a VLAN.

To get around the problem of having the same VLAN ID for two networks with overlapping IP address ranges, you could add another switch in front of the BD to translate the VLAN tag, using e.g. port specific VLAN tags. Please see Does EXOS support Port-Specific VLAN Tag? and How to configure port specific tags.

Erik
Photo of gbs

gbs

  • 490 Points 250 badge 2x thumb
It worked! Thanks :D
Photo of gbs

gbs

  • 490 Points 250 badge 2x thumb
Yes, they are overlapping. I want to use my 10G module of BD8810 for that.

I will check that port specific vlan tag thing.
Thanks.