import type { Metadata } from "next" import { Network } from "lucide-react" import CopyableCode from "@/components/CopyableCode" export const metadata: Metadata = { title: "ProxMenux Post-Install: Network Settings", description: "Comprehensive guide to Network Settings in the ProxMenux post-install script for optimizing Proxmox VE network performance and configuration.", openGraph: { title: "ProxMenux Post-Install: Network Settings", description: "Comprehensive guide to Network Settings in the ProxMenux post-install script for optimizing Proxmox VE network performance and configuration.", type: "article", url: "https://macrimi.github.io/ProxMenux/docs/post-install/network", images: [ { url: "https://macrimi.github.io/ProxMenux/network-settings-image.png", width: 1200, height: 630, alt: "ProxMenux Post-Install Network Settings", }, ], }, twitter: { card: "summary_large_image", title: "ProxMenux Post-Install: Network Settings", description: "Comprehensive guide to Network Settings in the ProxMenux post-install script for optimizing Proxmox VE network performance and configuration.", images: ["https://macrimi.github.io/ProxMenux/network-settings-image.png"], }, } function StepNumber({ number }: { number: number }) { return (
{number}
) } export default function NetworkSettingsPage() { return (

Network Settings

The Network Settings category focuses on optimizing network performance and configuration in Proxmox VE. These settings are essential for efficient network operations in virtualized environments where multiple VMs and containers share network resources.

Available Optimizations

Apply Network Optimizations

This setting adjusts various sysctl parameters to enhance network performance, security, and stability.

Why it's beneficial: Improves throughput, reduces latency, and enhances security by fine-tuning kernel network settings. These optimizations are critical in virtualization environments where network efficiency directly impacts VMs and container performance.

This adjustment automates the following commands:

Enable TCP BBR and Fast Open

This optimization enables TCP BBR, Google's congestion control algorithm, and TCP Fast Open.

Why it's beneficial:

These enhancements improve network responsiveness in virtualized environments where efficient communication between systems is critical.

This adjustment automates the following commands:

Force APT to Use IPv4

This setting forces APT (Advanced Package Tool) to use IPv4 exclusively.

Why it's beneficial: Ensures reliable package management operations in environments where IPv6 is misconfigured or causes slow downloads. This is particularly useful in networks where IPv6 connectivity is unstable or unsupported, reducing potential update and repository access issues.

This adjustment automates the following commands:

Install Open vSwitch

This optimization installs Open vSwitch (OVS), a multilayer virtual switch designed for modern virtualized environments. OVS enhances network management by enabling advanced features for virtualized infrastructures.

Why it's beneficial: Open vSwitch provides powerful networking capabilities, including:

  • VLAN Support: Enables segmentation of virtual networks for better security and isolation.
  • Trunking: Allows multiple VLANs on a single physical or virtual interface.
  • Traffic Shaping: Implements bandwidth control and rate limiting per interface or flow.
  • Quality of Service (QoS): Prioritizes network traffic for optimized performance.
  • Integration with SDN (Software Defined Networking): Works seamlessly with OpenFlow for programmable network control.

This adjustment automates the following commands:

Basic Usage: Creating a Virtual Switch

Once installed, Open vSwitch can be used to create virtual network bridges. Below is an example of how to create a virtual switch named br0 and add a network interface to it.

Adding VLANs to Open vSwitch

Open vSwitch allows VLAN tagging to segment network traffic. Below is an example of how to add an interface to a specific VLAN.

Trunking Multiple VLANs

If an interface needs to carry multiple VLANs (trunk mode), use the following command:

Deleting a Bridge or Port

If you need to remove a bridge or a port from Open vSwitch, use these commands:

Open vSwitch enables advanced networking capabilities for virtual environments, allowing greater control over network traffic, security, and performance optimizations.

Optimize Network Interface Settings

This setting adjusts network interface parameters to enhance performance and reliability.

Why it's beneficial: PProper NIC tuning reduces latency, packet loss, and improves stability in environments with high network loads. Adjustments like increasing TX queue length prevent packet drops and enhance network responsiveness, which is essential in virtualized infrastructures with multiple VMs and containers.

This adjustment automates the following commands:

Automatic Application

All of these optimizations are automatically applied when selected in the Network section. This automation ensures that these beneficial settings are applied consistently and correctly, saving time and reducing the potential for human error during manual configuration.

) }