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.
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.
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 ?
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.
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).
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.
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:
GregG1
2 Intern
•
812 Posts
386
0
Posted October 7th, 2004 12:00