The documentation set for this product strives to use bias-free language. For the purposes of this documentation set, bias-free is defined as language that does not imply discrimination based on age, disability, gender, racial identity, ethnic identity, sexual orientation, socioeconomic status, and intersectionality. Exceptions may be present in the documentation due to language that is hardcoded in the user interfaces of the product software, language used based on RFP documentation, or language that is used by a referenced third-party product. Learn more about how Cisco is using Inclusive Language.
Default vNIC behavior policy allows you to configure how vNICs are created for a service profile. You can choose to create vNICS manually, or you can create them automatically.
You can configure the default vNIC behavior policy to define how vNICs are created. This can be one of the following:
None— does not create default vNICs for a service profile. All vNICs must be explicitly created.
HW Inherit—If a service profile requires vNICs and none have been explicitly defined, creates the required vNICs based on the adapter installed in the server associated with the service profile.
Note | If you do not specify a default behavior policy for vNICs, HW Inherit is used by default. |
This example shows how to set the default vNIC behavior policy to hw-inherit:
UCSC# connect policy-mgr UCSC(policy-mgr) # scope org / UCSC(policy-mgr)/org # scope vnic-beh-policy UCSC(policy-mgr)/org/vnic-beh-policy # set action hw-inherit UCSC(policy-mgr)/org/vnic-beh-policy* # commit-buffer UCSC(policy-mgr)/org/vnic-beh-policy #
This policy defines how a vNIC on a server connects to the LAN. This policy is also referred to as a vNIC LAN connectivity policy.
does not automatically create a VM-FEX port profile with the correct settings when you create a vNIC template. If you want to create a VM-FEX port profile, you must configure the target of the vNIC template as a VM.
You need to include this policy in a service profile for it to take effect.
Note | If your server has two Emulex or QLogic NICs (Cisco UCS CNA M71KR-E or Cisco UCS CNA M71KR-Q), you must configure vNIC policies for both adapters in your service profile to get a user-defined MAC address for both NICs. If you do not configure policies for both NICs, Windows still detects both of them in the PCI bus. Then because the second eth is not part of your service profile, Windows assigns it a hardware MAC address. If you then move the service profile to a different server, Windows sees additional NICs because one NIC did not have a user-defined MAC address. |
The following example configures a vNIC template:
UCSC# connect policy-mgr UCSC(policy-mgr)# scope org / UCSC(policy-mgr) /org* # create vnic template VnicTempFoo UCSC(policy-mgr) /org/vnic-templ* # set descr "This is a vNIC template example." UCSC(policy-mgr) /org/vnic-templ* # set cdn-name eth0 UCSC(policy-mgr) /org/vnic-templ* # set fabric a UCSC(policy-mgr) /org/vnic-templ* # set mac-pool pool137 UCSC(policy-mgr) /org/vnic-templ* # set mtu 8900 UCSC(policy-mgr) /org/vnic-templ* # set nw-control-policy ncp5 UCSC(policy-mgr) /org/vnic-templ* # set pin-group PinGroup54 UCSC(policy-mgr) /org/vnic-templ* # set qos-policy QosPol5 UCSC(policy-mgr) /org/vnic-templ* # set stats-policy ServStatsPolicy UCSC(policy-mgr) /org/vnic-templ* # set type updating-template UCSC(policy-mgr) /org/vnic-templ* # commit-buffer UCSC(policy-mgr) /org/vnic-templ #
Command or Action | Purpose | |
---|---|---|
Step 1 | UCSC# connect policy-mgr |
Enters policy manager mode. |
Step 2 | UCSC(policy-mgr) # scope org org-name |
Enters organization mode for the specified organization. To enter the root organization mode, enter / as the org-name. |
Step 3 | UCSC(policy-mgr) /org # delete vnic-templ vnic-templ-name |
Deletes the specified vNIC template. |
Step 4 | UCSC(policy-mgr) /org* # commit-buffer |
Commits the transaction to the system configuration. |
The following example deletes the vNIC template named VnicTemp42:
UCSC# connect policy-mgr UCSC(policy-mgr)UCS-A# scope org / UCSC(policy-mgr) /org # delete vnic template VnicTemp42 UCSC(policy-mgr) /org* # commit-buffer UCSC(policy-mgr) /org #