`<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Dec 23, 2014 at 10:44 AM, Lauri Tirkkonen <span dir="ltr"><<a href="mailto:lotheac@iki.fi" target="_blank">lotheac@iki.fi</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="">On Tue, Dec 23 2014 19:28:47 +1000, Michael Mounteney wrote:<br>
> That gets it a bit closer but I still need the real interface (e1000g1)<br>
> for vnc and sshing in etc. and I can't give that to the zone<br>
> exclusively.<br>
<br>
</span>You can create a vnic over your physical interface (with dladm(1M)) and<br>
then give that to the zone.<span class=""><font color="#888888"><br></font></span></blockquote><div><br></div><div>my thoghts exactly. This is what I do in such cases:<br><br></div><div>First let's see the real network hardware:<br></div><div><code><pre># dladm show-phys
LINK MEDIA STATE SPEED DUPLEX DEVICE
bge0 Ethernet up 1000 full bge0<br><br></pre></code>
<p>then create a vnic on top of that
</p>
<code><pre># dladm create-vnic -l bge0 vnic1
</pre></code>
<p>check it's there:
</p>
<code><pre># dladm show-vnic
LINK OVER SPEED MACADDRESS MACADDRTYPE VID
vnic1 bge0 1000 2:8:20:ae:f6:c0 random 0
</pre></code>
<p>create a zone and assign it the new vnic:
</p>
<code><pre>global # zonecfg -z sapacc
sapacc: No such zone configured
Use 'create' to begin configuring a new zone.
zonecfg:sapacc> create
zonecfg:sapacc> set zonepath=/export/zones/sapacc
zonecfg:sapacc> set autoboot=false
zonecfg:sapacc> set ip-type=exclusive
zonecfg:sapacc> add net
zonecfg:sapacc:net> set physical=vnic1
zonecfg:sapacc:net> end
zonecfg:sapacc> verify
zonecfg:sapacc> commit
zonecfg:sapacc> exit
</pre></code><br></div><div>And then configure the vnic inside the zone like you would normally<br clear="all"></div></div>--<br><div class="gmail_signature">Groeten,<br>natxo</div>
</div></div>
`