cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
300
Views
0
Helpful
1
Replies

native VLAN

lubosbella
Level 1
Level 1

Hi,

i have a cisco 2950 switch. onfiguration on interface is:

interface FastEthernet0/22

switchport trunk native vlan 101

switchport mode access

spanning-tree portfast

My question: when i connect a new pc for example to this port, in which VLAN will this pc belong 1 or 101? And why?

Thaks.

Lubo

1 Accepted Solution

Accepted Solutions

mohammedmahmoud
Level 11
Level 11

Hi Lubo,

It will be VLAN 1, since you have configured the switchport as a static access port, and then any trunking commands is irrelevant.

Rack1SW1(config)#interface f0/23

Rack1SW1(config-if)#switchport trunk native vlan 101

Rack1SW1(config-if)#switchport mode access

Rack1SW1(config-if)#

Rack1SW1(config-if)#

Rack1SW1(config-if)#^Z

Rack1SW1#sh int

Rack1SW1#sh interfaces

19:12:02: %SYS-5-CONFIG_I: Configured from console by console

Rack1SW1#sh interfaces f0/23 sw

Rack1SW1#sh interfaces f0/23 switchport

Name: Fa0/23

Switchport: Enabled

Administrative Mode: static access

Operational Mode: down

Administrative Trunking Encapsulation: negotiate

Negotiation of Trunking: Off

Access Mode VLAN: 1 (default)

Trunking Native Mode VLAN: 101 (Inactive)

Administrative Native VLAN tagging: enabled

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 Native VLAN tagging: enabled

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

Rack1SW1#

HTH,

Mohammed Mahmoud.

View solution in original post

1 Reply 1

mohammedmahmoud
Level 11
Level 11

Hi Lubo,

It will be VLAN 1, since you have configured the switchport as a static access port, and then any trunking commands is irrelevant.

Rack1SW1(config)#interface f0/23

Rack1SW1(config-if)#switchport trunk native vlan 101

Rack1SW1(config-if)#switchport mode access

Rack1SW1(config-if)#

Rack1SW1(config-if)#

Rack1SW1(config-if)#^Z

Rack1SW1#sh int

Rack1SW1#sh interfaces

19:12:02: %SYS-5-CONFIG_I: Configured from console by console

Rack1SW1#sh interfaces f0/23 sw

Rack1SW1#sh interfaces f0/23 switchport

Name: Fa0/23

Switchport: Enabled

Administrative Mode: static access

Operational Mode: down

Administrative Trunking Encapsulation: negotiate

Negotiation of Trunking: Off

Access Mode VLAN: 1 (default)

Trunking Native Mode VLAN: 101 (Inactive)

Administrative Native VLAN tagging: enabled

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 Native VLAN tagging: enabled

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

Rack1SW1#

HTH,

Mohammed Mahmoud.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card