Quantcast
Channel: Ubuntu Forums - Virtualisation
Viewing all articles
Browse latest Browse all 4211

Problems with network bridge settings on Ubuntu 14.04 LTS

$
0
0
I have a dedicated server (hosted with OVH / SyS in their Canada data center with 4 additional static IPs - "FailOverIps") that I'm setting up to run KVM on Ubuntu 14.04 LTS as a virtualization host server with a minimum of two (2) virtual machines (1 as a basic host, 1 as a test host)

I've originally set up virtualization on the host o/s with VirtualBox, but changed my mind and decided to go with KVM. Either way, I did NOT have the virtual machines configured to work over the network bridge - I never got to that point in VirtualBox.

My problem is setting up the network bridge to work with KVM - I've looked over the Ubuntu guides (and several across the web) and I think I've over-adjusted the code required in the "/etc/network/interfaces" file. Instead of showing all the mistakes I've made, I'll post the basic bridge setup I have that works for the server:


Code:

auto lo
iface lo inet loopback

auto br0
iface br0 inet static
        address xxx.xxx.xxx.xxx <--(changed to my dedicated server's IP address)
        netmask 255.255.255.0
        broadcast xxx.xxx.xxx.255 <--(changed to my dedicated server's IP address + "255")
        network xxx.xxx.xxx.0 <--(changed to my dedicated server's IP address +"0")
        gateway xxx.xxx.xxx.254 <--(changed to my dedicated server's IP address + "254")
        bridge_ports eth0
        bridge_fd 9
        bridge_hello 2
        bridge_maxage 12
        bridge_stp off


With the bridge setup above, I can ping the server and it works. It's when I start making adjustments to add in the additional static IPs for any additional virtual machines that I get totally lost. I've read too many different guides and I think I may have "over-coded" the changes to the point that I made it not work. Here's one static format that I've seen:

Code:

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
        address xxx.xxx.xxx.xxx <--(changed to my dedicated server's IP address)
        netmask 255.255.255.0
        broadcast xxx.xxx.xxx.255 <--(changed to my dedicated server's IP address + "255")
        network xxx.xxx.xxx.0 <--(changed to my dedicated server's IP address +"0")
        gateway xxx.xxx.xxx.254 <--(changed to my dedicated server's IP address + "254")
     
      post-up /sbin/ifconfig eth0:0 (FailOverIP-1) netmask 255.255.255.255 broadcast (FailOverIP-1)
      post-down /sbin/ifconfig eth0:0 down

      post-up /sbin/ifconfig eth0:1 (FailOverIP-2) netmask 255.255.255.255 broadcast (FailOverIP-2)
      post-down /sbin/ifconfig eth0:1 down

      post-up /sbin/ifconfig eth0:2 (FailOverIP-3) netmask 255.255.255.255 broadcast (FailOverIP-3)
      post-down /sbin/ifconfig eth0:2 down

      post-up /sbin/ifconfig eth0:3 (FailOverIP-4) netmask 255.255.255.255 broadcast (FailOverIP-4)
      post-down /sbin/ifconfig eth0:3 down


And here's another static format:


Code:

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
        address xxx.xxx.xxx.xxx <--(changed to my dedicated server's IP address)
        netmask 255.255.255.0
        broadcast xxx.xxx.xxx.255 <--(changed to my dedicated server's IP address + "255")
        network xxx.xxx.xxx.0 <--(changed to my dedicated server's IP address +"0")
        gateway xxx.xxx.xxx.254 <--(changed to my dedicated server's IP address + "254")
     
auto eth0:0
iface eth0:0 inet static
      address (FailOverIP-1)
      netmask 255.255.255.255
      broadcast (FailOverIP-1)

auto eth0:1
iface eth0:1 inet static
      address (FailOverIP-2)
      netmask 255.255.255.255
      broadcast (FailOverIP-2)

auto eth0:2
iface eth0:2 inet static
      address (FailOverIP-3)
      netmask 255.255.255.255
      broadcast (FailOverIP-3)

auto eth0:3
iface eth0:3 inet static
      address (FailOverIP-4)
      netmask 255.255.255.255
      broadcast (FailOverIP-4)


I'm unsure how to adjust any of the "static" samples to fit with the network bridge (br0) that currently works. I've experimented a bit, but I cannot ping any of the "FailOverIPs". Any tips or suggestions would help a lot.

Viewing all articles
Browse latest Browse all 4211

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>