Find the answer to your Linux question:
Results 1 to 2 of 2
Hello all, I am sort of a linux noob so forgive me if I dont ask this right. I have an Ubuntu server (12.10) on one of my boxes. It ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Nov 2012
    Posts
    1

    Help with virtual server


    Hello all, I am sort of a linux noob so forgive me if I dont ask this right. I have an Ubuntu server (12.10) on one of my boxes. It is setup with a static ip address. I installed KVM and I want to create a virtual Ubuntu server in that same machine. I am following a guide and I am at the KVM setup part at havetheknowhow.com/Configure-the-server/Network-Bridge.html How to configure a network bridge when using KVM (Kernel-based Virtual Machine) on Ubuntu Server[/url]

    It was going fine until I got to the part about configuring my /etc/network/interfaces file. I have a static ip setup on my physical ethernet (p10p1) and this guide told me to do that. Now at this point his physical nic (eth0) is now set to "manual" and the new br0 adapter is set to static with all the address info. My question is should I just add the br0 part below my static p10p1? or should I delete the lines for it and create the br0 like he has?

    Again Im sorry if I am not making sense.

    here is my file...

    # The loopback network interface
    auto lo
    iface lo inet loopback

    # The primary network interface
    auto p10p1
    iface p10p1 inet static
    address 10.0.0.5
    netmask 255.255.255.0
    network 10.0.0.0
    gateway 10.0.0.1
    dns-nameservers 10.0.0.1
    dns-domain bradtraversy.me

  2. #2
    Just Joined!
    Join Date
    Sep 2007
    Location
    Silver Spring, MD
    Posts
    95

    Network configuration

    Ok,

    I read the article - havetheknowhow.com/Configure-the-server/Network-Bridge.html How to configure a network bridge when using KVM (Kernel-based Virtual Machine) on Ubuntu Server[/url]

    One thing he left out was you need to download the software to make the bridge connection work.

    I would recommend configuring the bridge using br0 because you can troubleshoot it better if you are new to the configuration process.

    But one thing I have to ask, did you run the following command to download the bridge software:

    This code validates if you have bridge-utils software installed
    Code:
    sudo dpkg -l bridge-utils
    The second part installs bridge-utils if you don't have it installed already, dependencies will be installed as well (or it will ask you first).
    Code:
    sudo apt-get install bridge-utils

    Configuring the network, run the following command to configure your network:

    Check to see if installed, if not installed, then install it
    Code:
    dpkg -l nano
    sudo apt-get install nano # This will install it
    Next run this command to configure the network interfaces on your machine:
    [code]
    sudo nano /etc/network/interfaces
    Code:
    This is what it should look like, if it does not, then make the changes and restart your network interfaces:
    
    /etc/network/interfaces file contents
    # The loopback network interface
    auto lo
    iface lo inet loopback
    
    # The primary network interface
    auto eth0
    iface eth0 inet manual
    
    auto br0
    iface br0 inet static
            address 10.0.0.5
            broadcast 10.0.0.255
            netmask 255.255.255.0
            gateway 10.0.0.1
            dns-nameservers 10.0.0.1
            dns-domain bradtraversy.me
            bridge_ports eth0
            bridge_fd 0
            bridge_hello 2
            bridge_maxage 12
            bridge_stp off
            bridge_maxwait 0
    Read this article for reference - https://help.ubuntu.com/community/KVM/Networking


    Then run the following to restart the network interfaces:
    Code:
    sudo /etc/init.d/networking restart
    Valid the interface is up and running:
    Code:
    ifconfig -a
    ping google.com
    Let me know if that works for you.

    Todd

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •