- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2023 01:16 AM
Hello, I want to configure a gigabitEthernet port in a 9200L in this way:
- Accept untagged traffic and set tag to VLAN 7
- Accept tagged traffic from both VLAN 42 and VLAN 7
This is my running-config for this port:
switchport access vlan 7
switchport trunk native vlan 7
switchport trunk allowed vlan 42
But it is not working. Could anyone show me the right way? Thanks in advance.
Solved! Go to Solution.
- Labels:
-
Catalyst 9000
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2023 01:49 AM
Try
switchport mode trunk
switchport trunk native vlan 7 (tags untagged traffic to be tagged as vlan 7)
switchport trunk allowed vlan 42 (allows taged traffic vlan vlan 42 on trunk)
switchport trunk allowed vlan 7 (allows taged traffic vlan vlan 7 on trunk)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2023 01:20 AM - edited 12-18-2023 07:02 AM
MHM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2023 01:22 AM
@Sergio Teijido hi, normally we cannot configure access and trunk modes same time in same port. it need to be either one mode. you can try using voice VLAN to tweak this.
Good luck
KB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2023 01:49 AM
Try
switchport mode trunk
switchport trunk native vlan 7 (tags untagged traffic to be tagged as vlan 7)
switchport trunk allowed vlan 42 (allows taged traffic vlan vlan 42 on trunk)
switchport trunk allowed vlan 7 (allows taged traffic vlan vlan 7 on trunk)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2023 06:56 AM
This worked, thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2023 07:03 AM
So traffic one time tag and other time untag!!!!!!
I never see this config before.
Vlan in trunk can tag or untag but both!
Sorry can you elaborate how it work
MHM
