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-vnet to 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 of 200, and a pvlan-type of isolated.

    primary# ldm add-vnet pvid=4 pvlan=200,isolated vnet1 primary-vsw0 ldg1
  • Use ldm set-vnet to 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 of 300, and a pvlan-type of community.

    primary# ldm set-vnet pvid=3 pvlan=300,community vnet2 ldg1
  • Use ldm set-vnet to remove a PVLAN:

    ldm set-vnet pvlan= if-name domain-name

    The following command removes the PVLAN configuration for the vnet0 virtual network. To revert the vnet0 virtual network to a regular VLAN ID, you must remove the PVLAN ID first.

    primary# ldm set-vnet pvlan= vnet0 ldg1