320
edits
(trunk setup) |
(Untagged trunk ports) |
||
Line 137: | Line 137: | ||
switchport mode trunk | switchport mode trunk | ||
!</nowiki> | !</nowiki> | ||
=== Port with untagged and tagged traffic === | |||
This is when a port is used as an access port and also has vlans available. Typically necessary for setting up something with a single interface. | |||
<nowiki> | |||
! | |||
interface GigabitEthernet1/0/2 | |||
description white wire | |||
switchport trunk encapsulation dot1q | |||
switchport trunk native vlan 40 | |||
switchport trunk allowed vlan 30,40,50 | |||
switchport mode trunk | |||
! | |||
</nowiki> | |||
In the above config it is necessary to have the "native" vlan (the equivalent of an access vlan, "switchport access vlan 40") also an allowed vlan for the trunk port. |