On Fri, 17 Mar 2023 14:53:50 +0000 Davide Miccone davide@wpweb.com wrote:
just installed a new 5.6 NAV.
Cisco Business 350-8T-E-2G still not correctly detect interface vlan (trunk on port GigabitEthernet10 is detected).
I took a look at your logs (please send logs as attachments in the future, it makes your email a lot easier to read).
These are the essential excerpts:
2022-11-07 17:35:41,250 [DEBUG plugins.juniperdot1q.juniperdot1q] [inventory f-s83.endurance-mnet.local] Collecting 802.1q VLAN information 2022-11-07 17:35:41,306 [DEBUG plugins.juniperdot1q.juniperdot1q] [inventory f-s83.endurance-mnet.local] PVID mapping: {1: 1, 2: 1, 3: 1, 4: 1, 5: 1, 6: 1, 7: 1, 8: 1, 9: 1, 10: 1, 1000: 1, 1001: 1, 1002: 1, 1003: 1, 1004: 1, 1005: 1, 1006: 1, 1007: 1}
[...]
2022-11-07 17:35:41,407 [DEBUG plugins.juniperdot1q.juniperdot1q] [inventory f-s83.endurance-mnet.local] vlan: 1 egress: {1000, 1001, 10, 1002, 1003, 1004, 1005, 1006, 1007} untagged: {1000, 1001, 10, 1002, 1003, 1004, 1005, 1006, 1007} 2022-11-07 17:35:41,408 [DEBUG plugins.juniperdot1q.juniperdot1q] [inventory f-s83.endurance-mnet.local] vlan: 2 egress: {1, 2, 3, 4, 5, 6, 7, 8, 9, 10} untagged: {1, 2, 3, 4, 5, 6, 7, 8, 9}
The problem here seems to be that NAV is written to interpret a port's PVID value as its native/untagged VLAN. The egress VLAN list is mostly interpreted by NAV to figure which ports carry tagged VLANs, i.e. are trunks.
Your switch seems to report the egress VLAN for all your access ports to be VLAN 2, while it reports a PVID value of 1 for all ports, which throws NAV off here.
Precisely this bit of MIB interpretation is a bit confusing, since the terminology varies a lot between vendors here. Since I don't have experience as a network engineer, I'm not sure whether there is a meaningful difference between PVID and egress for non-tagged ports.
Is there a way to explicitly set the PVID value in the Cisco SMB config language? Some googling seems to suggest `switchport general pvid XXX` is valid, but I can't say whether that would make sense or be compatible with your setup with `switchport access vlan X`.