Solaris 11 – Creating VLAN Tagging over Link Aggregation

How to create multiple VLAN tagging for your link aggregated network interface?

I am creating 2 VLAN (510 & 25) over link aggregation aggr0 for net0 and net4 interface.
  1. Create link aggregation over the interface first
  2. Create the VLAN interface for every VLAN you want to tag
  3. Create IP interface over the VLAN interface
  4. Configure the IP address for the link aggregation interface.
Output log as below!

# dladm show-aggr
LINK POLICY ADDRPOLICY LACPACTIVITY LACPTIMER FLAGS
aggr0 L4 auto passive short —–

# dladm show-link
LINK CLASS MTU STATE OVER
net5 phys 1500 unknown —
net2 phys 1500 unknown —
net0 phys 1500 up —
net11 phys 1500 unknown —
net3 phys 1500 unknown —
net4 phys 1500 up —
net10 phys 1500 unknown —
net15 phys 1500 unknown —
net13 phys 1500 unknown —
net12 phys 1500 unknown —
net16 phys 1500 unknown —
net9 phys 1500 unknown —
net14 phys 1500 unknown —
net1 phys 1500 unknown —
net18 phys 1500 up —
aggr0 aggr 1500 up net0 net4

# dladm create-vlan -l aggr0 -v 510 aggrvlan1
# dladm create-vlan -l aggr0 -v 25 aggrvlan2
# ipadm create-ip aggrvlan1
# ipadm create-ip aggrvlan2
# ipadm create-addr -T static -a 10.37.10.231/24 aggrvlan1/v4static

# ping 10.37.10.1
10.37.10.1 is alive
# dladm show-aggr
LINK POLICY ADDRPOLICY LACPACTIVITY LACPTIMER FLAGS
aggr0 L4 auto passive short —–
# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
net18: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet 169.254.182.77 netmask ffffff00 broadcast 169.254.182.255
ether 2:21:28:57:47:17
aggrvlan1: flags=201000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4,CoS> mtu 1500 index 5
inet 10.37.10.231 netmask ffffff00 broadcast 10.37.10.255
ether 0:21:28:fa:8c:f8
aggrvlan2: flags=201000842<BROADCAST,RUNNING,MULTICAST,IPv4,CoS> mtu 1500 index 6
inet 0.0.0.0 netmask 0
ether 0:21:28:fa:8c:f8
lo0: flags=2002000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv6,VIRTUAL> mtu 8252 index 1
inet6 ::1/128
net18: flags=20002000840<RUNNING,MULTICAST,IPv6> mtu 1500 index 2
inet6 ::/0
ether 2:21:28:57:47:17
aggrvlan1: flags=20202000840<RUNNING,MULTICAST,IPv6,CoS> mtu 1500 index 5
inet6 ::/0
ether 0:21:28:fa:8c:f8
aggrvlan2: flags=20202000840<RUNNING,MULTICAST,IPv6,CoS> mtu 1500 index 6
inet6 ::/0
ether 0:21:28:fa:8c:f8

Advertisements

4 thoughts on “Solaris 11 – Creating VLAN Tagging over Link Aggregation”

    1. Hi Jeremy,

      Are you referring to this line? # ipadm create-ip aggrvlan1

      As from the man page;
      Create an IP interface that handles both IPv4 and IPv6
      packets. The address of the IPv4 interface will be set
      to 0.0.0.0 and the address of the IPv6 interface will be
      set to ::.

      To assign an ip address to the aggr, you need to use create-addr instead.

      Hope this helps!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s