Skip to content

Network Interface & Bridge Change

To change the default bridge in Proxmox, you need to edit the /etc/network/interfaces file on the node you want to change. Here's an example of how to change the default bridge from vmbr0 to vmbr1 or change the physical interface fro eth0 to eth1:

  1. Log in to the node as root.
  2. Open the /etc/network/interfaces file in a text editor, such as nano or vim.
  3. Locate the section that defines the default bridge, which typically looks like this:

Sample Config

#Pyhsical interfaces
iface eth0 inet manual

iface eth1 inet manual

#Bridge interfaces
auto vmbr0
iface vmbr0 inet static
        address 192.168.1.100
        netmask 255.255.255.0
        gateway 192.168.1.1
        bridge_ports eth0
        bridge_stp off
        bridge_fd 0

Change Physical Interface

Change the eth0 to eth1 and update the bridge_ports line to reflect the new eth interface.

1
2
3
4
5
6
7
8
auto vmbr1
iface vmbr1 inet static
        address 192.168.1.100
        netmask 255.255.255.0
        gateway 192.168.1.1
        bridge_ports eth1
        bridge_stp off
        bridge_fd 0

Change Bridge Interface

Change the vmbr0 to vmbr1 and update the bridge_ports(if needed) line to reflect the new bridge interface.

1
2
3
4
5
6
7
8
auto vmbr1
iface vmbr1 inet static
        address 192.168.1.100
        netmask 255.255.255.0
        gateway 192.168.1.1
        bridge_ports eth1
        bridge_stp off
        bridge_fd 0

Post Update

  1. Save the changes to the /etc/network/interfaces file.
  2. Restart the networking service to apply the changes:
    systemctl restart networking
    

You can also restart the node itself for the changes to take affect!

Note: Be careful when editing the /etc/network/interfaces file, as incorrect changes can cause network connectivity issues. It's a good idea to make a backup of the file before making changes.

The content provided is generated with the help of artificial intelligence (AI) and may contain inaccuracies or outdated information due to the limitations of AI. While I strive to review and validate the content, some errors or inaccuracies may still be present in the final output. Please use this content as a general guide only and verify any critical information through reputable sources before relying on it. I appreciate your understanding and feedback in helping us improve the accuracy and quality of our AI-generated content."