Appendix D: Useful VC CLI Command sets 228
Server Profiles
#Create Server Profile App-1, apply this profile to Server Slot 1 and configure NIC 1 to Multiple
Networks VLAN_10 and VLAN_20
add profile App-1 -nodefaultenetconn
add enet-connection App-1 pxe=Enabled
add enet-connection App-1 pxe=Disabled
add server-port-map App-1:1 VLAN_10 VLanId=10
add server-port-map App-1:1 VLAN_20 VLanId=20
assign profile App-1 enc0:1
# As an alternative when connection to Multiple Networks, if you want ALL networks
# configured on a specific Shared Uplink Set to be presented to a server NIC, ensure that
# the “Force VLAN mappings as Shared Uplink Set” check box is enabled.
# Shared Uplink Set, use the following commands to do so
# This will set the Force same VLAN mappings as Shared Uplink Sets check box to enabled
# Result is that only VLANs from this shared uplink will be available to this NIC
add server-port-map App-1:1 VLAN_10 Uplinkset=Prod-Net
add server-port-map App-1:1 VLAN_20 Uplinkset=Prod-Net
# Create Server Profile App-1 – Both NICs are configured on network VLAN_20
add profile App-1 -nodefaultenetconn
add enet-connection App-1 pxe=Enabled
add enet-connection App-1 pxe=Disabled
set enet-connection App-1 1 Network=VLAN_20
set enet-connection App-1 2 Network=VLAN_20
assign profile App-1 enc0:2
# Create Server Profile ESX-1 – Both NICs are configured on Both networks VLAN_10 and VLAN_20
add profile ESX-1 -nodefaultenetconn
add enet-connection ESX-1 pxe=Enabled
add enet-connection ESX-1 pxe=Disabled
add server-port-map ESX-1:1 VLAN_10 VLanId=10
add server-port-map ESX-1:1 VLAN_20 VLanId=20
add server-port-map ESX-1:2 VLAN_10 VLanId=10
add server-port-map ESX-1:2 VLAN_20 VLanId=20
assign profile ESX-1 enc0:1