Menu

Trunk native vlan even if port is access

Radek
2010-01-22
2012-09-14
  • Radek

    Radek - 2010-01-22

    Switch information is showing vlan set via ' switchport trunk native vlan '
    even if port is in access mode.

    When port is configured like this

    Interface GigabitEthernet 1/0/1

    switchport access vlan 100

    switchport trunk encapsulation dot1q

    switchport trunk native vlan 200

    switchport trunk allowed vlan none

    switchport mode access

    will result in

    Port    VLAN    State
    Gi1/0/1 200     Active
    
     
  • Radek

    Radek - 2010-01-25

    When "switchport trunk native vlan 200" is set i have

    "Fa1/0/1 200 Active 100M a-full Access Port port is active, but no packets
    have been seen recently"

    on interfaces

    but when this configuration directive is removed proper information about MAC
    address is displayed.

     
  • Radek

    Radek - 2010-01-29

    Script uses OID: vlanTrunkPortNativeVlan and displaying this value even if on
    this port trunk is not enabled.

    Actual trunking state can be check using vlanTrunkPortDynamicStatus, OID:
    1.3.6.1.4.1.9.9.46.1.6.1.1.14

    Values 1 : trunking, 2 : notTrunking

    " Indicates whether the specified interface is either acting as a trunk or
    not. This is a result of the vlanTrunkPortDynamicState and the ifOperStatus of
    the trunk port itself."

    Configured state can be check (I think) using vlanTrunkPortDynamicState.

    OID: 1.3.6.1.4.1.9.9.46.1.6.1.1.13

    Values 1 : on

    2 : off

    3 : desirable

    4 : auto

    5 : onNoNegotiate

     

Log in to post a comment.

MongoDB Logo MongoDB