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
création d'une carte virtuelle et adressage réseau:
Add-VMNetworkAdapter -Name LAN_DATA1 -ManagementOS -SwitchName LAN_SWITCH PS C:\Windows\system32> Get-NetAdapter Name InterfaceDescription ifIndex Status MacAddress ---- -------------------- ------- ------ ---------- LAN_OSNIC Hyper-V Virtual Ethernet Adapter 12 Up 10-7C-61... Lan_2 Realtek(R) PCI(e) Ethernet Control...#4 11 Up 00-0A-CD... LAN_OSNIC_ISCSI Hyper-V Virtual Ethernet Adapter #2 10 Up E4-FA-C4... LAN_10G ASUS XG-C100F 10G SFP+ Network Adapter 28 Up 10-7C-61... Lan_3 Realtek(R) PCI(e) Ethernet Control...#5 8 Up 00-0A-CD... LAN_iSCSI_10G Marvell AQtion 10Gbit Network Adapter 7 Up E4-FA-C4... vEthernet (LAN_DATA1) Hyper-V Virtual Ethernet Adapter #3 34 Up 00-15-5D... Lan_1 Realtek(R) PCI(e) Ethernet Control...#2 3 Up 30-9C-23... PS C:\Windows\system32> Rename-NetAdapter -Name "vEthernet (LAN_DATA1)" -NewName LAN_DATA1 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