L2 Cache

Behold the power of |!

User Tools

Site Tools


snipets:solaris:net-vnic

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
snipets:solaris:net-vnic [2012/09/17 11:36]
sjorge created
snipets:solaris:net-vnic [2014/12/25 22:03] (current)
sjorge [Managing a vnic]
Line 1: Line 1:
 ====== VNIC's and vlanning ====== ====== VNIC's and vlanning ======
 +===== Introduction =====
 +I know you can do vlanning without using a vnic, my personal preferences goes to vnics for a few reason. Mostly because they have there own mac address. And to simplify my interface manangement. ​
 +
 +Bellow you'll find some quick and dirty examples.
 +
 +===== Creating a vnic =====
 +<​code>​
 +dladm create-vnic -l aggr0 host0
 +ipadm create-if host0
 +</​code>​
 +
 +The above example will create a vnic named //host0// on a link aggregation called //aggr0//, ofcourse you can create vnics on normal interfaces or even on etherstubs.
 +
 +**You can drop the ipadm command if you are planning on using the vnic in a zone or for kvm.**
 +
 +===== Creating a vnic with a vlan tag =====
 +<​code>​
 +dladm create-vnic -l trunk0 -v 300 vm0
 +ipadm create-if vm0
 +</​code>​
 +
 +Same as above but this time we are using a //trunk0// in my case this is an aggr that contains tagged traffic for VLAN 100,200 and 300. By adding the ''​-v''​ option followed by the vlan-tag all the traffic will be tagged before it is send along to the trunk.
 +
 +===== Managing a vnic =====
 +Some quick references to show all vnics and how to remove them.
 +
 +**Showing the configure vnics:**
 +<​code>​dladm show-vnic</​code>​
 +
 +**Removing a vnic:**
 +<​code>​dladm delete-vnic vm0</​code>​
 +
 +**Configure additional MACs:**\\
 +:!: you need to add all macs of zones if you are running smartos in qemu for example
 +<​code>​dladm set-linkprop -p secondary-macs=42:​8e:​a5:​23:​0e:​5b vm0</​code>​
 +====== Link Protection ======
 +{{page>​snipets:​solaris:​net-vnic-protection#​quick_reference}}
 +{{page>​snipets:​solaris:​net-vnic-protection#​properties}}
 +
 +[[snipets:​solaris:​net-vnic-protection#​examples|Examples]]
  
  
snipets/solaris/net-vnic.1347874577.txt.gz · Last modified: 2014/10/09 22:02 (external edit)