Vmware Portgruppe CLI: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
Zeile 7: Zeile 7:
  
 
<pre>
 
<pre>
 +
# PG-MGMT
 +
 +
esxcli network vswitch standard portgroup add --portgroup-name=PG-MGMT --vswitch-name=vSwitch_Mgmt
 +
esxcli network vswitch standard portgroup set --portgroup-name=PG-MGMT --vlan-id=21
 +
esxcli network vswitch standard portgroup policy failover set --portgroup-name=PG-MGMT --active-uplinks=vmnic1
 +
 
# PG-ISCSI
 
# PG-ISCSI
  

Version vom 30. April 2024, 07:30 Uhr

  • Für das Lab
  • WICHTIG
    • Virtuelle Switche vorher erstellen
    • Portgruppe "PG-MGMT" eigenhändig erstellen
    • Nach ausführen der Befehle die Failover-Reihenfolge auf "PG-Unused" anpassen.


# PG-MGMT

esxcli network vswitch standard portgroup add --portgroup-name=PG-MGMT --vswitch-name=vSwitch_Mgmt
esxcli network vswitch standard portgroup set --portgroup-name=PG-MGMT --vlan-id=21
esxcli network vswitch standard portgroup policy failover set --portgroup-name=PG-MGMT --active-uplinks=vmnic1

# PG-ISCSI

esxcli network vswitch standard portgroup add --portgroup-name=PG-ISCSI --vswitch-name=vSwitch_Mgmt
esxcli network vswitch standard portgroup set --portgroup-name=PG-ISCSI --vlan-id=26
esxcli network vswitch standard portgroup policy failover set --portgroup-name=PG-ISCSI --active-uplinks=vmnic1


# PG-VMOTION

esxcli network vswitch standard portgroup add --portgroup-name=PG-VMOTION --vswitch-name=vSwitch_Mgmt
esxcli network vswitch standard portgroup set --portgroup-name=PG-VMOTION --vlan-id=26
esxcli network vswitch standard portgroup policy failover set --portgroup-name=PG-VMOTION --active-uplinks=vmnic2 --standby-uplinks=vmnic1


# PG-FT

esxcli network vswitch standard portgroup add --portgroup-name=PG-FT --vswitch-name=vSwitch_Mgmt
esxcli network vswitch standard portgroup set --portgroup-name=PG-FT --vlan-id=26
esxcli network vswitch standard portgroup policy failover set --portgroup-name=PG-FT --active-uplinks=vmnic1


# PG-VM-MGMT

esxcli network vswitch standard portgroup add --portgroup-name=PG-VM-MGMT --vswitch-name=vSwitch_Mgmt
esxcli network vswitch standard portgroup set --portgroup-name=PG-VM-MGMT --vlan-id=21
esxcli network vswitch standard portgroup policy failover set --portgroup-name=PG-VM-MGMT --active-uplinks=vmnic1,vmnic2


# PG-VM-SERVER-E-VLAN-260

esxcli network vswitch standard portgroup add --portgroup-name=PG-VM-SERVER-E-VLAN-260 --vswitch-name=vSwitch_Extern
esxcli network vswitch standard portgroup set --portgroup-name=PG-VM-SERVER-E-VLAN-260 --vlan-id=260
esxcli network vswitch standard portgroup policy failover set --portgroup-name=PG-VM-SERVER-E-VLAN-260 --active-uplinks=vmnic3,vmnic4


# PG-VM-CLIENTS-E-VLAN-260

esxcli network vswitch standard portgroup add --portgroup-name=PG-VM-CLIENTS-E-VLAN-260 --vswitch-name=vSwitch_Extern
esxcli network vswitch standard portgroup set --portgroup-name=PG-VM-CLIENTS-E-VLAN-260 --vlan-id=260
esxcli network vswitch standard portgroup policy failover set --portgroup-name=PG-VM-CLIENTS-E-VLAN-260 --active-uplinks=vmnic3,vmnic4


# PG-VM-UNUSED

esxcli network vswitch standard portgroup add --portgroup-name=PG-VM-UNUSED --vswitch-name=vSwitch_Extern
esxcli network vswitch standard portgroup set --portgroup-name=PG-VM-UNUSED --vlan-id=999


# PG-VM-SERVER-I-VLAN-300

esxcli network vswitch standard portgroup add --portgroup-name=PG-VM-SERVER-I-VLAN-300 --vswitch-name=vSwitch_Intern
esxcli network vswitch standard portgroup set --portgroup-name=PG-VM-SERVER-I-VLAN-300 --vlan-id=300


# PG-VM-CLIENTS-I-VLAN-400
esxcli network vswitch standard portgroup add --portgroup-name=PG-VM-CLIENTS-I-VLAN-400 --vswitch-name=vSwitch_Intern
esxcli network vswitch standard portgroup set --portgroup-name=PG-VM-CLIENTS-I-VLAN-400 --vlan-id=400