Menu

#242 change access vlan instead of native vlan

moved-to-github
None
2016-04-23
2015-07-09
Jason
No

when trying to change the vlan on a port I only see the ability to change the native vlan. When we execute that from the web portal it sends the command "switchport trunk native vlan [vlan]" to our switches. The ports I want to change are access ports. Can you point me in the direction of where this command is being generated from? If I could just change this command to "switch access vlan [vlan]" it would be extremely helpful.

Discussion

  • Oliver Gorwits

    Oliver Gorwits - 2015-07-30

    Hi Jason,

    The instruction sent to your device is actually an SNMP SET operation rather than a text command. Netdisco should be setting the access vlan (and indeed does on my test Cisco 3560).

    The instruction can be overridden per device/platform within the code of one of Netdisco's supporting modules (SNMP::Info). What is the device/platform you have issues with? We will also need to know the SNMP OID used to set the access vlan on that platform (you could test this with snmpset at the command line).

    regards,
    oliver.

     
  • Oliver Gorwits

    Oliver Gorwits - 2015-07-30
    • status: new --> stalled
    • assigned_to: Oliver Gorwits
     
    • Geoffroy

      Geoffroy - 2015-12-03

      Hi Oliver,
      Here we have the same problem with cisco 2960 (G,S and X series)
      I'm able to set "native vlan" using OID .1.3.6.1.4.1.9.9.68.1.2.2.1.2. alias CISCO-VLAN-MEMBERSHIP-MIB::vmVlan.

      Using SNMP::Info 3.30 with netdisco 2.033004 (I'm freebsd'port maintainer :)

      I'm not very confident with "clean" perl programming, but I may test any patch :)

       
      • Geoffroy

        Geoffroy - 2015-12-03

        Currently, these switches are managed as Layer3::C6500 (12.2(58)SE2 or 15.0(2)EX5 sys version).
        They are not really layer3-capable though (only static routing on SVI's only)

         
        • Geoffroy

          Geoffroy - 2015-12-03

          Just checked with a C6500: problem is the very same…
          An 'access vlan' port (eg here G1/0/7, alias 10107 in vlan 35) can be identified by oid .1.3.6.1.4.1.9.9.68.1.2.2.1.1.10107 = INTEGER: static(1)
          .1.3.6.1.4.1.9.9.68.1.2.2.1.2.10107 = INTEGER: 35

          A 'trunk' port doesn't present these OID at all.

           
  • Geoffroy

    Geoffroy - 2016-04-23

    I'm still interested in testing/reporting what may be needed.
    Thanks

     
  • Oliver Gorwits

    Oliver Gorwits - 2017-02-02
    • Status: stalled --> moved-to-github
     
MongoDB Logo MongoDB