PVlan
Port VLAN settings
- PVlan
Shortest form:
pv.Show or set each port’s default VLAN: the VLAN that untagged frames received on the port are put in.
pvlanon its own is the same aspvlan showfor every port. The port list is optional and defaults to all front-panel ports.cpu0is ignored.showis read-only.setchanges a value that SONiC sets from the port’s untagged VLAN membership, and SONiC does not notice the change.SONiC’s
generate_dumpcollectspvlan show(scripts/generate_dump (show techsupport collector)).- pvlan show [<pbmp>]
Print
Port <name> default VLAN is <vid>for each port, one line per port in port order. Read-only. On a SONiC switch, a port that is not an untagged member of any SONiC VLAN shows VLAN 1.Hardware-validated
drivshell> pvlan show ce1 Port ce1 default VLAN is 1
- pvlan set <pbmp> <vid>
Set the default VLAN of the ports in
PBMP. The VLAN must already exist and contain the ports. If it does not, the shell printsVLAN <vid> must be created and contain the ports before being used for port default VLAN.and stops at that port. The command still reports success, so a script cannot tell that it failed. Without a VLAN number it printsMissing VID for set.. On success it prints nothing. Changes switch state.Unvalidated
drivshell> pvlan set ce1,ce2 100
Built-in help
Usages: pvlan show <pbmp> - Show PVLAN info for these ports. pvlan set <pbmp> <vid> - Set default VLAN tag for port(s) Port bitmaps are read from the VTABLE entry for the VID. <vid> must have been created and all ports in <pbmp> must belong to that VLAN.Further reading
bcmsh.md (published as https://kamelnetworks.github.io/sonic/bcmsh.html), SDK-6.5.20 HSDK Getting Started Guide (GS-SDK6520-R), plus SDK-6.5.20/21/22 Release Notes (RN-SDK65xx-R), scripts/generate_dump (show techsupport collector), 交换芯片Helix4 L2 L3功能验证, 【交换芯片】硬件调测使用场景下的BMC交换常用命令说明.