On 9/6/13 10: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.vlan4
> 
> Usually the physical interface I create vnics over is both "plumbed" and
> "up", so...
> 
>   # ifconfig nge1.vlan2 plumb up
>   # ifconfig nge1.vlan4 plumb up
> 
> But 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 install
>   WARNING: 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 boot
>   WARNING: 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 zone
>   zone 'test-zone': failed to add network device: Error 0
>   zoneadm: zone 'test-zone': call to zoneadmd failed
> 
> I'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?

Hey Kent,

In SmartOS we don't bother using create-vlan. If you have a tagged port
say, ixgbe0, and a vlan say 42, all we do is `dladm create-vnic -l
ixgbe0 -v 42 foo0`. That will create a vnic tagged to go over vlan 42.
Not sure if that's exactly what you're looking for, but it might help.

Robert


-------------------------------------------
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

Reply via email to