Solved

Trunking two network cards on Ubuntu Server 9.04

Posted on 2009-07-10
9
1,555 Views
Last Modified: 2013-11-15
I'm trying to trunk two network cards together. I have three network cards in this server; eth0 is onboard, and eth1/eth2 is meant to be trunked. I have a test lab setup at the moment with almost an identical setup on a computer as the server has.

I found a website explaining how to do this and for the most part it makes sense but theres still a few unanswered questions. Here's a link: http://emcken.dk/weblog/archives/274-trunk-port-in-vmware-used-by-ubuntu-server-hardy.html

I followed this and here's what my config file looks like:
auto eth1.2
iface eth1.2 inet static
        address 192.168.1.6
        netmask 255.255.255.0

My question is how does the computer know that I would like to trunk eth1 & eth2 and leave eth0 out of it?
0
Comment
Question by:supanatural
  • 5
  • 4
9 Comments
 
LVL 8

Expert Comment

by:LunarNRG
ID: 24827228
I'm not 100% sure, but the instructions at the link you provided, seem to be doing the _inverse_ of what you actually want. In other words, instead of trunking(/bonding) two nics, they seem to be assigning another ip address to the same nic.

These instructions are a little old, but they should get you where you want to go ...
http://www.howtoforge.com/network_bonding_ubuntu_6.10



0
 

Author Comment

by:supanatural
ID: 24827381
The problem is that that's ubuntu 6.04. I don't know if it has changed a lot since then. I'm running 9.04.

When I use the setup:
auto eth1.2
iface eth1.2 inet static
        address 192.168.1.6
        netmask 255.255.255.0
auto eth2.2
iface eth2.2 inet static
        address 192.168.1.6
        netmask 255.255.255.0

It doesn't work. It does work if I disable trunking on my switch which is weird.
0
 
LVL 8

Expert Comment

by:LunarNRG
ID: 24827469
Actually the instructions are for ubuntu 6.10, and I doubt that bonding config has changed all that much. FWIW, I used these instructions to bond nics w/ a debian server just a few months ago.

Good Luck!
0
 
LVL 8

Accepted Solution

by:
LunarNRG earned 500 total points
ID: 24827497
0
Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

 

Author Comment

by:supanatural
ID: 24827548
I'm having a problem with these instructions. I posted the steps in the code snippet that I'm having a hard time with. In /etc/modprob.d, I have 5 files that start with the word blacklist and thats it.

Also, I'm running x64 architecture if that helps
1. Now append the following items to your aliases file:
 

pico /etc/modprob.d/aliases
 

2. Next, append the following items to your i386 file:
 

pico /etc/modprob.d/arch/i386

Open in new window

0
 

Author Comment

by:supanatural
ID: 24827642
I like that article. I'm still having the same problem though with: /etc/modprobe.d/arch/i386

Here's all the files i see when I go to that folder:
root@Hypervisor2:/etc/modprobe.d# ls

blacklist-ath_pci.conf      

blacklist-firewire.conf

blacklist-watchdog.conf

blacklist.conf

blacklist-framebuffer.conf  

Open in new window

0
 
LVL 8

Assisted Solution

by:LunarNRG
LunarNRG earned 500 total points
ID: 24827689
I'm pretty sure you can just create a file in /etc/modprobe.d and include the directives alluded to in the instructions. I don't think the name of the file matters, but it should have the .conf extension, or so it seems.

See also, http://ubuntuforums.org/showthread.php?t=1147741
0
 

Author Comment

by:supanatural
ID: 24827850
Cool, I have it working (sort of). When port trunking is disabled on my switch, it works, but when port trunking is enabled on my switch it stops working. Is that normal? Is there a way to test that I do infact have a 2gb line working?
0
 
LVL 8

Expert Comment

by:LunarNRG
ID: 24828657
"""
When port trunking is disabled on my switch, it works, but when port trunking is enabled on my switch it stops working. Is that normal?
"""
I don't know. But, I'd kind of expect the opposite.

Can you elaborate on what you mean by "it stops working"? dead link?

If you post the make/model of your switch, we can have a look at the manual. While you're at it, post the result of 'cat /proc/net/bonding/bond0' (replace bond0 with the name you gave the bonded interface, if different).

"""
Is there a way to test that I do infact have a 2gb line working?
"""

I didn't need to bond for performance, so it's unfamiliar territory. But in this case, you may find these articles more your ... um, er ... 'speed', and suggest testing with the iperf package ... seems reasonable.

http://www.enterprisenetworkingplanet.com/nethub/article.php/3696561
http://www.enterprisenetworkingplanet.com/nethub/article.php/3697756


0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Delete email that have a topic like  Cpanel 3 69
Why isn't object file created? 6 41
networking details on centos 6.6 4 50
Reset Root Password on CentOS 6 4 44
The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now