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. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

Access and Trunk uplink Test

I came across one question where

1)Switch A uplink gi0/1 is configure as access port with vlan 10. There is one pc A connected to vlan 10.

On the other end, Switch B uplink gi0/1 is configure as access port with vlan 20. There is one pc B connected to vlan 20

The result is both pc can ping each other. What is the reason behind?

2) Now say both switches uplink change to trunk port. Will both pc A and B still able to ping each other with the same vlan 10 and 20 ?

  • LAN Switching and Routing
1 ACCEPTED SOLUTION

Accepted Solutions

Re: Access and Trunk uplink Test

1)Switch A uplink gi0/1 is configure as access port with vlan 10. There is one pc A connected to vlan 10.

On the other end, Switch B uplink gi0/1 is configure as access port with vlan 20. There is one pc B connected to vlan 20

The result is both pc can ping each other. What is the reason behind?

>>>Access ports does not encap exiting packets with vlan tag, so as far as either switches go, once they rx'd a packet on their port they will assume that those packet are for the vlan their port belongs to. This is why pcB in in vlan 20 of switch B is able to ping the pcA in vlan 10 of switch A. Of course, they would have to be in the same subnet, same bcast domain.

2) Now say both switches uplink change to trunk port. Will both pc A and B still able to ping each other with the same vlan 10 and 20 ?

>>> Depending on what native vlan each switch is on, if their native vlan on Switch A remains vlan 10 and on switch B it remains vlan 20, the ping will still work. Native vlan does not tag exiting packets on a port, so there will be no vlan id, so it will work for the same reason as above. If the Native vlan are matching on both sides, any vlan as long as they are matching, then the ping will fail, exiting packet will now have vlan id.

2 REPLIES
Hall of Fame Super Silver

Re: Access and Trunk uplink Test

Hello Kian,

1) you are joining two broadcast domains into only one by using access ports

on access ports the IEEE 802.1D version of BPDU is used so no conflict arises

2) if both switches move to trunk ports :

the join of broadcast domains doesn't happen anymore:

even if you configure native vlan 10 on SwitchA side and vlan 20 on SwitchB side the two switches using Cisco PVST version of BPDU detect the different vlan-id and the port should go in error-disable

I did these tests some years ago with the above results I needed to join two management vlans and I used a link between access ports.

Hope to help

Giuseppe

Re: Access and Trunk uplink Test

1)Switch A uplink gi0/1 is configure as access port with vlan 10. There is one pc A connected to vlan 10.

On the other end, Switch B uplink gi0/1 is configure as access port with vlan 20. There is one pc B connected to vlan 20

The result is both pc can ping each other. What is the reason behind?

>>>Access ports does not encap exiting packets with vlan tag, so as far as either switches go, once they rx'd a packet on their port they will assume that those packet are for the vlan their port belongs to. This is why pcB in in vlan 20 of switch B is able to ping the pcA in vlan 10 of switch A. Of course, they would have to be in the same subnet, same bcast domain.

2) Now say both switches uplink change to trunk port. Will both pc A and B still able to ping each other with the same vlan 10 and 20 ?

>>> Depending on what native vlan each switch is on, if their native vlan on Switch A remains vlan 10 and on switch B it remains vlan 20, the ping will still work. Native vlan does not tag exiting packets on a port, so there will be no vlan id, so it will work for the same reason as above. If the Native vlan are matching on both sides, any vlan as long as they are matching, then the ping will fail, exiting packet will now have vlan id.

311
Views
0
Helpful
2
Replies
This widget could not be displayed.