Creating a PVLAN
You can configure a PVLAN by setting the pvlan property value by using the ldm add-vnet or ldm set-vnet command. See the ldm(8) man page.
You can use the following commands to create or remove a PVLAN:
-
Use
ldm add-vnetto create a PVLAN:ldm add-vnet pvid=port-VLAN-ID pvlan=secondary-vid,pvlan-type \ if-name vswitch-name domain-name
The following command shows how to create a virtual network with a PVLAN that has a primary vlan-id of
4, a secondary vlan-id of200, and a pvlan-type ofisolated.primary# ldm add-vnet pvid=4 pvlan=200,isolated vnet1 primary-vsw0 ldg1 -
Use
ldm set-vnetto create a PVLAN:ldm set-vnet pvid=port-VLAN-ID pvlan=secondary-vid,pvlan-type if-name domain-name
The following command shows how to create a virtual network with a PVLAN that has a primary vlan-id of
3, a secondary vlan-id of300, and a pvlan-type ofcommunity.primary# ldm set-vnet pvid=3 pvlan=300,community vnet2 ldg1 -
Use
ldm set-vnetto remove a PVLAN:ldm set-vnet pvlan= if-name domain-name
The following command removes the PVLAN configuration for the
vnet0virtual network. To revert thevnet0virtual network to a regular VLAN ID, you must remove the PVLAN ID first.primary# ldm set-vnet pvlan= vnet0 ldg1