Skip to content

Commit

Permalink
Merge pull request #2580 from dkirby-ms/HCIBox_June24
Browse files Browse the repository at this point in the history
HCIBox_June24 -> remove MTU setting and pindown
  • Loading branch information
dkirby-ms authored Jun 14, 2024
2 parents 9b168cb + 9e6bdbb commit 19792e7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
14 changes: 2 additions & 12 deletions azure_jumpstart_hcibox/artifacts/PowerShell/New-HCIBoxCluster.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,7 @@ function Set-NICs {
Get-NetAdapter ((Get-NetAdapterAdvancedProperty | Where-Object {$_.DisplayValue -eq "SDN"}).Name) | Rename-NetAdapter -NewName FABRIC
# Get-Netadapter ((Get-NetAdapterAdvancedProperty | Where-Object {$_.DisplayValue -eq "SDN2"}).Name) | Rename-NetAdapter -NewName FABRIC2

# Enable CredSSP and MTU Settings
# Enable CredSSP Settings
Invoke-Command -ComputerName localhost -Credential $using:Credential -ScriptBlock {
$fqdn = $Using:HCIBoxConfig.SDNDomainFQDN

Expand Down Expand Up @@ -722,11 +722,6 @@ function Set-FabricNetwork {
New-NetIPAddress -IPAddress $internetIP -PrefixLength 24 -InterfaceIndex $internetIndex -DefaultGateway $internetGW -AddressFamily IPv4 | Out-Null
Set-DnsClientServerAddress -InterfaceIndex $internetIndex -ServerAddresses ($HCIBoxConfig.natDNS) | Out-Null

# Enable Large MTU
Write-Host "Configuring MTU on all Adapters"
Get-NetAdapter | Where-Object { $_.Status -eq "Up" -and $_.Name -ne "Ethernet" } | Set-NetAdapterAdvancedProperty -RegistryValue $HCIBoxConfig.SDNLABMTU -RegistryKeyword "*JumboPacket"
Start-Sleep -Seconds 15

# Provision Public and Private VIP Route
New-NetRoute -DestinationPrefix $HCIBoxConfig.PublicVIPSubnet -NextHop $provGW -InterfaceAlias PROVIDER | Out-Null

Expand Down Expand Up @@ -1112,10 +1107,7 @@ function New-RouterVM {
# Add-BgpPeer @params -PassThru
# }

# Enable Large MTU
Write-Host "Configuring MTU on all Adapters"
Get-NetAdapter | Where-Object { $_.Status -eq "Up" } | Set-NetAdapterAdvancedProperty -RegistryValue $HCIBoxConfig.SDNLABMTU -RegistryKeyword "*JumboPacket"
}
}
}
}

Expand Down Expand Up @@ -1196,8 +1188,6 @@ function New-AdminCenterVM {

Write-Host "Rename Network Adapter in $VMName"
Get-NetAdapter | Rename-NetAdapter -NewName Fabric
Write-Host "Configuring MTU on all Adapters"
Get-NetAdapter | Where-Object { $_.Status -eq "Up" } | Set-NetAdapterAdvancedProperty -RegistryValue $HCIBoxConfig.SDNLABMTU -RegistryKeyword "*JumboPacket"

# Set Gateway
$index = (Get-WmiObject Win32_NetworkAdapter | Where-Object { $_.netconnectionid -eq "Fabric" }).InterfaceIndex
Expand Down
2 changes: 1 addition & 1 deletion azure_jumpstart_hcibox/bicep/host/host.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ resource vm 'Microsoft.Compute/virtualMachines@2022-03-01' = {
publisher: 'MicrosoftWindowsServer'
offer: 'WindowsServer'
sku: windowsOSVersion
version: '20348.2322.240207'
version: 'latest'
}
dataDisks: [
{
Expand Down

0 comments on commit 19792e7

Please sign in to comment.