Vmware Portgruppe CLI: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
| (7 dazwischenliegende Versionen von 2 Benutzern werden nicht angezeigt) | |||
| Zeile 1: | Zeile 1: | ||
*Für das Lab | *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. | ||
<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 --standby-uplinks=vmnic2 | ||
| + | |||
| + | # PG-ISCSI | ||
| + | |||
esxcli network vswitch standard portgroup add --portgroup-name=PG-ISCSI --vswitch-name=vSwitch_Mgmt | 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 set --portgroup-name=PG-ISCSI --vlan-id=26 | ||
| − | esxcli network vswitch standard portgroup policy failover set --portgroup-name=PG-ISCSI --active-uplinks=vmnic1 - | + | |
| + | 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 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 set --portgroup-name=PG-VMOTION --vlan-id=26 | ||
| − | esxcli network vswitch standard portgroup policy failover set --portgroup-name=PG-VMOTION -- | + | |
| + | 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 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 set --portgroup-name=PG-FT --vlan-id=26 | ||
| − | esxcli network vswitch standard portgroup policy failover set --portgroup-name=PG-FT --active-uplinks=vmnic1 -- | + | |
| + | 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 add --portgroup-name=PG-VM-MGMT --vswitch-name=vSwitch_Mgmt | ||
| − | esxcli network vswitch standard portgroup set --portgroup-name=PG-VM-MGMT --vlan-id= | + | |
| − | esxcli network vswitch standard portgroup policy failover set --portgroup-name=PG-VM-MGMT --active-uplinks=vmnic1 -- | + | 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 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 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= | + | |
| + | 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 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 set --portgroup-name=PG-VM-CLIENTS-E-VLAN-260 --vlan-id=260 | ||
| − | |||
| − | esxcli network vswitch standard portgroup | + | esxcli network vswitch standard portgroup policy failover set --portgroup-name=PG-VM-CLIENTS-E-VLAN-260 --active-uplinks=vmnic3,vmnic4 |
| − | esxcli network vswitch standard portgroup | + | |
| − | esxcli network vswitch standard portgroup | + | |
| + | # 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 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 | 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 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 | esxcli network vswitch standard portgroup set --portgroup-name=PG-VM-CLIENTS-I-VLAN-400 --vlan-id=400 | ||
</pre> | </pre> | ||
Aktuelle Version vom 30. April 2024, 07:38 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 --standby-uplinks=vmnic2 # 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