Tuesday, 18 October 2016

Switchport

Setting/changing Native VLAN on a trunk port:
Switch(config-if)#switchport trunk native ?
vlan Set native VLAN when interface is in trunking mode
Switch(config-if)#switchport trunk native vlan ?
<1-1005> VLAN ID of the native VLAN when this port is in trunking mode

OR

Switch(config-if)#switchport native ?
vlan Set native VLAN when interface is in trunking mode
Switch(config-if)#switchport native vlan ?
<1-1005> VLAN ID of the native VLAN when this port is in trunking mode

Verification:
Switch#show int f0/1 switchport
Name: Fa0/1
Switchport: Enabled
Administrative Mode: dynamic auto
Operational Mode: down
Administrative Trunking Encapsulation: negotiated
Operational Trunking Encapsulation: native
Negotiation of Trunking: On
Access Mode VLAN: 1 (default)
Trunking Native Mode VLAN: 1 (default)
Voice VLAN: none
Administrative private-vlan host-association: none
Administrative private-vlan mapping: none
Administrative private-vlan trunk native VLAN: none
Administrative private-vlan trunk encapsulation: dot1q
Administrative private-vlan trunk normal VLANs: none
Administrative private-vlan trunk private VLANs: none
Operational private-vlan: none
Trunking VLANs Enabled: All
Pruning VLANs Enabled: 2-1001
Capture Mode Disabled
Capture VLANs Allowed: ALL
Protected: false
Unknown unicast blocked: disabled
Unknown multicast blocked: disabled
Appliance trust: none


Router subinterface configuration for Native VLAN: 

Router(config-subif)#encapsulation dot1q 10 ?

native Make this as native vlan
<cr>


Switch(config-if)#switchport trunk allowed vlan ?
WORD VLAN IDs of the allowed VLANs when this port is 
in trunking mode
add add VLANs to the current list
all all VLANs
except all VLANs except the following
none no VLANs
remove remove VLANs from the current list



No comments:

Post a Comment