Question

need two nics to run at the sametime , ubuntu server

Asked by: dereckd

Hello

I have a server with two nic cards running with jaunty .
both nics have public pppoe static address's from my ISP. i have managed to get both nics activated with the appropriate ip .
The default interface is eth0 .My issue is when i try to ping my eth1 nic it comes back unsuccessful , however i can see that the  eth1 nic is getting the packets ok but just not sending them back .

When I disable eth0 , all connections drop . I have tried taking down both nics and setting them up one by one and everything works perfert until I try and use them at the same time .

My goal is get have both interfaces to be able to send and receive ok .

 Please let me know if you need more info

Here is a copy of my ineterfaces file

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface

auto eth0
iface eth0 inet ppp
provider dsleth0

auto eth1
iface eth1 inet ppp
provider dsleth1

pre-up /sbin/ifconfig eth0 up # line maintained by pppoeconf
pre-up /sbin/ifconfig eth1 up

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2009-07-06 at 11:52:39ID24547500
Topics

Ubuntu

,

Unix Networking

,

Linux Networking

,

Miscellaneous Networking

,

Linux Network Security

Participating Experts
5
Points
500
Comments
23

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. "Bridge" eth0 to eth1
    The problem is as follows: I have two computers. In the first computer there are two ethernet-cards (A:eth0 and A:eth1). In the second computer ther is one ethernet-card (B:eth0). Interface A:eth1 is connected two a LAN, A:eth0 is connected to B:eth0. Each of these interfaces...
  2. eth0 and eth1 configuration
    ZT7101 (Chassis management module) runs Bluecat embedded Linux. It has 2 interfaces eth0(internal) and eth1(external). It is housed in a chassis (ZT5090). The chassis also contains an Ethernet switch and Single board computers(SBCs) running Win2K. I have configured the switch...
  3. No eth0 && eth1 at boot???
    Yesterday, I installed RH 7.2, and configured the adsl-modem. I shutdown the system, and when I rebootted it this morning ther were no network interfaces available(eth0 / eth1). While trying to find out the problem I noticed that both IRQ's where set to 11 (I set them to 11 ...
  4. No ifconfig ?
    I just installed fedora core2 and I cannot run ifconfig. not even if I su. I am new to linux. Is there some directory i have to switch to that containes the 'ifconfig' tool ? I cannot make my network connection work either. I have used the gui tool, and I have tried putting t...
  5. eth1:0
    hi eht0 and eht1 physical interface but whatis eth1:0 and how to create it (like eth1:0 ) Thanks

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: sorrilloPosted on 2009-07-06 at 13:24:11ID: 24788873

It might be a routing problem (default gateway might be configured twice). Could you post the result of this command when both interfaces are up ?

sudo route -n

 

by: dereckdPosted on 2009-07-06 at 16:20:28ID: 24790127

Hello Sorrillo

Here are the results

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
142.161.133.209 0.0.0.0         255.255.255.255 UH    0      0        0 ppp1
142.161.133.202 0.0.0.0         255.255.255.255 UH    0      0        0 ppp0
206.45.95.156   0.0.0.0         255.255.255.255 UH    0      0        0 ppp1
0.0.0.0         0.0.0.0         0.0.0.0         U     0      0        0 ppp1
0.0.0.0         0.0.0.0         0.0.0.0         U     0      0        0 ppp0

 

by: dereckdPosted on 2009-07-07 at 11:02:25ID: 24796594

Please can someone look into this for me  

 

by: doadesPosted on 2009-07-08 at 11:34:52ID: 24806738

I think this might help you...

http://ubuntuforums.org/archive/index.php/t-1001682.html

Andrew

 

by: dereckdPosted on 2009-07-08 at 11:56:28ID: 24806954

Hello

That is helpful . however in this post , the guy is using dhcp and i am on a pppoe connection . I have tested this out previously and both nics work through dhcp . Its trying to get them towork on a pppoe connection.

 

by: doadesPosted on 2009-07-08 at 12:08:50ID: 24807094

Ah, I have little experience with pppoe I'm afraid...
I don't think I can be of much help with the pppoe setup

Sorry,
Andrew

 

by: martino87rPosted on 2009-07-08 at 12:41:01ID: 24807446

What you want to do is called "Bonding"... check out this article:
http://www.howtoforge.com/network_bonding_ubuntu_6.10

It is for ubuntu 6.10 but the principles are the same...

The problem in your case is just bond them for failover, so it might work.
Otherwise check this distro:

http://zeroshell.net/eng/

It has a very easy integrated web interface for configuring failover and load balancing for PPPoE connections

 

by: dereckdPosted on 2009-07-08 at 12:52:59ID: 24807613

i currently have direct admin installled on my servers , would you know if i could install zeroshell without affecting direct admin .

 how would my interfaces file look like . I guess where would the below comment get placed and more so what would i place in there for an ip &  hardware address

auto bond0
iface bond0 inet static
   address 192.168.0.120
   netmask 255.255.255.0
   network 192.168.0.0
   broadcast 192.168.0.255
   gateway 192.168.0.1
   hwaddress ether 00:03:B3:48:50:2C
   post-up ifenslave bond0 eth0 eth1


 

by: RedimidoPosted on 2009-07-08 at 13:14:28ID: 24807863

I think you want to have multiple paths to the internet (two).

your problem is routing, since there can be only one default gateway to the internet. which one of your two interfaces could be that one?

Solution is simple, however, because linux provided for that with iproute2 package.

in the Linux Advanced Routing howto, they show you how to setup as many routing tables as you need.
ok, to the matter:
http://lartc.org/howto/lartc.rpdb.multiple-links.html

hope this help

 

by: dereckdPosted on 2009-07-08 at 13:31:05ID: 24808022

My default would be eth0 interface . I need both interfaces to be able to send and receive . However the default connection at the terminal would be eth0 .

 

by: RedimidoPosted on 2009-07-08 at 14:06:30ID: 24808360

you cannot have a "default" when you have two different interfaces being the default gateway to the network 0.0.0.0/0.0.0.0.

you can, however, mark which traffic you want to go to each interfase.
i.e.

you can mark traffic coming from the first interfase, to go out on that same interfase. the same with the second interfase.

you can also mark OUTPUT traffic to go on a specific interfase, like "all the web traffic go to the second, and the ssh traffic go to the first one"

just give the guide a try.

 

by: dereckdPosted on 2009-07-08 at 14:57:59ID: 24808838

ok will i'll give it a go  , i'll let you know

 

by: dereckdPosted on 2009-07-09 at 06:39:00ID: 24813453

ok , so i think i am doing somthing wrong . After i used the below commands , nothing happened . Please have a look and tell me what i am doing wrong here


ip route add 206.45.95.156 dev ppp0 src 206.45.95.156 table 1
ip route add default via 206.45.95.1 table 1
ip route add 206.45.95.174 dev ppp1 src 206.45.95.174 table 2
ip route add default via 206.45.95.1 table 2


          ip rule add from 206.45.95.156 table 1
          ip rule add from 206.45.95.174 table 2

ip route add 206.45.95.156     dev eth0 table 1
ip route add 206.45.95.156     dev ppp0 table 1
ip route add 127.0.0.0/8 dev lo   table 1
ip route add 206.45.95.174     dev eth1 table 2
ip route add 206.45.95.174    dev ppp1 table 2
ip route add 127.0.0.0/8 dev lo   table 2

 

by: martino87rPosted on 2009-07-09 at 07:04:47ID: 24813751

Try the following:


ip route add 206.45.95.156 dev ppp0 src 206.45.95.156 table 1
ip route add default via 206.45.95.1 table 1
ip route add 206.45.95.174 dev ppp1 src 206.45.95.174 table 2
ip route add default via 206.45.95.1 table 2


          ip rule add from 206.45.95.156 table 1
          ip rule add from 206.45.95.174 table 2

ip route add 206.45.95.156     dev ppp0 table 1
ip route add 127.0.0.0/8 dev lo   table 1
ip route add 206.45.95.174    dev ppp1 table 2
ip route add 127.0.0.0/8 dev lo   table 2

 

by: dereckdPosted on 2009-07-09 at 11:28:41ID: 24816668

ok , so i did that and now ppp0 and ppp1 is no longer ion my ifconfig , if i try and bring them up with pon dsleth0 and pon dsleth1 nothing happens . There is nothing showing in route - n command .

is there any way i could reset my routing to the way they were and retry

 

by: The--CaptainPosted on 2009-07-09 at 16:32:40ID: 24819286

>your problem is routing, since there can be only one default gateway to the internet.

I will translate this to its numeric equivalent:  "There can only be one routing entry that specifies how to reach 0.0.0.0/0"

I often respect your advice, Redimido, but in this case you are wrong. 0.0.0.0/0 is in no way special (other than that it is the least-specific route in ipv4).  

One thing troubling me is this routing table entry:

206.45.95.156   0.0.0.0         255.255.255.255 UH    0      0        0 ppp1

Why is there no additional IP associated with ppp0?  Something seems odd here...

In any case, you can solve this using iproute2, using the link Redimido mentioned.

Cheers,
-Jon

 

by: dereckdPosted on 2009-07-10 at 11:52:33ID: 24826301

ok , i am going to give it another shot . I'll let you know how i make out.

 

by: RedimidoPosted on 2009-07-10 at 12:53:41ID: 24826857

Hi The--Captain, I'm sorry but I tried to keep things simple. I understand you can have as many redundant routes to any other network as you want, provided they have a priority. Also you can have as much as 32,767 routing tables created using iproute2, which is a great feature to do whatever you want with routing in linux.

however in this case I think dereckd tried to do bonding or other setup before we started advising on how to do the correct routing.

dereckd, would you mind to post here the output of

route -n

ifconfig

?

and maybe restat what you want to do at this very moment?

 

by: dereckdPosted on 2009-07-10 at 15:09:30ID: 24827870

Thank you all for your patience

At the moment route -n results in nothing ,just the column names appear .

Ifconfig brings up eth0 ,eth1 and lo  . No ppp0 or ppp1 .

I would like to reset my routing table and start from scratch .

 

by: RedimidoPosted on 2009-07-14 at 15:58:32ID: 24854824

then please post the results of

ip route show

 

by: dereckdPosted on 2009-07-16 at 07:27:03ID: 24869424

Hello

Thank you all for your responses . I have decided to do away with this problem by getting a iframe route from my ISP .

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...