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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
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.
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