Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Bridge eth1 proxmox on debian
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

Bridge eth1 proxmox on debian

As I know, default interfaces debian:

auto lo

iface lo inet loopback

auto eth0

iface eth0 inet static

address xxx.xxx.xxx.111

netmask 255.255.255.220

gateway xxx.xxx.xxx.110

For bridge network proxmox, done by change like this

auto lo

iface lo inet loopback

iface eth0 inet manual

auto vmbr0

iface vmbr0 inet static

address xxx.xxx.xxx.111

netmask 255.255.255.220

gateway xxx.xxx.xxx.110

bridge_ports eth0

bridge_stp off

bridge_fd 0

But how to bridge if the interfaces like this?

auto lo

iface lo inet loopback

iface eth1 inet static

address xxx.xxx.xxx.111

netmask 255.255.255.220

gateway xxx.xxx.xxx.110

Comments

  • ethX is more or less only a descriptor. as is vmbrX for the bridge devices...

    supposed this:

    xphones said:

    auto lo

    iface lo inet loopback

    iface eth1 inet static

    address xxx.xxx.xxx.111

    netmask 255.255.255.220

    gateway xxx.xxx.xxx.110

    is all you've got in you /etc/network/interfaces then changing it much like the one you posted above should work:

    xphones said:

    auto lo

    iface lo inet loopback

    iface eth1 inet manual

    auto vmbr0

    iface vmbr0 inet static

    address xxx.xxx.xxx.111

    netmask 255.255.255.220

    gateway xxx.xxx.xxx.110

    bridge_ports eth1

    bridge_stp off

    bridge_fd 0

    if there are multiple interfaces and bridges you for sure also have to change vmbr0 to any other number...

    Thanked by 1xphones
  • auto lo
    
    iface lo inet loopback
    
    iface eth1 inet manual
    
    auto vmbr0
    
    iface vmbr0 inet static
    
    address xxx.xxx.xxx.111
    
    netmask 255.255.255.220
    
    gateway xxx.xxx.xxx.110
    
    bridge_ports eth1
    
    bridge_stp off
    
    bridge_fd 0
    

    Already tried. server/network error. unreachable :)

  • Replace with your specific addressing info. In /etc/network/interfaces

    auto lo iface lo inet loopback allow-hotplug eth0 iface eth0 inet manual auto br0 iface br0 inet static bridge_ports eth0 bridge_stp off address 192.0.2.2 netmask 255.255.255.0 network 192.0.2.0 broadcast 192.0.2.255 gateway 192.0.2.1 dns-nameservers 8.8.8.8 8.8.4.4 iface br0 inet6 static bridge_ports eth0 bridge_stp off pre-up modprobe ipv6 address 2001:DB8::2 netmask 64 gateway 2001:DB8::1

    In /etc/sysctl.conf

    net.bridge.bridge-nf-call-arptables = 0 net.bridge.bridge-nf-call-iptables = 0 net.bridge.bridge-nf-call-ip6tables = 0

    In /etc/rc.local

    /sbin/sysctl -p /etc/sysctl.conf
    Thanked by 1xphones
  • Why not just edit it in the UI, or is this before you can get network up?

    Also in Proxmox you usually put the IP on the bridge interface and not the eth interface.

    Thanked by 1xphones
  • @xphones said:

    auto lo
    
    iface lo inet loopback
    
    iface eth1 inet manual
    
    auto vmbr0
    
    iface vmbr0 inet static
    
    address xxx.xxx.xxx.111
    
    netmask 255.255.255.220
    
    gateway xxx.xxx.xxx.110
    
    bridge_ports eth1
    
    bridge_stp off
    
    bridge_fd 0
    

    Already tried. server/network error. unreachable :)

    Then you most probably only told part of the story or posted half of your config. Why it is eth1 in the first place and what happened to eth0 after all? Please post full output of ifconfig from the hostnode in workung state/before changing. Did you issue a full reboot?

    Thanked by 1xphones
  • Problem solved a few minute ago :D
    I put this config and now working perfect :)

    _ auto lo vmbr0

    iface lo inet loopback

    iface eth0 inet manual

    iface eth1 inet manual

    # Bridge setup

    iface vmbr0 inet static

    address 192.168.1.10

    netmask 255.255.255.xxx

    gateway 192.168.1.9

    broadcast 192.168.1.15

    network 192.168.1.8

    bridge_ports eth0 eth1_

    Ref: https://wiki.debian.org/BridgeNetworkConnections

    Thanks for all... many helpfull

Sign In or Register to comment.