meta données pour cette page
Ceci est une ancienne révision du document !
Switch Embedded Teaming (SET)
- Renommer carte physique
Get-NetAdapter Rename-NetAdapter -Name Ethernet -NewName LAN_10G
- NIC Teaming puis création du switch Hyper-v
get-NetAdapter New-VMSwitch -Name "LAN_SWITCH" -NetAdapterName Lan_2,Lan_3 -AllowManagementOS $true -EnableEmbeddedTeaming $true Disable-NetAdapterBinding -Name Ethernet -ComponentID ms_tcpip6 get-NetAdapter
- Assignation VLAN 5 sur la carte virtuelle OS
Set-VMNetworkAdapterVlan -ManagementOS -VMNetworkAdapterName "LAN_SWITCH" -Access -VlanID 5
Modification NIC Teaming
- ici on enleve les cartes 1GB et on met une seule carte 10GB
Set-VMSwitchTeam -Name "LAN_SWITCH" -NetAdapterName Lan10g
- Il faut ré appliquer la conf VLAN sur la carte ManagementOS
Set-VMNetworkAdapterVlan -ManagementOS -VMNetworkAdapterName "LAN_SWITCH" -Access -VlanID 5
- on créé une carte virtuelle puis on adresse son réseau:
Add-VMNetworkAdapter -Name LAN_DATA1 -ManagementOS -SwitchName LAN_SWITCH Get-NetAdapter -Name LAN_DATA1 | New-NetIPAddress -IPAddress 192.168.10.100 -PrefixLength 24 -DefaultGateway 192.168.10.254
Désactiver une carte
Get-NetAdapter -Name Ethernet0| Disable-NetAdapter