meta données pour cette page
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| windows:powershell_hyper-v_switchembededteaming [01/01/2025 21:31] – mdl | windows:powershell_hyper-v_switchembededteaming [02/01/2025 18:22] (Version actuelle) – mdl | ||
|---|---|---|---|
| Ligne 15: | Ligne 15: | ||
| </ | </ | ||
| - | * Assignation | + | \\ |
| + | == Modification NIC Teaming == | ||
| + | * ici on enleve les cartes 1GB et on met une seule carte 10GB | ||
| <code powershell> | <code powershell> | ||
| - | Set-VMNetworkAdapterVlan | + | Set-VMSwitchTeam |
| </ | </ | ||
| + | |||
| + | |||
| \\ | \\ | ||
| - | == Modification NIC Teaming | + | == création d'une carte virtuelle et adressage réseau: |
| - | | ||
| <code powershell> | <code powershell> | ||
| - | Set-VMSwitchTeam | + | Add-VMNetworkAdapter |
| + | |||
| + | |||
| + | Get-NetAdapter | ||
| + | |||
| + | Name InterfaceDescription | ||
| + | ---- -------------------- | ||
| + | LAN_OSNIC | ||
| + | Lan_2 | ||
| + | LAN_OSNIC_ISCSI | ||
| + | LAN_10G | ||
| + | Lan_3 | ||
| + | LAN_iSCSI_10G | ||
| + | vEthernet (LAN_DATA1) | ||
| + | Lan_1 | ||
| + | |||
| + | |||
| + | Rename-NetAdapter -Name "vEthernet (LAN_DATA1)" | ||
| + | |||
| + | Get-NetAdapter -Name LAN_DATA1 | New-NetIPAddress -IPAddress 192.168.10.100 | ||
| </ | </ | ||
| - | * Il faut ré appliquer la conf VLAN sur la carte ManagementOS | + | * Assignation |
| + | <code powershell> | ||
| + | Set-VMNetworkAdapterVlan -ManagementOS | ||
| + | </ | ||
| + | |||
| + | * ou trunk | ||
| + | <code powershell> | ||
| + | Set-VMNetworkAdapterVlan -ManagementOS -VMNetworkAdapterName " | ||
| + | </ | ||
| + | |||
| + | \\ | ||
| + | == Désactiver une carte == | ||
| <code powershell> | <code powershell> | ||
| - | Set-VMNetworkAdapterVlan | + | Get-NetAdapter |
| </ | </ | ||