I'm a UNIX Sysadmin, specializing in Solaris and Linux. We should ALL know this stuff, but sometimes a trick or tip slips by, so every time I teach someone a neat trick (or someone teaches me a neat trick) it'll get shared here.

Thursday, May 14, 2009

Random Solaris Tricks: reading tagged 802.1q packets

This works on Solaris 10. Dunno about what other Solaris-es it works on.

If you have an environment where you have various tagged vlan packets, and you want to create subinterfaces that attach to each vlan, you can do that in solaris 10.

For example:
You have three vlans on one port, each tagged differently. In this example, we have vlan 100, 120 and 134.

You configure your interfaces like this:

ifacename = (tag# * 1000) + interface #

So for instance, if you have hme1, you'd configure hme1 3 times:

hme100001
hme120001
hme134001

Each of these three interfaces will be managed the same way solaris interfaces normally are (i.e. each has an entry in /etc/inet/hosts and /etc/inet/ipnodes, and each interface gets its own /etc/hostname.interface file)

(hat tip Jarett)

No comments:

Post a Comment

About Me

My photo
I am currently a Unix Systems Engineer for a cloud-based EMR company. I've been making large, complex systems "go" since 1995. I've worked with Novell and Exchange in the past, and now specialize in Solaris and Linux.