Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Trunking two network cards on Ubuntu Server 9.04

Posted on 2009-07-10
9
1,561 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
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.

 
LVL 8

Accepted Solution

by:
LunarNRG earned 500 total points
ID: 24827497
0
 

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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Choosing CentOS 16 106
what do I need to host my own web sites? 13 49
Check for Linux process in script 7 45
Migrating a Linux server to VMware 3 46
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
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…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

790 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