Page 1 of 2 12 LastLast
Results 1 to 10 of 18

Thread: Ubuntu Server 9.10 -- Bond 2 NIC's

  1. #1
    Join Date
    Feb 2008
    Location
    Arizona
    Beans
    65
    Distro
    Ubuntu

    Ubuntu Server 9.10 -- Bond 2 NIC's

    I would like to do a couple of things, I am running a Dell Poweredge 2850 and want to bond the two NIC's. I was looking here to do the bonding. It get's a little more tricky with what I want to do from here, I need to two virtual adapters on top of the bond: one at IP 192.168.56.2 and 192.168.56.3. I am binding SSH to the first IP.

    Is it possible that I do this config over SSH? It may be asking a lot to do this, but since I have SSH already configured to bind to 192.168.56.2, if I put the config together (assuming it is correct), it should work after restarting the networking service. If anyone could shed some ideas on this and how to accomplish this, it would be awesome! Thank you!
    Last edited by dasunsrule32; March 7th, 2010 at 05:31 AM.

  2. #2
    Join Date
    Sep 2008
    Location
    Michigan, USA
    Beans
    193
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Ubuntu Server 9.10 -- Bond 2 NIC's

    Check out my post here...

    http://ubuntuforums.org/showpost.php...93&postcount=3

    Although, your 'interfaces' file would look like this...

    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
    
    # The primary network interface
    auto bond0
    iface bond0 inet static
    address 192.168.56.2
    netmask [SUBNET MASK]
    gateway [DEFAULT ROUTER]
    network [NETWORK ADDRESS]
    broadcast [BROADCAST ADDRESS]
    post-up ifenslave bond0 eth0 eth1
    pre-down ifenslave -d bond0 eth0 eth1
    
    # The secondary network interface
    auto bond0:0
    iface bond0:0 inet static
    address 192.168.56.3
    netmask [SUBNET MASK]
    network [NETWORK ADDRESS]
    broadcast [BROADCAST ADDRESS]
    You can add as many secondaries as you need...

    bond0:1
    bond0:2
    bond0:3
    etc...

  3. #3
    Join Date
    Feb 2008
    Location
    Arizona
    Beans
    65
    Distro
    Ubuntu

    Re: Ubuntu Server 9.10 -- Bond 2 NIC's

    Thanks, I will take a look at this later in the week. I will let you know how it goes.

  4. #4
    Join Date
    Apr 2007
    Location
    An Aperture Science Lab
    Beans
    1,287

    Re: Ubuntu Server 9.10 -- Bond 2 NIC's

    I run a bonded setup just like this. It works well with the method outlined by KiLaHuRtZ.
    I reject your reality and substitute my own.

  5. #5
    Join Date
    Feb 2008
    Location
    Arizona
    Beans
    65
    Distro
    Ubuntu

    Re: Ubuntu Server 9.10 -- Bond 2 NIC's

    Quote Originally Posted by NullHead View Post
    I run a bonded setup just like this. It works well with the method outlined by KiLaHuRtZ.
    I am going for it over SSH, I will let you know if I lock myself out or not.

  6. #6
    Join Date
    Feb 2008
    Location
    Arizona
    Beans
    65
    Distro
    Ubuntu

    Re: Ubuntu Server 9.10 -- Bond 2 NIC's

    I want to basically provide more bandwith to the server? Is this going to do what I need? Thanks!

    Is the the correct line for /etc/modules?
    Code:
    bonding mode=active-backup miimon=100 primary=eth0
    Is this the correct setup for my config I will be using below:
    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
    
    # The primary network interface
    auto bond0
    iface bond0 inet static
    address 192.168.56.2
    netmask 255.255.255.0
    gateway 192.168.56.1
    dns-nameservers 192.168.56.89
    post-up ifenslave bond0 eth0 eth1
    pre-down ifenslave -d bond0 eth0 eth1
    
    # The secondary network interface
    auto bond0:0
    iface bond0:0 inet static
    address 192.168.56.3
    netmask 255.255.255.0
    Last edited by dasunsrule32; March 7th, 2010 at 04:05 AM.

  7. #7
    Join Date
    Sep 2008
    Location
    Michigan, USA
    Beans
    193
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Ubuntu Server 9.10 -- Bond 2 NIC's

    Use this...

    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
    
    # The primary network interface
    auto bond0
    iface bond0 inet static
    address 192.168.56.2
    netmask 255.255.255.0
    gateway 192.168.56.1
    network 192.168.56.0
    broadcast 192.168.56.255
    post-up ifenslave bond0 eth0 eth1
    pre-down ifenslave -d bond0 eth0 eth1
    
    # The secondary network interface
    auto bond0:0
    iface bond0:0 inet static
    address 192.168.56.3
    netmask 255.255.255.0
    network 192.168.56.0
    broadcast 192.168.56.255
    Place your nameservers in '/etc/resolv.conf'...

    Code:
    nameserver 192.168.56.89
    Last edited by KiLaHuRtZ; March 7th, 2010 at 04:11 AM. Reason: Typo

  8. #8
    Join Date
    Sep 2008
    Location
    Michigan, USA
    Beans
    193
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Ubuntu Server 9.10 -- Bond 2 NIC's

    Quote Originally Posted by dasunsrule32 View Post
    I want to basically provide more bandwith to the server? Is this going to do what I need? Thanks!

    Is the the correct line for /etc/modules?
    Code:
    bonding mode=active-backup miimon=100 primary=eth0
    This will not provide more bandwidth, just fault tolerance. If you want more bandwidth, you need to do the 802.3ad mode. However, you switch needs to support 802.3ad to work.

  9. #9
    Join Date
    Feb 2008
    Location
    Arizona
    Beans
    65
    Distro
    Ubuntu

    Re: Ubuntu Server 9.10 -- Bond 2 NIC's

    I have two Dell Powerconnect 3024's, they support Link Aggregation aka Port Trunking. Would my /etc/interfaces file end up changing at all or would /etc/modules be the only config changing?

    EDIT: This is how my /etc/modules looks now, if it isn't correct, please let me know. Thanks!

    Code:
    # /etc/modules: kernel modules to load at boot time.
    #
    # This file contains the names of kernel modules that should be loaded
    # at boot time, one per line. Lines beginning with "#" are ignored.
    
    loop
    lp
    rtc
    
    # mode=0 (balance-rr), mode=1 (active-backup), mode=2 (balance-xor), mode=3 (broadcast), mode=4 (802.3ad), mode=5 (balance-tlb), mode=6 (balance-alb)
    bonding mode=4 miimon=100
    Last edited by dasunsrule32; March 7th, 2010 at 06:11 AM.

  10. #10
    Join Date
    Sep 2008
    Location
    Michigan, USA
    Beans
    193
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Ubuntu Server 9.10 -- Bond 2 NIC's

    That should work, but you might wish to have a look at this...

    https://bugs.launchpad.net/ubuntu/+s...ux/+bug/482419

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

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