This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
snipets:solaris:net-etherstub [2012/09/21 10:32] sjorge |
snipets:solaris:net-etherstub [2014/10/09 22:02] (current) |
||
---|---|---|---|
Line 4: | Line 4: | ||
Take the following example:\\ | Take the following example:\\ | ||
- | {{ :snipets:solaris:etherstub-example.png?nolink|}} | + | {{ :snipets:solaris:etherstub-example.png?200|}} |
You have: | You have: | ||
* 1 reverse proxy to filter traffic and do loadbalancing | * 1 reverse proxy to filter traffic and do loadbalancing | ||
Line 24: | Line 24: | ||
===== Creating an etherstub ===== | ===== Creating an etherstub ===== | ||
- | TODO | + | <code>dladm create-etherstub vSwitch0</code> |
- | ===== Adding vnics to an etherstub ===== | + | ===== Adding/removing vnics to/from an etherstub ===== |
- | TODO | + | Please see [[snipets:solaris:net-vnic|]], just provide the name of the etherstub instead of the physical interface/aggr/... after the ''-l'' flag. |
- | + | ||
- | ===== Removing vnics from an etherstub ===== | + | |
- | TODO | + | |
===== Displaying all etherstubs ===== | ===== Displaying all etherstubs ===== | ||
- | TODO | + | <code>dladm show-etherstub</code> |
+ | |||
+ | ===== Removing an etherstubs ===== | ||
+ | <code>dladm delete-etherstub vSwitch0</code> | ||
+ | ===== Example ===== | ||
+ | Here is an example for the setup displayed above. This creates the etherstub, 2 vnics for the proxy vm, 1 vnic for each database and application servers. | ||
+ | <code> | ||
+ | dladm create-etherstub vsw0 | ||
+ | dladm create-vnic -l trunk0 vpr0 | ||
+ | dladm create-vnic -l vsw0 vpr1 | ||
+ | dladm create-vnic -l vsw0 zdb0 | ||
+ | dladm create-vnic -l vsw0 zdb1 | ||
+ | dladm create-vnic -l vsw0 zapp0 | ||
+ | dladm create-vnic -l vsw0 zapp1 | ||
+ | dladm set-linkprop -p protection=mac-nospoof vpr0 | ||
+ | dladm set-linkprop -p protection=mac-nospoof vpr1 | ||
+ | dladm set-linkprop -p protection=mac-nospoof zdb0 | ||
+ | dladm set-linkprop -p protection=mac-nospoof zdb1 | ||
+ | dladm set-linkprop -p protection=mac-nospoof zapp0 | ||
+ | dladm set-linkprop -p protection=mac-nospoof zapp1 | ||
+ | </code> |