Management of distributed switch CLI?

I have a DvSwitch.

I want to add NEW groups of ports,

But I don't want to use vCenter.

I have a lot to add, to almost 800

of the 800, 600 would be port groups with vlan simple no markings...

the rest 200 would be with 21 .1q VLAN per port group...

I want to script it. then place in a ssh/shell window

can it be done?

Hello

You can use the powercli New-VDPortgroup command to create groups of ports on the distributed virtual switches. You must have installed for this powercli.

Try the following command "Get-VDSwitch-name 'MyVDSwitch' |" New-VDPortgroup-name of the "MyVDPortGroup" - NumPorts 8 - VLanId 4 ".

You can see the following link for more details. https://pubs.VMware.com/vSphere-51/index.jsp?topic=%2Fcom.VMware.PowerCLI.cmdletref.doc%2FNew-VDPortgroup.html

Thank you

Arun

Tags: VMware

Similar Questions

  • Switch std to distributed switch migration.

    I have 2 Dell T710 with 6 NIC cards.

    I configured on the 4 standard vSwitches.  Each standard vSwitch is connected to a physical network adapter card.

    I have a vSwitch for manage management, one for vMotion for iSCSI and one for traffic from the virtual machine.

    The reason I set up is to put the vMotion, iSCSI on a different NETWORK card and so another port on the physical port in order to get the maximum flow.

    Now, when I tried to configure a switch to vDistributed.  I was reading this document from vmware (http://www.vmware.com/files/pdf/vsphere-vnetwork-ds-migration-configuration-wp.pdf) and there seems to be all the VLAN based.  In the vDistributed switch, I create the port group, and then associate the group the dvUplink ports and the dvUplink will map to the physical NETWORK adapter on the host.

    I don't seem to find an option to specify the Group of ports on the dvPortGroup if East of vMotion, management and/or iSCSI traffic.

    I'm missing something.

    Can someone tell me some good practices of switch vDistributed?

    Thanks for the information and have a good year.

    Anthony.

    ATC wrote:

    I don't seem to find an option to specify the Group of ports on the dvPortGroup if East of vMotion, management and/or iSCSI traffic.

    I'm missing something.

    You will need to go to the host tab configuration, management network, distributed switch - then "virtual cards" - the Vmkernel ports for the distributed switches.

  • Management on a distributed switch network

    Hey guys,.

    I have a noob question - is there a problem given the management network for a distributed switch?
    Someone has said that if I lose the vCenter for some reason, I won't be able to connect to hosts. It seems logical, but I'm not sure that's true.


    Thank you!

    vCenter server unavailability will not stop manage you your ESXi host directly if you have migrated vmk management service VDS.

    worst case, you have an option under Network Restore Options in DCUI from host to migrate vmk management back to vs.

  • How to remove ESXi host of Distributed Switch

    3 Cluster DRS - 1 x physical, 2 nested nodes in a LAB environment

    I need to downgrade a 6.0 U2 ESXi host and replace it (from ESXi nested in Physics). I am trying to remove the host from a distributed switch, but it seems that I can't do that until I remove it from the Distributed Switch. I can't remove the VMkernel group management ports that prevents me to remove the host from the Distributed Switch. Any suggestions? I guess that I need that migrate to a Standard switch first?

    I am connected to the ESXi host through vSphere Client, migrated the group management to a Standard switch ports, then I was able to clear the host of the distributed switch. I could then remove the host from the Cluster.

  • Distributed Switch vs switch Standard

    Hey all,.

    I was wondering if someone could answer some questions for me on distributed switches. I've worked with vmware for a few years now, but believe it or not I've never configured a distributed switch. The environment I work in always used standard switch, and when you're dealing with people who have the mentality of "if it ain't broke...". ', it is easy to become complacent. Everything in my environment is 5.1 incidentally.

    I read various articles on capacity now, but I don't have a test environment to break, so I have to pay attention to any changes I make. I thought it was better to ask those who are familiar with him before deciding on future changes.

    -What I lose any host on network management (what I used with switches std) as soon as I create a distributed switch?

    -Distributed is vCenter wide switching, or can I create several switches distributed by cluster, or only with certain subnets included?

    -What happens when I add a new host in a cluster with a distributed switch? It is automatically get set up with the distributed Switch networking capabilities?

    -Are there pitfalls or problems I should be aware, either when creating a distributed switch or in the day-to-day management of the/them?

    -What is the best thing that I win? Worse, I've lost?

    Thanks for your comments.

    Hello

    To answer your question:

    (1) so you don't lose everything as soon as you create the switch. You can create a vDS (assuming that licenses) at any time and configure / play with him. Until connect you hosts and uplinks, so it is a pretty useless component in vCenter.

    (2) a vDS is wide vcenter. However, you can create them individually if oyu want. That is to say - one for the traffic of comments, one for management, one for storage.  You can also have them by cluster if you REALLY want to and just add the hosts in this cluster in particular switch that you built. But reducing to zero the point of them a bit.

    (3) when you add the host, you will be asked what you want to use, if you want to migrate all the standard switch VMK interfaces and if you want to migrate VMs. ACE as soon as this host and its specific uplinks are on the switch then the host will be able to use the vDS for everything you have set for rising connections.

    (4) didn't really create them. Some people are a little cautious host management of investment (usually vmk0) on them, some people are not. In general, the rule is that with a vDS you can not manage it if vCenter is down. But with a vSwitch you can connect to the host directly and set it up in this way individually. There are traps in this respect of binding of static ports on the port groups, but it can be bypassed by the binding of ports muralism on the management ports group. Chris Wahl explains better than I've rambled

    (5) the best thing you can is to have a centralized management and create groups of ports. You have a new VLAN? Need a new group of port? Simply create once for the vDS and it applies to all guests! In addition, you also get control network IO, where you can assign actions to specific types of traffic and other goodies that are not available on standard switches. I would say that you lose much, vDS if you have the license and and a fairly large area are the way forward management. Trying to think really inconvenience but I can't!

    Happy to help you further!

  • Configure VTEP VXLAN on distributed switch?

    Hello everyone

    I've found this discussion: How to test VXLAN

    But I'm still not sure.

    I environment vSphere 6 with a 3-node cluster and server vCenter (trial mode).

    I would just try the VXLAN by adding a VTEP to a distributed switch.

    For each of the nodes would be a VTEP.

    I really should he use Manager of NSX and NSX controller etc. to achieve this, or is there the possibility to simply add a VTEP to a distributed switch?

    KR & thanks in advance!

    Lukas

    You can use the last Director 5.5.3 vCloud and vCloud network and security 5.5.4, they are compatible and supported for ESXi/vCenter 6.0.

    See VMware product interoperability Matrices or documentation of the respective product for more details.

  • vSphere Distributed Switch 5.5 traffic filtering and tagging

    Someone had a chance to create a script to update the traffic filtering and marking of area of a group of ports on a vSphere 5.5 Distributed Switch? The settings are only exposed in the web client for Onyx is not an option.

    I need to create a rule with the values below.

    Traffic Filterig and marking:

    Set State enabled

    New rule of network traffic

    Name: name of the traffic rule

    Action: Tag

    CoS value: tag value Update CoS: 4

    Qualifiers of traffic:

    Traffic management: evacuation

    New qualifying traffic system: vMotion

    This is as much as I can get.

    $VDSPortGroup = get-VDSwitch Test - dvSwitch | Get-VDPortGroup Test-PG

    $Spec = new-Object VMware.Vim.DVPortgroupConfigSpec

    $Spec.configVersion = $VDSPortGroup.ExtensionData.Config.ConfigVersion

    $Spec.defaultPortConfig = new-Object VMware.Vim.VMwareDVSPortSetting

    $Spec.defaultPortConfig.FilterPolicy = new-Object VMware.Vim.DvsFilterPolicy

    Sorry, it took a little longer than expected.

    Try like this

    $dvSwName = "dvSw1".

    $dvPgNames = "dvPg1".

    $dvSw = get-VDSwitch-name $dvSwName

    # Activate LBT

    foreach ($pg in (Get-View-Id $dvSw.ExtensionData.Portgroup |)) Where {$dvPgNames - contains $_.} {Name}))

    $spec = new-Object VMware.Vim.DVPortgroupConfigSpec

    $spec. ConfigVersion = $pg. Config.ConfigVersion

    $spec. DefaultPortConfig = New-Object VMware.Vim.VMwareDVSPortSetting

    $spec. DefaultPortConfig.FilterPolicy = New-Object VMware.Vim.DvsFilterPolicy

    $filter = new-Object VMware.Vim.DvsTrafficFilterConfig

    $filter. Nom_agent = "dvfilter-credits-vmware.

    $ruleSet = new-Object VMware.Vim.DvsTrafficRuleset

    $ruleSet.Enabled = $true

    $rule = new-Object VMware.Vim.DvsTrafficRule

    $rule. Description = "name of traffic rule".

    $rule. Direction = "outgoingPackets."

    $action = new-Object VMware.Vim.DvsUpdateTagNetworkRuleAction

    $action. QosTag = 4

    $rule. Action += $action

    $ruleSet.Rules += $rule

    $filter. TrafficRuleSet += $ruleSet

    $spec. DefaultPortConfig.FilterPolicy.FilterConfig += $filter

    $pg. ReconfigureDVPortgroup ($spec)

    }

  • New to distributed switch necessary Clarification.

    Hi all

    I need some clarification.

    Have created a distributed switch, in my lab, which was created without any problem.

    I have 2 hosts in my lab host A and host B.

    There is no vmkernel ports to migrate, so away I went to Setup - network - Distributed Switch - manage e-cards and created a host A vmkernel port.

    But when I goto host B Configuration - Networking - Distributed Switch, I am not able to see the vmkernel port I created.

    I need to create the port on host B manually vmkernel group? I was under the impression, the port of core, I created on host A would be automatically visible to host B?

    That's where I need some clarification, so that, from now on, I am being harassed by this.

    Any clarification would be appreciated.

    Thanks Andrew for the clarification, much appreciated and its clear now.

    Port Comon group

    Core groups (e-cards) must be configured individually on each server.

    Do not crack.

    Thank you once more for confirmation

  • Question about distributed switching

    Currently, we run a mix of ESX 4.0 host U2 and ESXi 5 U2.  vCenter is version 5.  Most host NIC are 1 GB.  vCenter virtual switches are configured as standard.  We must

    reduce the number of ports Cisco asked our network group where they are at a premium.  Some tests were conducted using the VIRTUAL local area network ports.  Distributed switching

    more that simply centralize network management in vCenter?  It does not reduce the number of NIC host ports or each host still must have his own physical

    connections to networks, he needs to talk about?  What are others doing?  Thank you.

    IT does not reduce the number of physical ports on the host - hosts still needs physical connections to the different networks / VLAN.

  • Need help distributed switch

    My lab at home is built entirely in ESXi 5. In other words: a physical host with two VirtualHost ESXi ESXi 5 remaining with at. My data store is a race off the coast of SAN virtualized FreeNas.

    The question that I meet is when I create a Virtual Switch distributed and the establishment is looking for a physical network card. Is there a way to get around this? I could create a vDS to a virtual NETWORK adapter? If so, how?

    Your help wil greatly appreciated.

    The wizard could cause the interruption very you speak if she were to offer this option ;-)

    In avoiding or minimizing disturbance is a challenge of the migration of the distributed switch standard, in a lab like this is less of a concern, of course, imagine if it were a production environment! If you were to follow an approach to the real world, you would look to have all your switches using grouping of NETWORK cards in a first time, the process would be:

    0 migrate virtual machines on a host

    1. remove 1 NETWORK card in the standard switch NIC team

    2. create the distributed switch and add the host by using the NETWORK card removed in step 1 as the first uplink

    3 migrate or create the ports for the distributed switch group

    4. remove the remaining standard switch NETWORK card and add it to the distributed switch

    5. proceed to the next host

    I would complement the management process of network cards on a per host basis, of course, you just create a single switch distributed in total.

    Who is?

  • vNetwork Distributed Switch - School me please!

    Can someone give me a description as to what is happening with a configuration switch vNetwork?  My areas of interest are:

    What happens when I add an ESXi host management network interface active to a distributed switch?

    How are the hosts of ESXi with several NIC supposed to be configured on the physical network?

    Should I have several ESXi host WHAT NIC connected to VLAN separate physics?

    When and how to use groups of dvPort?

    What is the best practice to deploy a vNetwork Distributed Switch in a production environment existing?

    What IP addresses should the virtual machine which will connect to the switch vNetwork have?  Real routable IP or a private beach that lives on the only host of ESXi?

    I have ESXi setup guide and understand 'how' do these things but don't understand what happens when treating several VLAN virtual physics and ESXi hosts being not connected to all local networks.  I tried to set this up a while ago and had a lot of questions while losing connectivity to multiple hosts ESXi and all virtual machines running on the hosts on the network.  I don't want to repeat this mistake!

    You don't have to use the junction of your physical switch ports, it is usually best if you do. When you use the junction ports and assign several VLANS to that port, that means that the virtual switch (standard or distributed) can then talk to the physical switch using assigned VLANs. Which means that a single physical NETWORK card within an ESX host can talk to several VLANs, if you do not use trunking then you can only assign a VLAN by ESX NIC that is not very effective.

    Most of the vSwitches converses with several VLANs, but will have only one or two uplinks, in this scenario, it is almost always necessary to use port trunking.

    Does that answer your question?

  • VSS migration to virtual Distributed Switch configuration

    Hi all

    I am trying to wrap my brain around that and just run into a few problems actually make things work. Please bear with me, I will try and describe the environment that I have and what I'm trying to building with like jargin little I can.

    My current vmware environment consists of 3 hosts vsphere 4.x and about 6 different subnets. My primary host vSphere is home to the largest part of the virtual machine and manages 5 different subnets connected to each of 5 virtual switches separated with 1 assigned to each NETWORK adapter. Also, there is a switch of kernel VM with a connection to my NetApp iSCSI. The other vSphere hosts are simple enough, the two are connected to subnet 1 with a virtual switch for it and a switch of kernel VM with a connection to the NetApp iSCSI.

    Each subnet in my lab is managed/break through the VLANS on Cisco devices, so I saw that it had to assign any settings VLAN since the power of VMware.

    If you refer to the VMWare vNetwork Distributed Switch: Migration and vmware Configuration guide, I am trying to migrate a seup similar to this:

    vmware_multiple_vds.JPG

    However, I'm running issues when you try to get the int hosts a vDS configuration. I could create a vDS for my root subnet, add one of my hosts vSPhere and migrate the virtual machine to the new port group in this vDS. The Service console as well as the VMKernel remain virtual switches on the host and I can't understand how these migrate to a vDS host without lose the connection.

    I'm asssuming based on the number of subnets that I manage between hosts, I'll finish with about a 5-switch vritualDistributed for subnets, each with at least 1 card a vSphere host physical NETWORK link up to the appropriate subnet. In addition to this, I'm assumining I'll need to create a vDS for the Service console and VMKernel (iSCIS) traffic. The Service Console are on the same subnet, some VM most residence on that subnet, separate VSS was created on the hosts to manage separate traffic.

    Any help anyone can provide on how to create vDS for SC/vmk traffic and get the associated host migrated to which would be very useful. As I said I was able to create 1 vDS and add a host computer via 1 uplink NIC with the virtual machine, but nothing beyond that seems bad connection.

    Feel you please free to ask for additional details, I know it's a lot and maybe a bit confusing. Thank you.

    -Bryan

    Hello

    If I'm correct, when the host is added the vDS and the creation of the vDS Service Console, I have to select an unused NIC and migrate the SC existing to the new group of port... or should I add a second SC for the VSS by using a NETWORK card available and who migrate to the new vDS?

    Yes, select an unused physical nic so that you have a physical nic connected to the VSS and the other to connect to the uplink of vDS group and migrate the SC. existing if you have several hosts, vMotion all VM and test to see if the migration without distruption, also works to keep details of the ILO ready incase you need to connect to the console of the server.

    This is a very good book white http://www.vmware.com/files/pdf/vsphere-vnetwork-ds-migration-configuration-wp.pdf that provides detailed information about the migration.

    All the best.

    Kind regards
    Arun

    If you have found this or other useful information, please consider awarding points to 'Correct' or 'useful '. Regards, Arun VCP3/4, HPCP, HP UX CSA http://kb.vmware.com/

  • Distributed switches

    Hola amigos tengo una duda con los switches distributed, probably will be una tonteria.

    Exactly, what application practica podemos dar a los switches distributed?

    What el siguiente caso, ellos uno? :

    I have 2 ESX, y cada uno tiene 4 cards of red than configurated siguiente manera in each of ESX:

    • 1 con vSwitch 2 cards, una en Eve y the other campaign Online that offers service of VMotion + Console Service
    • 1 con vSwitch 2 cards, una en watch y Online other than Máquinas Office service offers.

    Ahora tengo the use una tarjeta red necesitat para otros usos, por example para servicio offer an otras s VM. No tengo tarjetas free Red y tampoco tengo € buy nuevas tarjetas para... . ¿Puedo use switches distributed para lo siguiente? :

    Set a switch e between ESX para that use back red tarjetas para VMotion + Console service. In this way, me sobran back red antes tambien antrs tarjetas para VMotion there Console of Service.

    Realmente, asi works ¿esto? Puedo tener back UN ESX red tarjetas para as por ellas pase el trafico of Service Console del donde estan instaladas how ESX + VMotion y también del otro ESX?

    En fin, son dudas existential...

    Kind regards!

    Hola XC:

    Aquí tienes a document than explica vDS http://www.vmware.com/files/pdf/VMware-vNetwork-Distributed-Switch-DS-EN.pdf

    None are known only homogeneizar feature the config between hosts (important in large despligues) sino that also added a mas virtualizacion del chemistry control networking.

    Algo a muy into account when usa is vDS, are as vCenter has to be HIGHLY AVAILABLE. The administration of esta feature is through vCenter, por lo if hace este falla y no is tiene acceso a tampoco el is podrá manage vDS.

    A greeting.

  • VNetwork Distributed Switch virtual cards

    Trying to get my head around e-cards in the distributed switch.

    In standard switch, I understand the hierarchy like this:

    vSwitch (upper level)

    groups (including the kernel) port (2nd level)

    physical cards (identical to "vmnic..") (join vSwitch)

    I do not understand the hierarchy for the distributed switches.  The use of the term virtual card throws me a loop for.  I consult the virtual map of term as something that you "attach" to something (vswitch etc...), not something you add.  For example, when I go in manage e-cards and select migrate existing adapters, I give you the choice of console and vmotion.  I find the console and vmotion as groups of ports and not e-cards.  Any help to understand this would be appreciated.

    Thank you

    From page 36 of the Guide de Configuration ESX (http://www.vmware.com/pdf/vsphere4/r40_u1/vsp_40_u1_esx_server_config.pdf):

    Virtual network cards manage services network host on a vNetwork Distributed Switch.

    You can configure the console service and VMkernel virtual cards for an ESX host by a partner

    vNetwork Distributed Switch or by creating new virtual maps or the migration of existing virtual cards.

    When you migrate a virtual network adapter, you should migrate the service or VMkernel console since a standard vSwitch to a group of ports in the vNetwork Distributed Switch.

    -

  • question of vCenter edition license + distributed switch

    Hello

    I want to clarifiy on vCenter license I have and what is it supposed to cover.

    Background:

    I bought the VI3 VirtualCenter license company a year ago. I upgraded the server vCenter vSphere4 a few weeks ago, and apply the code key that I found in my account on VMware.com. Up to present, so good, but he says my license VI3 VC has been converted with vSphere Standard.

    The ESX servers are 4.0 enterprise.

    -In looking at vsphere_pricing.pdf it seems now I have many features available, they are offered as advanced or Enterprise editions.

    In the table below, I did few features "BOLD" I see clearly available and who are supposed to be higher than the standard packages.

    Thus my confusion is - what license actually did I? Standard, as it says in the vCenter or higher license tab since obviously there are available features, which should not be in the standard?

    vSphere Standard includes:

    • VMware ESXi and VMware ESX (choice of the time of the deployment) 2

    • VMware vStorage VMFS

    • Four-way virtual SMP

    • VMware vCenter Server Agent

    • VMware vStorage API / VMware Consolidated Backup (VCB)

    • VMware vCenter Update Manager

    VMware HA

    • VMware vStorage Thin Provisioning

    vSphere Advanced includes:

    • VMware ESXi and VMware ESX (choice of the time of the deployment)

    • VMware vStorage VMFS

    • Four-way virtual SMP

    • VMware vCenter Server Agent

    • VMware vStorage API / VMware Consolidated Backup (VCB)

    VMware vCenter Update Manager

    VMware High Availability (HA)

    • VMware vStorage Thin Provisioning

    VMware VMotion

    • VMware hot add

    • VMware Fault Tolerance

    • VMware Data Recovery

    • VMware vShield Zones

    vSphere Enterprise includes:

    • VMware ESXi and VMware ESX (choice of the time of the deployment)

    • VMware vStorage VMFS

    • Four-way virtual SMP

    • VMware vCenter Server Agent

    • VMware vStorage API / VCB

    VMware vCenter Update Manager

    * • VMware HA *.

    • VMware vStorage Thin Provisioning

    VMware VMotion

    • VMware hot add

    VMware Fault Tolerance

    • VMware Data Recovery

    • VMware vShield Zones

    * • VMware Storage VMotion *.

    VMware DRS

    • VMware DPM

    vSphere Enterprise Plus includes:

    • VMware ESXi and VMware ESX (choice of the time of the deployment)

    • VMware vStorage VMFS

    • Eight-way virtual SMP

    • VMware vCenter Server Agent

    • VMware vStorage API / VCB

    VMware vCenter Update Manager

    * • VMware HA *.

    VMware vStorage Thin Provisioning

    VMware VMotion

    • VMware hot add

    VMware Fault Tolerance

    • VMware Data Recovery

    • VMware vShield Zones

    VMware Storage VMotion

    VMware DRS

    • VMware DPM

    • VMware vNetwork Distributed Switch

    • VMware Host Profiles

    Now the 2nd question (maybe I should have separated these, but I feel somehow it can be bound to the first)-when I create a distributed switch, the tab "hosts" is empty. I right click and select "add the host to the virtual switch distributed", but even once it gives me a window with no host has chosen.

    Is a licensing issue or config problem?

    If you have company VI3 then he improved to vSphere Enterprise.  And according to the characteristics you describe below, it looks like Enterprise license, that's what is activated in vCenter.  If you click on licenses in vCenter (Home\Administration\Licensing), see your Enterprise vSphere licenses?

    Regarding distributed switches, this option is available in vSphere Enterprise Plus then you will not be able to use. If you need the functionality of Enterprise Plus there is a promotion running until December 15, which allows you to update your enterprise license to Enterprise Plus licenses for a significant discount.  You should talk with your dealer on this subject if you are interested...

Maybe you are looking for