Uninett / nav

Network Administration Visualized
GNU General Public License v3.0
192 stars 39 forks source link

Voice Vlan Configuration for Dell N-Series #2125

Open LudovicV-IOGS opened 4 years ago

LudovicV-IOGS commented 4 years ago

Describe the bug When I tick the Phone in Port Admin, a special configuration is created, not really corresponding to needs.

To Reproduce Steps to reproduce the behavior:

  1. In the UI, select a switch (Dell N2048P in my case)
  2. Go to 'Port Admin'
  3. Click on 'Phone' for an interface able to have one
  4. Save, everthing is ok.

In the switch :

Expected behavior interface gi3/0/22 description "IOGS Recherche B108A SR1.2.195" spanning-tree portfast switchport access vlan 621 voice vlan 681 --> this is important power inline auto --> this is important but maybe difficult to manage power inline powered-device TOIP --> this is less important bu usefull

Environment :

Additional context I know I've got a pretty old version but I read all release notes and this problem is not listed I think.

lunkwill42 commented 4 years ago

PortAdmin only supports two modes of Voice VLAN functionality (and both must be explicitly selected/enabled in the config file):

  1. A generic, non-vendor-specific mode, in where a port is made intro a trunk carrying both the access VLAN and the voice VLAN - so that you can ocnnect a VoIP device that supports 802.1Q trunking and can provide a non-tagged interface to the access VLAN for a connected computer. This is the mode you seem to have selected.

  2. Cisco Voice VLAN commands.

Dell specific Voice VLAN commands are not supported. There is also no manipulation of PoE settings supported for any vendor (although such support is on our wishlist, but would have to be vendor-specific in every case).

IMHO, this is not a bug, but needs to be considered a feature request. However, we don't have access to Dell switches for testing an implementation. You would probably fare better if you were able to provide some working Dell MIB references and a detailed spec of what this feature would look like.

1974 recently contributed a PortAdmin feature to enable/disable CDP when enabling/disabling voice ports - something akin to that might be useful for your Dell use case too - but it seems to me that you're describing a feature set that would be better suited for a rewrite of PortAdmin to provide port profiles instead of full configurability of every minutiae of a port.

LudovicV-IOGS commented 4 years ago

In fact, I've not selected the trunk mode.

Voice VLAN from Dell is more like Cisco specific.

If we except the power inline commands, this is a Cisco voice vlan interface interface GigabitEthernet1/0/7 description IOGS Administration F104 SR2.3.104 Tel switchport mode access switchport access vlan 620 switchport voice vlan 681

and a Dell interface interface gi3/0/22 description "IOGS Recherche B108A SR1.2.195" switchport mode access switchport access vlan 620 voice vlan 681 As you can see, difference is really minimal

By the way, maybe my configuration is not the good one (but it's working) Here's what I found in Dell support https://www.dell.com/support/article/fr-fr/how12385/how-to-enable-the-voice-vlan-feature-on-dell-emc-networking-n-series-switches?lang=en

For the moment, my switch are in 6.3.3.14 so the good configuration should be : interface GigabitEthernet 3/0/22 switchport mode general switchport general pvid 620 switchport general allowed vlan add 620 untagged switchport general allowed vlan add 681 tagged voice vlan 681

But if I upgrade to 6.5.4.4 there are 2 possibilities :

As you can see, the 2nd syntax is exactly the same as the Cisco one

For the MIB, they can be found in this link (they are included in the firmware zip) 6.3.3.14 : https://www.dell.com/support/home/us/en/04/Drivers/DriversDetails?driverId=5R9G6 6.5.4.4 : https://www.dell.com/support/home/us/en/04/Drivers/DriversDetails?driverId=5HXHT

lunkwill42 commented 4 years ago

It doesn't matter one bit to PortAdmin if the configs look similar in the CLI, since this is all done via proprietary SNMP MIBs that have no bearing on how the config syntax looks internally on each platform. Selecting Cisco Voice VLAN mode-of-operation in portadmin.conf will do nothing for Dell devices, since the relevant Dell-proprietary MIBs aren't supported by NAV.

A quick grep through the MIB files provided in the archives you linked to seems to suggest that voice vlan-related config may be available in the DNOS-SWITCHING-MIB (the fastpathswitching.my file). NAV already has this MIB definition its base, thanks to the few Dell-specific additions already made in PortAdmin, but only the simple 802.1Q bits are implemented.

Still, it's hard to build working code out of this if there is no equipment to test on.

LudovicV-IOGS commented 4 years ago

Maybe you can contact Dell to see if they can lend you some models I will write you a mail with some names. I hope Dell will be open to this.

lunkwill42 commented 4 years ago

Maybe you can contact Dell to see if they can lend you some models

With our limited resources, I need to prioritize the needs of our customers in the Norwegian higher education and research sector, and since none of our current customers run Dell switches (to my knowledge), this will probably not receive a very high priority, I'm afraid.

I am currently in the process of restructuring the PortAdmin code, however, since we need to support other protocols than just SNMP. These changes might end up making it easier for you to contribute something yourself.

lunkwill42 commented 4 years ago

Just want to reference #2173 here, which we expect to deliver in 5.1.