cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1241
Views
3
Helpful
22
Replies

Need to allow VLAN at specific link

Mahmoud Marie
Level 1
Level 1

Hello,

I have two PCs connected to the same switch and there are two uplinks to another switch as the below diagram, just need to know how to let VLAN 40 going through "Dark-Fiber-1" Port1 and VLAN30 going through "Dark-Fiber-2" Port-5

 

CleanShot 2024-08-30 at 15.56.07@2x.png

Appreciate you help

Thanks

22 Replies 22

Unfortunately، there is a link between CS-1 and CS-2

so there is any other way to separate the VLAN for each link 

Thank you


@Mahmoud Marie wrote:

If I create direct connection between the Layer-2 switch and CS-1 & CS-2 as the below diagram:

CleanShot 2024-09-01 at 23.39.28@2x.png

How to allow VLAN10 & VLAN20 only from Link-1 and VLAN30, VLAN40, VLAN50 only from Link-2

Thanks 


As you no longer have a possible L2 loop, it's done as both @MHM Cisco World and @paul driver describe in their replies.

Example:

interface FastEthernet0/1
 switchport trunk allowed vlan 10,20
 switchport mode trunk

interface FastEthernet0/5
 switchport trunk allowed vlan 30,40,50
 switchport mode trunk

 

Hello
@Mahmoud Marie  you've change the topology correct?



@MHM Cisco World wrote:

if there is no interconnect between CS-1 and CS-2 then 

simple 
config link1 as trunk and allow vlan 10,20 

config link2 as trunk and allow vlan 30,40,50


It will work if hosts for those vlans dont exist on both CS switch's other wise they will lost connection if you prune off the vlans.


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul

Hello @paul driver 

I am still trying to find the best way to separate the VLANs

Thanks 

Joseph W. Doherty
Hall of Fame
Hall of Fame

So far @Mahmoud Marie you've provided two different topology diagrams and your last two replies seem to recreate the OP topology and say you're still seeking the best way.

For any possible way, we need to know the actual topology and platforms to be used.

BTW, so how would you know the best way?

Thank you @Joseph W. Doherty 

Here is the current topology, the "CoreSwitch" is the gateway for VLANs "10, 20, 30, 40, 50"

CleanShot 2024-09-03 at 14.29.56@2x.png

I need to adding new separate link to move the traffic for VLAN 10 & 20 only as will migrate them to OT gateway. as the below digram:

CleanShot 2024-09-03 at 14.31.17@2x.png 

So Link-1 move the traffic for "VLAN 30, 40, 50" and Link-2 move the traffic for "VLAN 10, 20"

Thanks

this design is work make review and you are free to ask any Q 
please if there is any point not clear ask about it 

MHM

Screenshot (734).png

Your question has been answered multiple times, with two different approaches and mention of a potential problem if using non-Cisco STP/rapid-STP.

So, did you not understand the different approaches, or is there some reason what has been suggested (by multiple folks) is not acceptable?

Review Cisco Networking for a $25 gift card