Configuring VLANs on a link aggregation is similar to configuring VLANs over an interface. Link aggregations are described in Configuring High Availability by Using Link Aggregations.
Before You Begin
Create the link aggregation. See How to Create a Link Aggregation.
Ensure that your role has the appropriate rights profile to perform this procedure. See Using Rights Profiles to Perform Network Configuration.
$ dladm show-aggr
$ dladm create-vlan -l link -v vid VLAN-link
Specifies the aggregation on which the VLAN is being created.
Indicates the VLAN ID number.
Specifies the name of the VLAN.
$ ipadm create-ip interface
interface is the interface name, which typically follows the VLAN name.
$ ipadm create-addr -a address interface
In this example, two VLANs are configured on a link aggregation. The VLANs are assigned VLAN IDs 193 and 194, respectively.
$ dladm show-link LINK CLASS MTU STATE OVER net0 phys 1500 up -- net1 phys 1500 up -- aggr0 aggr 1500 up net0 net1 $ dladm create-vlan -l aggr0 -v 193 acctg0 $ dladm create-vlan -l aggr0 -v 194 humres0 $ ipadm create-ip acctg0 $ ipadm create-ip humres0 $ ipadm create-addr -a 192.0.2.50/24 acctg0 ipadm: acctg0/v4 $ ipadm create-addr -a 192.0.2.60/24 humres0 ipadm: humres0/v4