|
|
|
|
Administering Virtual Networks
|
|
VNIC
|
Create
|
dladm create-vnic [-t] [-f] -l link [-R root-dir] [-m value | auto | {factory [-n slot-identifier]} | {vrrp -A {inet | inet6} -V vrid} | {random [-r prefix]}] [-v vlan-id[,pvlan-svid[,pvlan-type]]] [-P pkey] [-p prop=value[,...]] vnic-link
|
# dladm create-vnic -l net0 vnic1
# dladm create-vnic -l net0 -m factory -n 1 hello0
where –n specifies the a factory MAC address slot to be used.
# dladm create-vnic -m vrrp -V 21 -A inet6 -l net0 vnic0
where –A specifies the address family and –V specifies the virtual router ID (VRID) for assigning a virtual MAC address to the VRRP VNIC.
|
Display
|
dladm show-vnic [–P | {–z zone[,..]}] [[–p] –o field[,..]] [–l link] [vnic-link]
|
# dladm show-vnic
|
Modify
|
dladm modify-vnic [–t] [–R root-dir] –l link] [–m value | auto | {factory [–n slot-identifier]} | {vrrp –A {inet | inet6} –V vrid} | {random [–r prefix]}] [–v vlan-id] {vnic-link,[vnic-link ,...] | –L source-link}
|
# dladm modify-vnic -l net1 -m 2:8:20:00:01:02 vnic0
where –m specifies the VNIC's MAC address based on the specified value or keyword.
# dladm modify-vnic -l net1 -L net0
where –l specifies the datalink to which the VNICs need to be moved and –L specifies the source datalink.
|
Delete
|
dladm delete-vnic [-t] [-R root-dir] vnic-link
|
# dladm delete-vnic vnic0
|
VLAN VNIC
|
Create
|
dladm create-vnic -v vlan-id -l link vnic-link
|
# dladm create-vnic -v 101 -l net0 vnic1
|
Modify
|
dladm modify-vnic -v vlan-id -L source-link
|
# dladm modify-vnic -v 123 -L net0
|
PVLAN VNIC
|
Create
|
dladm create-vnic -v vlan-id,pvlan-svid,pvlan-type -l link vnic-link
|
# dladm create-vnic -v 4,110,community -l net1 vnic2
|
VF VNIC
|
Create
|
dladm create-vnic -p iov=value -l link vfvnic-link
|
# dladm create-vnic -p iov=on -l net0 vfvnic1
|
IPoIB VNIC
|
Create
|
dladm create-vnic -l link -P pkey vnic-link
|
# dladm create-vnic -l net4 -P 0xffff ipoib_vnic0
|
Etherstub
|
Create
|
dladm create-etherstub [–t] [–R root-dir] etherstub
|
# dladm create-etherstub etherstub0
|
Display
|
dladm show-etherstub [–Z] [–z zone[,...]] [etherstub ]
|
# dladm show-etherstub
|
Delete
|
dladm delete-etherstub [– t] [–R root-dir] etherstub
|
# dladm delete-etherstub etherstub0
|
VXLAN
|
Create
|
dladm create-vxlan [–t] [–R root-dir] –p vni=vxlan id,addr=ip_address [,prop=value[,...] ] vxlan-link
|
# dladm create-vxlan -p addr=10.10.11.1,vni=10 vxlan1
|
Display
|
dladm show-vxlan [–P] [[–p] –o field[,...]] [vxlan-link]
|
# dladm show-vxlan
|
Delete
|
dladm delete-vxlan [-t] [-R root-dir] vxlan-link
|
# dladm delete-vxlan vxlan1
|
Administering Aggregations
|
|
Trunk aggregation
|
Create
|
dladm create-aggr [-t] [ -R root-dir] -m mode] [-P policy] [ -L lacpmode] [-T time] [-u address] -l link1 [ -l link2...] aggr-link
|
# dladm create-aggr -m trunk -L LACP-mode -l net0 -l net1 aggr0
|
Add links
|
dladm add-aggr -l link1 [-l link2...] aggr-link
|
# dladm add-aggr -l net3 aggr0
|
Remove a link
|
dladm remove-aggr -l link aggr-link
|
# dladm remove-aggr -l net3 aggr0
|
Modify
|
dladm modify-aggr [–t] [–R root-dir] [–m mode] [–P policy] [–L lacpmode] [–T time] [–u address] aggr-link
|
# dladm modify-aggr -L active -T short aggr0
|
Display
|
dladm show-aggr [–PLxZSCv] [[–p] –o field[,...]] [–z zone[,...]] [aggr-link]
|
# dladm show-aggr
|
Delete
|
dladm delete-aggr [-t] [-R root-dir] aggr-link
|
# dladm delete-aggr aggr0
|
DLMP aggregation
|
Create
|
dladm create-aggr -m dlmp -l link1 [-l link2...] aggr-link
|
# dladm create-aggr -m dlmp -l net0 -l net1 -l net2 aggr0
|
Configure probe-based failure detection
|
dladm set-linkprop -p probe-ip=+ aggr
dladm set-linkprop -p probe-ip=[source[,...]]+[target[,...]] aggr
|
# dladm set-linkprop -p probe-ip=+ aggr1
|
Administering VLANs
|
VLAN
|
Create
|
dladm create-vlan [-ft] [-R root-dir] -l ether-link -v vid[,pvlan-svid[,pvlan-type]] [vlan-link]
|
# dladm create-vlan -l net0 -v 123 tech0
|
Display
|
dladm show-vlan [–PZ] [[–p] –o field[,...]] [–z zone[,...]] [vlan-link ]
|
# dladm show-vlan
|
Modify
|
dladm modify-vlan [–t] [–R root-dir] [–l ether-link] [–v vid[,pvlan-svid[,pvlan-type]] [–f]] {vlan-link,[vlan-link,...] | –L source-ether-link}
|
# dladm modify-vlan -v 123 web1
# dladm modify-vlan -l net1 -L net4
# dladm modify-vlan -l net3 vlan1,vlan2,vlan3
|
Delete
|
dladm delete-vlan vlan-link
|
# dladm delete-vlan vlan1
|
PVLAN
|
Create
|
dladm create-vlan -v vlan-id,pvlan-svid,[pvlan-type] [vlan-link]
|
# dladm create-vlan -v 3,100,isolated -l net0 vlan1
# dladm create-vlan -v 3,100 -l net0 vlan1
|
Modify
|
dladm modify-vlan [–t] [–R root-dir] –v vid,pvlan-svid[,pvlan-type] vlan-link
|
# dladm modify-vlan -v 15,103,community vlan1
|
Administering Bridges
|
|
Bridge
|
Create
|
dladm create-bridge [ –P protect] [–R root-dir] [ –p priority] [ –m max-age] [ –h hello-time] [ –d forward-delay] [ –f force-protocol] [–l link...] bridge-name
|
# dladm create-bridge -P stp -d 12 -l net0 -l net1 brooklyn
|
Add links
|
dladm add-bridge [-R root-dir] -l link [-l link...]bridge-name
|
# dladm add-bridge -l net2 brooklyn
|
Modify
|
dladm modify-bridge [ –P protect] [–R root-dir] [ –p priority] [ –m max-age] [ –h hello-time] [ –d forward-delay] [ –f force-protocol] [–l link...]
|
# dladm modify-bridge -P stp brooklyn
|
Display
|
dladm show-bridge [–flt] [–s [–i interval]] [[–p] –o field,...] [bridge-name]
|
# dladm show-bridge
|
Remove links
|
dladm remove-bridge [–R root-dir] –l link [– l link...] bridge-name
|
# dladm remove-bridge -l net0 -l net1 -l net2 charles
|
Delete Bridge
|
dladm delete-bridge [–R root-dir] bridge-name
|
# dladm delete-bridge coronado
|
Setting Link Properties
|
Link Properties
|
Set
|
dladm set-linkprop [–t] [–R root-dir] –p prop=value[,...] link
|
# dladm set-linkprop -p bwshare=40 vnic1
# dladm set-linkprop -p iov=on net0
|
Reset
|
dladm reset-linkprop [–t] [–R root-dir] [–p prop,...] link
|
# dladm reset-linkprop -p stp_priority brooklyn
# dladm reset-linkprop -p protection vnic0
|
Display
|
dladm show-linkprop [–HPZ] [[–c] –o field[,...]][– p prop[,...]] [–z zone[,...]] [link]
|
# dladm show-linkprop -p etsbw-lcl,etsbw-rmt,etsbw-lcl-advice vnic1
|
Administering Physical Links
|
Physical links
|
Display
|
dladm show-phys [-PZ] [-Lmv] [[-p] -o field[,...]] [-H] [-z zone[,...]] [[-D [dcb-feature]] [-lr]] [-G] [phys-link]
|
# dladm show-phys -m net0
where –m specifies the list of factory MAC addresses, their slot identifiers, and their availability.
# dladm show-phys -o LINK,VFS-INUSE
|
Delete
|
dladm delete-phys phys-link
|
# dladm delete-phys mgmt0
|