Labels

Sunday, June 26, 2011

To Create PortGroups for VLAN Networking NIC Team


  •  We have to create a switch, a portgroup for each VLAN, allocate our NIC’s and then set the VLAN ID
             esxcfg-vswitch –a vSwitch2
             esxcfg-vswitch –A accounts vSwitch2
             esxcfg-vswitch –A rnd vSwitch2
             esxcfg-vswitch –A sales vSwitch2
             esxcfg-vswitch –L vmnic1 vSwitch2
             esxcfg-vswitch –L vmnic2 vSwitch2
  •         The next part is to set the VLAN id for each network (account, rnd and sales)

    esxcfg-vswitch –v 10 –p accounts vSwitch2
    esxcfg-vswitch –v 20 –p rnd vSwitch2
    esxcfg-vswitch –v 30 –p sales vSwitch2

    If you run the command esxcfg-vswitch –l  we will see this information
      
    If you wish to see this reflected in the VI Client then type:
    service mgmt-vmware restart
    Note: This is how my switch configuration looks now


No comments:

Post a Comment