Viewing PVLAN Information

You can view information about a PVLAN by using several of the Logical Domains Manager listing subcommands. See the ldm(8) man page.

You can use the following commands to view PVLAN information.

  • Use ldm list-domain -o network to list PVLAN information:

    ldm list-domain [-e] [-l] -o network [-p] [domain-name...]

    The following examples show information about the PVLAN configuration on the ldg1 domain by using the ldm list-domain -o network command.

    • The following ldm list-domain command shows information about the PVLAN configuration on the ldg1 domain.

      primary# ldm list-domain -o network ldg1
      NAME
      ldg1
      
      MAC
           00:14:4f:fb:22:79
      
      NETWORK
           NAME         SERVICE                MACADDRESS PVID|PVLAN|VIDs
           ----         -------                ---------- ---------------
           vnet0        primary-vsw0@primary   00:14:4f:f8:6e:d9 2|300,community|--
                   DEVICE           :network@0       ID   :0
                   LINKPROP       :--                  MTU  :1500
                   MAXBW          :--                 MODE :--
                   CUSTOM        :disable
                   PRIORITY       :--                    COS :--
                   PROTECTION :--
    • The following ldm list-domain command shows PVLAN configuration information in a parseable form for the ldg1 domain.

      primary# ldm list-domain -o network -p ldg1
      VERSION 1.19
      DOMAIN|name=ldg1|
      MAC|mac-addr=00:14:4f:fb:22:79
      VNET|name=vnet0|dev=network@0|service=primary-vsw0@primary|mac-addr=00:14:4f:f8:6e:d9|mode=|pvid=2|vid=|mtu=1500|linkprop=|id=0|alt-mac-addrs=|maxbw=|pvlan=300,community|protection=|priority=|cos=|custom=disable|max-mac-addrs=|max-vlans=
  • Use ldm list-bindings to list PVLAN information:

    ldm list-bindings [-e] [-p] [domain-name...]

    The following examples show information about PVLAN configuration on the ldg1 domain by using the ldm list-bindingsnetwork command.

    • The following ldm list-bindings command shows information about the PVLAN configuration on the ldg1 domain.

      primary# ldm list-bindings -o network ldg1
      NAME
      ldg1
      
      MAC
           00:14:4f:fb:22:79
      
      NETWORK
           NAME         SERVICE                MACADDRESS PVID|PVLAN|VIDs
           ----         -------                ---------- ---------------
           vnet0        primary-vsw0@primary   00:14:4f:f8:6e:d9 2|300,community|--
      
               PEER                   MACADDRESS          PVID|PVLAN|VIDs
               ----                   ----------          ---------------
               primary-vsw0@primary   00:14:4f:f9:08:28   1|--|--
    • The following ldm list-bindings command shows PVLAN configuration information in a parseable form for the ldg1 domain.

      primary# ldm list-bindings -o network -p ldg1
      VERSION 1.19
      DOMAIN|name=ldg1|
      MAC|mac-addr=00:14:4f:fb:22:79
      VNET|name=vnet0|dev=network@0|service=primary-vsw0@primary|mac-addr=00:14:4f:f8:6e:d9|mode=|pvid=2|vid=|mtu=1500|linkprop=|id=0|alt-mac-addrs=|maxbw=|pvlan=300,community|protection=|priority=|cos=|custom=disable|max-mac-addrs=|max-vlans=
      |peer=primary-vsw0@primary|mac-addr=00:14:4f:f9:08:28|mode=|pvid=1|vid=|mtu=1500|maxbw=
  • Use ldm list-constraints to list PVLAN information:

    ldm list-constraints [-x] [domain-name...]

    The following shows the output generated by running the ldm list-constraints command:

    primary# ldm list-constraints -x ldg1
    ...
    <Section xsi:type="ovf:VirtualHardwareSection_Type">
      <Item>
        <rasd:OtherResourceType>network</rasd:OtherResourceType>
        <rasd:Address>auto-allocated</rasd:Address>
        <gprop:GenericProperty key="vnet_name">vnet0</gprop:GenericProperty>
        <gprop:GenericProperty key="service_name">primary-vsw0</gprop:GenericProperty>
        <gprop:GenericProperty key="pvid">1</gprop:GenericProperty>
        <gprop:GenericProperty key="vid">3</gprop:GenericProperty>
        <gprop:GenericProperty key="pvlan">200,community</gprop:GenericProperty>
        <gprop:GenericProperty key="maxbw">1700000000</gprop:GenericProperty>
        <gprop:GenericProperty key="device">network@0</gprop:GenericProperty>
        <gprop:GenericProperty key="id">0</gprop:GenericProperty>
      </Item>