Network bridge issues


#1

Hi all,

I’m currently having a few issues with the bridging to allow the network to work on KVM

The config is below for the main ethernet port.

DEVICE=eth1 TYPE=Ethernet UUID=theuuidishere ONBOOT=yes NM_CONTROLLED=yes BOOTPROTO=none HWADDR=thehwaddrishere IPADDR=xxx.xxx.xxx.154 PREFIX=29 GATEWAY=xxx.xxx.xxx.153 DNS1=8.8.8.8 DEFROUTE=yes IPV4_FAILURE_FATAL=yes IPV6INIT=no NAME="System eth1"

eth0 has some weird issues on this server - the bridge config is as below:

DEVICE=br0 TYPE=Bridge BOOTPROTO=static BROADCAST=xxx.xxx.xxx.154 IPADDR=xxx.xxx.xxx.154 PREFIX=29 NETMASK=255.255.255.0 NETWORK=xxx.xxx.xxx.154 ONBOOT=yes

Any ideas, thanks in advance.


#2

I think you can skip the entire eth1-config. All I have on my machine is as follows:

    iface br0 inet static
    address 192.168.24.99
    network 192.168.24.0
    netmask 255.255.255.0
    broadcast 192.168.24.255
    gateway 192.168.24.1
    dns-nameservers 192.168.24.1
    bridge_ports eth0
    bridge_fd 0
    bridge_maxwait 0
    bridge_stp off

Transcribed to your setup this would be something like:

    iface br0 inet static
    address xxx.xxx.xxx.154
    netmask 255.255.255.248
    gateway xxx.xxx.xxx.153
    dns-nameservers 8.8.8.8
    bridge_ports eth1
    bridge_fd 0
    bridge_maxwait 0
    bridge_stp off

Does that help?