UNSOLVED

umekoro

updated

22 years ago

U

umekoro

44 Posts

0

20518

October 7th, 2004 09:00

PCT5224 trunk configuration.

Dear all,

I have a question about a following trunk configuration. The interface eth1/22 is a trunk port and it belongs to native vlan 1. I want to change the native vlan of trunk to another vlan.  I couldn't change it like eth1/23. How can I change it ?  Please let me know how to change it to another vlan.

interface ethernet 1/22
 switchport allowed vlan add 1 untagged
 switchport native vlan 1
 switchport mode trunk
 switchport allowed vlan add 1,8 tagged
!

interface ethernet 1/23
 switchport allowed vlan add 8 untagged
 switchport native vlan 8
 switchport allowed vlan remove 1
!

  • GregG1

    2 Intern

    •

    812 Posts

    386

    0

    Posted October 7th, 2004 12:00

    The native vlan cannot be changed on a trunk port. To change the native vlan, you would need to use the "switchport mode hybrid" command to remove the trunk configuration. You can then change the native vlan on the port.
  • umekoro

    44 Posts

    386

    0

    Posted October 19th, 2004 11:00

    Dea all,

    I want to know the interoperability of trunk between Catalyst and PCT5224. For example,I change the each native vlan from 1 to 10.  In PCT5224, I use the 'switchport mode hybrid' command. In this situation , can I make a trunk between Catalyst and PCT5224 without any problem ? Or do I have to use native vlan 1(switch mode trunk) in PCT5224 to have an interoperability with Catalyst ?

    Please let me know asap.

  • GregG1

    2 Intern

    •

    812 Posts

    386

    0

    Posted October 19th, 2004 11:00

    Native VLAN 1 does not need to be used to establish the trunk. As long as both sides of the trunk are configured for the same native VLAN, there should be no problem establishing the trunk.
     
    Depending on what type of Catalyst you are using, once you have changed the native VLAN on the 5224 you will most likely need to change it back to trunk mode using the "switchport mode trunk" command.
  • umekoro

    44 Posts

    386

    0

    Posted October 19th, 2004 12:00

    Thanks for your reply.

    To change the native vlan from 1 to another on trunk in PCT52xx, I understood the following procedure is needed. Is it right ?

    (1). switchport mode hybrid (2). change the native vlan (3). switchport mode trunk   

    >Depending on what type of Catalyst you are using

    What does it mean ? Is there any problem on the specific Catalyst series ?(For example, Catalyst2950, 3550 etc) Of course, I use dot1.q.

    Please let me know asap.  

  • GregG1

    2 Intern

    •

    812 Posts

    386

    0

    Posted October 19th, 2004 14:00

    The procedure listed is correct. To change the native vlan, the mode must be hybrid and the vlan must be untagged.
     
    Different Cisco switches treat the native vlan differently. The Catalyst 5500 and 6500 switches (running CatOS) require that the 5200 be configured for switchport mode trunk and switchport acceptable-frame-types tagged. Most Catalyst switches running IOS require that the 5200 be configured for switchport mode hybrid and switchport acceptable-frame-types all. When using hybrid mode, the native vlan remains untagged (implicitly tagged) and all additional vlans will be tagged (explicitly tagged).
  • umekoro

    44 Posts

    386

    0

    Posted October 20th, 2004 07:00

    This is a basic question but please let me know.

    <5224-A>

    interface ethernet 1/1
     switchport allowed vlan add 1 untagged
     switchport native vlan 1
     switchport mode trunk
     switchport allowed vlan add 1-2 tagged
    !
    interface ethernet 1/2
     switchport allowed vlan add 2 untagged
     switchport native vlan 2
     switchport allowed vlan remove 1

    <5224-B>
    interface ethernet 1/1
     switchport allowed vlan add 1 untagged
     switchport native vlan 1
     switchport mode trunk
     switchport allowed vlan add 1-2 tagged
    !
    interface ethernet 1/2
     switchport allowed vlan add 1-2 untagged
     switchport native vlan 1
     
    I connected a PC-A on PCT5224-A and PC-B on PCT5224-B.
    I couldn't ping from A to B and B to A. Why do I have to use the same native vlan on the ethernet 1/2 ?
     
    I solved this on the following configuration change.
    (1) On PCT5224-A, I changed native vlan from 2 to 1 on ethernet 1/2.
    (2) On PCT5224-B, I changed native vlan from 1 to 2 on ethernet 1/2.
     
    Please let me know.
     
     
  • umekoro

    44 Posts

    386

    0

    Posted October 20th, 2004 09:00

    It isn't a trunk configuration but communication between eth1/1 and eth1/2 was successful.
     
    I'm not sure about a relationship between 'switchport allowed vlan add 'command and 'switchport native vlan ' command.
    interface ethernet 1/1
     switchport allowed vlan add 1-2 untagged
     switchport native vlan 2
    !
    interface ethernet 1/2
     switchport allowed vlan add 1-2 untagged
     switchport native vlan 1
  • GregG1

    2 Intern

    •

    812 Posts

    386

    0

    Posted October 20th, 2004 10:00

    If you are simply trunking VLANs between two 5224 switches, you don't need the "switchport mode trunk" command. To trunk VLANs 1 & 2 between the two switches using interface 1/1 and two clients on VLAN 2 using interface 1/2, you would use the following configuration:
     
    5224-A
     
    interface ethernet 1/1
      switchport allowed vlan add 1 untagged
      switchport native vlan 1
      switchport allowed vlan add 2 tagged
     
    interface ethernet 1/2
      switchport allowed vlan add 2 untagged
      switchport native vlan 2
      switchport allowed vlan remove 1
     
    The configuration would be exactly the same on 5224-B.
  • umekoro

    44 Posts

    386

    0

    Posted October 20th, 2004 11:00

    Thanks for your reply.
     
     Excuse me but,  would you answer my question of ' 10-20-200403:32 AM'  ?
     I think that I have to use same 'native vlan' on both side. Is it right ?
     
    In the following config(I omited the trunk port config of eth1/1),
    Does vlan 2 traffic come to 5224-B  from 5224-A ? I think that doesn't come. Is it right ?
    If so, when do I use (for example) '1-2 untagged' range command ? I'm not sure about the usage of range '1-2,,,,'.
     
    <5224-A>
    interface ethernet 1/2
     switchport allowed vlan add 2 untagged
     switchport native vlan 2
     switchport allowed vlan remove 1
     
    <5224-B>
    interface ethernet 1/2
     switchport allowed vlan add 1-2 untagged
     switchport native vlan 1
     
  • GregG1

    2 Intern

    •

    812 Posts

    62

    0

    Posted October 20th, 2004 14:00

    The native VLAN (or PVID) defines the ingress traffic rule for untagged traffic. If a port has native VLAN 2, all inbound traffic on that port will be isolated by the switch to VLAN 2.
    Unless you are using port overlapping (which is not recommended) a client port should be untagged on only its respective VLAN (VLAN 2 in this example) with the native VLAN set accordingly (VLAN 2).
     
    Untagging a port for a VLAN specifies the forwarding rule. The port will allow egress (outbound) traffic for all VLANs untagged on the port. A port would only be untagged on multiple VLANs if port overlapping were being used.
     
    For more information on how VLANs and 802.1Q trunking works, see the IEEE 802.1Q standard whitepaper at the link below: