Scenario 4

< Back | Next>

Scenario:

Your environment is built on vSphere Enterprise, so you cannot use distributed vSwitches. Because it is rather large, you frequently use scripts to perform common administration tasks. You need to create and configure a standard virtual switch using commands.

Requirements:

Perform the following tasks to create and configure a standard vSwitch using vCLI commands:

Environment Information:

Objective: 2.1 Implement and Manage Complex Virtual Networks

Guide Reference(s):

 

Click Here For Solution

 

Solution

esxcli network vswitch standard add v vSwitch3

esxcli network vswitch standard set m 9000 v vSwitch3

esxcli network vswitch standard uplink add --uplink-name=vmnic1 v vSwitch3

esxcli network vswitch standard uplink add --uplink-name=vmnic3 -v vSwitch3

esxcli network vswitch standard portgroup add -p Test50 -v vSwitch3

esxcli network vswitch standard portgroup add -p Test51 -v vSwitch3

esxcli network vswitch standard portgroup set -p Test50 --vlan-id 50

esxcli network vswitch standard portgroup set -p Test51 --vlan-id 51

esxcli network ip interface add --interface-name=vmk2 -p Test50

esxcli network ip interface ipv4 set --interface-name=vmk2 ipv4=192.168.1.199 --netmask=255.255.255.0 type=static