I have a setup, in which two servers need to communicate with a Router in a VLAN Segment. The challenge is that we have created a sub interface in the LAN interface of the Router with encapsulation dot1q 310 with IP address 192.168.10.1/24. The servers are in a different IP range (10.250.14.9 and 10). The Router connects to Gig 1/4 in the core switch (managed by a 3rd party) and the servers connect to Gig 1/2 and Gig 1/3 in the same core switch which are assigned to VLAN 310.
Now if I configure a secondary IP address in the LAN sub interface of the Router with IP 10.250.14.1, can I establish connectivity between the Servers and Routers?
Also, can I advertise the secondary IP subnet in BGP, to the WAN?
Thanks for your time.
As long as vlan 310 is present on the core switch and it is add it to the trunk interface connecting to the router, you can create a new sub-interface on the router with dot1q and give it an IP address in the range you have assigned (10.250.14.x) than you should be fine.
You need a new sub-interface just like the one you already have except the IP segment and vlan
The subinterface which is already there in the Router is Gig 0/0.310 configured with encapsulation dot1q 310. I cannot assign the same vlan id to another sub interface.
Ok, since 310 is already taken, you need a new vlan and sub-interface for it.
So, maybe 410?
But now the challenge is that you have to add the new vlan (410) to the switch, trunk port connecting to the router and than a sub-interface on the router.
Yes, the reason I am considering a secondary ip address is the core switch is managed by a 3rd Party and we cant get them to add the new VLAN immediately.
What type of router do you have?
I don't think you can add a secondary address to a sub-interface, or at least I have never done it. Even if you can, who know what limitations you will face and I my opinion its much cleaner to just create a new vlan/sub-interface.