-
Assume the Primary Administrator role, or become superuser.
The Primary Administrator role includes the Primary Administrator profile. To create the role and assign the role to a user, see Chapter 2, Working With the Solaris Management Console (Tasks), in System Administration Guide: Basic Administration.
-
Determine the types of interfaces in use on your system.
# dladm show-link
The output shows the available interface types:
ce0 type: legacy mtu: 1500 device: ce0
ce1 type: legacy mtu: 1500 device: ce1
bge0 type: non-vlan mtu: 1500 device: bge0
bge1 type: non-vlan mtu: 1500 device: bge1
bge2 type: non-vlan mtu: 1500 device: bge2 -
Configure an interface as part of a VLAN.
# ifconfig interface-PPA plumb IP-address up
For example, you would use the following command to configure the interface ce1 with a new IP address 10.0.0.2 into a VLAN with the VID 123:
# ifconfig ce123001 plumb 10.0.0.2
up
Note –You can assign IPv4 and IPv6 addresses to VLANs just as you do to other interfaces.
-
(Optional) To make the VLAN settings persist across reboots, create a hostname.interface-PPA file for each interface that is configured as part of a VLAN.
# cat hostname.interface-PPA
IPv4-address -
On the switch, set VLAN tagging and VLAN ports to correspond with the VLANs that you have set up on the system.
Example 6–3 Configuring a VLAN
This example shows how to configure devices bge1 and bge2 into a VLAN with the VID 123.
# dladm show-link |