Maybe I'm missing something and maybe it's different in Illumos, but what about:
dladm create-vnic -l net0 -v 2 nge1.vlan2 (note: that's assuming that net0 is in fact your nge1 interface). I.e. create a vnic not a vlan.I'm also not sure if the dot is allowed in the vnic name, I suspect that it may not be.
I tend to call mine <zonename><vlan>, e.g. gaspra7 Eric On 06/09/2013 18:19, Kent Watsen wrote:
For zones, I've always create vnics over a physical interface. To date, the physical port did not have VLAN tagging. Given my server only has two physical ports and I want to bring in another network, I decided to try to configure VLAN tagging...I shutdown all my zones and deleted all my existing vnics. Then I created two vlans over the physical interface:# dladm create-vlan -l nge1 -v 2 nge1.vlan2 # dladm create-vlan -l nge1 -v 4 nge1.vlan4Usually the physical interface I create vnics over is both "plumbed" and "up", so...# ifconfig nge1.vlan2 plumb up # ifconfig nge1.vlan4 plumb upBut now when I try to create a vnic, passing in the vlan interface, I get this error:# dladm create-vnic -l nge1.vlan2 vnic0 dladm: vnic creation over nge1.vlan2 failed: invalid argument I've also tried to create the zone using the vlan instead of a vnic: # cat test-zone.cfg create -b set zonepath=/zones/test set brand=ipkg set autoboot=false set ip-type=exclusive add net set physical=nge1.vlan4 end # zonecfg -z test-zone -f test-zone.cfg # zoneadm -z test-zone installWARNING: skipping network interface 'nge1.vlan4' which is used in the global zone.It goes on to install the zone, but when I try to boot it, I get: # zoneadm -z test-zone bootWARNING: skipping network interface 'nge1.vlan4' which is used in the global zone. zone 'test-zone': WARNING: skipping network interface 'nge1.vlan4' which is used in the global zonezone 'test-zone': failed to add network device: Error 0 zoneadm: zone 'test-zone': call to zoneadmd failedI've tried bringing the interface down and unplumbing it, but still nothing works...I notice that Solaris 11 has a "modify-vlan" subcommand that is missing in illumos - is this needing to make this work? - is there any other way to have zones over vlans?Any ideas? Thanks, Kent ------------------------------------------- illumos-discuss Archives: https://www.listbox.com/member/archive/182180/=now RSS Feed: https://www.listbox.com/member/archive/rss/182180/23144700-cd186e6bModify Your Subscription: https://www.listbox.com/member/?&Powered by Listbox: http://www.listbox.com
--____
/ . Eric A. Bautsch
/-- __ ___ ______________________________________
/ / / / /
(_____/____(___(__________________/ email: [email protected]
-------------------------------------------
illumos-discuss
Archives: https://www.listbox.com/member/archive/182180/=now
RSS Feed: https://www.listbox.com/member/archive/rss/182180/21175430-2e6923be
Modify Your Subscription:
https://www.listbox.com/member/?member_id=21175430&id_secret=21175430-6a77cda4
Powered by Listbox: http://www.listbox.com
smime.p7s
Description: S/MIME Cryptographic Signature
