New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Port VLAN Mismatches report incorrect with Cisco subinterfaces #877
Comments
Hi @fredriksknese can you clarify what you mean by subinterfaces? Does the normal device port table show that these two ports are neighbors? |
Its Ciscos terminology for dot1q encapsulation/tagged interface. I don't work at that company so I can not check but I get the same result at my homelab. Continue below for my current configuration and setup.
Yes. Its a "classic" router on a stick configuration. https://www.networkstraining.com/cisco-router-on-a-stick-with-switch/
Config on 10.0.100.1 "GW" router
Config on 10.0.100.6 "Test-SW"
|
And the version I'm using
|
thanks @fredriksknese ! Now, do the subinterfaces show up as interfaces in Netdisco in the device ports view? What "type" (select the sidebar option) is show for the left and right interfaces of your example, and the subinterfaces if they are listed? Similarly, if these subinterfaces exist, do they have neighbors? (I guess not, as they are not in the report!) The tricky thing here is that Netdisco doesn't know (probably) that the subinterfaces are attached to the "parent" interface and carrying the VLANs. Perhaps I can work this out indirectly, which is why I ask the above questions. |
Now, do the subinterfaces show up as interfaces in Netdisco in the device ports view? Similarly, if these sub-interfaces exist, do they have neighbours? (I guess not, as they are not in the report!) See attached screenshots. (There is a link GW#Gi0 to Test-SW#Gi0/7 which is a valid mismatch) |
"The tricky thing here is that Netdisco doesn't know (probably) that the subinterfaces are attached to the "parent" interface and carrying the VLANs." Should I see it as a interface with subinterfaces can be seen as it can technically be physical breakout cable? Its the ethernetCsmacd and l2lan types that creates the mismatch? |
Hi @fredriksknese thank you again for the updates and replies, very helpful Are you able to run the following command against the device IP which has the subinterfaces, and send the output: This is (apparently) where for Cisco devices we might be able to discover the relation between the parent and subinterfaces and make more intelligent presentation of the data.
Yes, at the moment the device just reports a set of discrete interfaces, and we don't know (apart from the "dot notation" convention in the interface name) that they are subinterfaces. However for something like link aggregation (port channels) we can get extra information to make the connection between parent and member interfaces, and perhaps we can do the same here. |
@fredriksknese second note, if the command above is successful (has a table of numbers or whatever) then if this is on your lab box and you're able to share, I'd appreciate a device snapshot to work on the feature support: |
10.0.100.1-snapshot.txt The .6 timed out. I tried two times netdisco@lnx2$ tail -f logs/netdisco-backend.log |
|
Hi @fredriksknese that's great! Thank you. To help me finish the feature, would you be able to configure a second physical interface on 10.0.100.1 with some vlan subinterfaces. I need this to make sure we interpret the information over SNMP correctly for multiple routed physical interfaces. Take and send over the snapshot as before. |
The router and switch are now connected on two ports
GW
The snapshot feature does not work on the switch. But that will be a separate bug report |
Super, thank you @fredriksknese for the quick update |
Hello again. Well, the good news is that I'm making progress and can fix this (and have a test patch for your BULKWALK issue as well). The bad news is that I found a mistake in our netdisco-mibs bundle and have released a new version. If possible, can you re-run netdisco-deploy and update the MIBs bundle and take another snapshot of the device? Many thanks. |
Sorry, meant to say, and run "netdisco-do loadmibs" again after updating netdisco-mibs and before taking the snapshot. |
(Here I used the web interface to update the devices with Discover/Arpnip/Macsuck/NBTstat) And the snapshots
Is this correct? |
Looks good! I will test in a few hours, many thanks indeed |
Hi @fredriksknese finally, I think I have a working fix (and a few new features and bugs fixed as well along the way). Please upgrade to 2.053000 when it appears in a couple of hours on mirrors, and remember to netdisco-deploy for the DB schema update. After a rediscover of your devices, I hope you can see the VLAN Mismatch report is better, and the subinterfaces are marked as part of the parent interface in the Device Ports view. Do let me know how you get on. Many thanks for your patience and help! |
Hi @fredriksknese just an extra bit of news, in case you have any subinterfaces where the configured VLAN is not the same as the interface name dotted-part, we have just addressed a bug affecting this. An update of SNMP::Info ( |
Discussed in #773
Originally posted by fredriksknese February 28, 2021
All my router ports with subinterfaces are showing in report "Port VLAN Mismatches".
Is this a issue anyone else have? Is this expected behavior?
Left Device | Left Port | Left VLANs | Right Device | Right Port | Right VLANs
10.0.0.1 | GigabitEthernet1/1 | n:1 | 10.0.0.2 | GigabitEthernet1/0/1 | n:1, 2, 3, 4, 5, 1002, 1003, 1004, 1005
The text was updated successfully, but these errors were encountered: