VLAN Tagging

From Peter Pap's Technowiki
Revision as of 06:26, 24 April 2012 by Ppapa (talk | contribs) (Created page with "So your network team have created a nice convoluted network for you to install machines on, with multiple VLAN's necessary on one interface. Solaris is quite adept at dealing wi...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

So your network team have created a nice convoluted network for you to install machines on, with multiple VLAN's necessary on one interface. Solaris is quite adept at dealing with this. In this example, we have the VLAN's 234 and 456 that we want to access over the same physical interface, e1000g0.

1. Create entries for the hostname and IP in the /etc/hosts file

 10.1.1.10   myname.234 # VLAN 234
 10.1.2.10   myname.456 # VLAN 456

2. Rename /etc/hostname.e1000g0 to /etc/hostname.e1000g234000 and change the contents to the appropriate hostname from step 1.

This will create a virtual interface on e1000g0 with all traffic tagged for the 234 VLAN.

3. Create /etc/hostname.e1000g456000 and add the appropriate hostname from step 1 to it's contents.

This will create a virtual interface on e1000g0 with all traffic tagged for the 456 VLAN.

4. Reboot the box (or use ifconfig to create and plumb the new interfaces)

5. After a reboot, the output of the dladm show-link command should look something like this:

 e1000g0         type: non-vlan  mtu: 1500       device: e1000g0
 e1000g234000    type: vlan 234  mtu: 1500       device: e1000g0
 e1000g456000    type: vlan 456  mtu: 1500       device: e1000g0

Now you're cooking with gas :-)