Friday, July 23, 2010

VLANs on opensolaris cookbook

I wanted to play about with VLANs on my nge1 interface but there is an extra step required which is different to Solaris 10, as per http://hub.opensolaris.org/bin/view/Community+Group+on/2008120402


So to create an interface with VID 100 on my interface nge1 I did;

# dladm create-vlan -l nge1 -v 100

# dladm show-vlan
LINK VID OVER FLAGS
nge100001 100 nge1 -----

# ifconfig nge100001 plumb up

# ifconfig nge100001 192.168.199.1 netmask 0xffffff00 broadcast 192.168.199.255

# ifconfig nge100001
nge100001: flags=201100843 mtu 1500 index 8
inet 192.168.199.1 netmask ffffff00 broadcast 192.168.199.255
ether 0:1f:c6:e8:6:b0


Sorted!

No comments:

Post a Comment