Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

Unable to connect two switches using two vlans and two physical connections

Hi Experts,

I've set up the following configuration:

PC A --- SW A --- SW B --- SVR A (via VLAN 2)

PC B --- SW A --- SW B --- SVR B (via VLAN 3)

I've set:

1. two vlan 2 access ports on switch A to connect PC A and SW B

2. two vlan 3 access ports on switch A to connect PC B and SW B

3. two vlan 2 access ports on switch B to connect SW A and SVR A

4. two vlan 3 access ports on switch B to connect SW A and SVR B

all using separate physical ports and switchport mode access.

This setup does not work, is it the correct behavior or I missed out somthing?

Cheers,

Elvin

1 ACCEPTED SOLUTION

Accepted Solutions
New Member

Unable to connect two switches using two vlans and two physical

I could not understand why are you connecting an access port to the switch on other end (interface ethernet 1/g21 -- to SW B).

Please get the same configured as trunk and then pass the desired vlan from therein.

i.e.

PC-----access port -----SW A -------trunk port ---------------SW B ---------access port--------PC.

The trunk port can be configured to carry the desired vlans.

Thanks

Parvesh

Note: Please do not forget to rate the post helpful if you find it worth.

5 REPLIES
New Member

Unable to connect two switches using two vlans and two physical

Can you post the running config from the switches please?

New Member

Unable to connect two switches using two vlans and two physical

Switch A:

interface ethernet 1/g1 -- to PC A

switchport access vlan 2

exit

interface ethernet 1/g2 -- to PC B

switchport access vlan 3

exit

interface ethernet 1/g21 -- to SW B

switchport access vlan 2

exit

interface ethernet 1/g22 -- to SW B

switchport access vlan 3

exit

Switch B:

interface ethernet 1/g1 -- to SVR A

switchport access vlan 2

exit

interface ethernet 1/g2 -- to SVR B

switchport access vlan 3

exit

interface ethernet 1/g21 -- to SW A

switchport access vlan 2

exit

interface ethernet 1/g22 -- to SW A

switchport access vlan 3

exit

other ports are shutdown.

ip address of PC A: 192.168.1.10/24

ip address of PC B: 10.1.1.10/28

ip address of SVR A: 192.168.1.1/24

ip address of SVR B: 10.1.1.1/28

Unable to connect two switches using two vlans and two physical

When you say "this setup does not work", could you be more specific please?  You need to break the problem down into sections for easy diagnosis.  For example, can each PC ping its own gateway address on the SVI?

  • Can PC A ping 192.168.1.1 ?
  • Can PC B ping 10.1.1.1 ?
  • If not, in each PC can you see the SVI in the ARP cache of the PC?
  • If not, do the switches agree on who is root of the Spanning Tree for each VLAN?

Kevin Dorrell

Luxembourg

New Member

Unable to connect two switches using two vlans and two physical

I could not understand why are you connecting an access port to the switch on other end (interface ethernet 1/g21 -- to SW B).

Please get the same configured as trunk and then pass the desired vlan from therein.

i.e.

PC-----access port -----SW A -------trunk port ---------------SW B ---------access port--------PC.

The trunk port can be configured to carry the desired vlans.

Thanks

Parvesh

Note: Please do not forget to rate the post helpful if you find it worth.

New Member

Unable to connect two switches using two vlans and two physical

Hi,

I found out what's wrong.

I've set to RSTP and because of that, its layer 2 STP shutting down one ports regardless of VLAN.

Cheers,

Elvin

334
Views
0
Helpful
5
Replies
CreatePlease login to create content