How to Enable SR-IOV NIC Virtual Functions on a Kernel Zone With a Single anet
Resource
Example 2-10 Confirming the zonecfg
iov
Value on an anet
The following example shows the iov
value on anet 0
. The value is set to auto
. If set to the default value off
, it would not be displayed.
global$ pfbash zonecfg -z kzone1 zonecfg:kzone1> select anet id=0 zonecfg:kzone1:anet> info anet: lower-link: net1 configure-allowed-address: true iov: auto id: 0
Example 2-11 Configuring SR-IOV and VLAN Tagging on an anet
Resource
The following example shows how to explicitly set a VLAN ID to enable VLAN tagging on an anet
resource, which allows untagged and potentially malicious frames to be dropped.
global$ pfbash zonecfg -z kzone1 zonecfg:kzone1> select anet id=0 zonecfg:kzone1:anet> set iov=auto zonecfg:kzone1:anet> set vlan-id=11 zonecfg:kzone1:anet> end ; exit
For more information about setting VLAN IDs and VLAN tagging, see Configuring Virtual LANs in Kernel Zones.