Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi,
I'm using a Wired PPPoE dial-up broadband which is configured using RP-PPPoE. The problem I am facing is that Ubuntu is routing all my network traffic through ppp0, which causes my LAN apps (games, messengers, etc) to malfunction (i.e: The local traffic is being routed through the internet). If I disconnect my net and try to use the apps, then they fail to work at all. Is there any way by which set LAN apps to use the eth0 address?
My interfaces file...
Code:
auto lo
iface lo inet loopback
iface eth0 inet static
address 10.20.60.25
netmask 255.0.0.0
gateway
auto eth0
You don't seem to have a LAN so I'm not sure what your problem is with the apps, but I think that eth0 shouldn't have an IP address if you are using it for the PPOE connection.
The ppp connection has an IP address but it is a virtual connection using the eth0 NIC device. Or do you have a second NIC device that you are using for ppoe?
This link may help. The setup for rp-ppoe is for redhat but there is a Debian/Ubuntu interfaces configuration given in the bottom.
I do indeed have a LAN which works on Windows and I have only one NIC. The ppp connection is created automatically by RP-PPPoE after I get connected to the internet.
After a lot of trial and error, I have concluded that I have a problem with the routing table. The ppp connection is set as default and all packets are routed through it. If I tell RP-PPPoE to not set the connection as default route, my net does not work. In Windows, my LAN and Internet work together at the same time, unlike linux. Is there any way by which I can do that in Ubuntu? Should I post my windows routing table too?
I have posted of a rough diagram for you to get an idea about what i am trying to achieve...Please have a look at it...
Disclaimer: I don't, & wouldn't if I could avoid it, have PPPoE.
However: My ISP uses DHCP to assign up to 3 "sticky" IP's to my systems/LAN's. I too have a hub directly attached to the DSL "modem". So my home network structure may be similar to yours.
I'm running SimplyMEPIS 6.0 (Dapper 6.06 repos), but I don't seem to have the rp-pppoe package available. --
Would you please post a link to its documentation.
Is there any way by which I can do that in Ubuntu?
Which Ubuntu?
Should I post my windows routing table too?
Yes.
I have posted of a rough diagram for you to get an idea about what i am trying to achieve...
Is it significant that none of the IP addresses there match your post above?
I not sure if I know the answer to your problem, but I hope at least the info. I'm requesting will clarify it.
Although it is probably possible to fix this through the routing table, you might think about just buying another cheap NIC, and using it strictly for LAN traffic. Either way I am curious about how to fix this, so I am doing some research as well. Your windows config might help.
Sorry, I did not check this page for a long time. I installed RP-PPPoE by compiling the tar.gz (http://www.roaringpenguin.com/products/pppoe). I think RP-PPPoE is available in the repos as "pppoe", but it isn't the full thing. I'm trying this in ubuntu 8.04. I tried to check whether it works in other distros (Fedora, Mandriva, Puppy), but I am facing the same problem, which I think is becauses all linuxes use the same type of routing.
I have posted of a rough diagram for you to get an idea about what i am trying to achieve...
Is it significant that none of the IP addresses there match your post above?
Are you referring to 10.20.60.X instead of 10.20.50.X? They both are the part of the same network.
Will I have to split the cable into two connections if I plan to get a seperate NIC card for LAN?
P.S: I changed my static LAN IP (10.20.50.212) in Windows due to IP Address Conflict.
Thanks a lot in advance...
Last edited by maverick_awp; 05-28-2008 at 08:33 AM.
Okay I've returned to this thread because I think it is important for us to figure out because it appears there is a fundamental difference in how windows and linux deals with routing in this instance.
From what I can tell, we need to add a new default route for your linux box. All traffic needs to be routed through 203.76.179.243. Please try this and let me know.
I tried it out, but I am getting the following error...
Code:
maverick@maverick-desktop:~$ sudo ip route add default via 203.76.179.243
RTNETLINK answers: File exists
I don't think that will help though because my ppp0 address is dynamic and the default gateway remains same as the IP address which keeps on changing...
That is an interesting error because from what I have been reading about it, that error occurs when a route from that certain network already exists, but from looking at your linux routing table, that does not appear to be the case. In any event we might trying using the
Code:
ip route append
command instead. I will continue to try to figure out this problem.
Before spending all that time trying to integrate a new OS into your network, I'd rather just spend 10$ and get another NIC. With 2 NIC's your problem becomes FAR more manageable, and I could definately help you through it. That being said, I'm dissapointed I could not help you solve your problem. Please let us know how you get along in the future, I'll keep checking back to this thread, and if I happen upon something I'll let you know.
Nope, no splitting of physical cables. You will just use each NIC for its own subnet. So eth0 for the ISP and eth1 for the LAN. That way LAN traffic will be reserved for eth1 and it won't be accidentally sent out eth0.
OK, I have got a new NIC card...Can you please guide me further...
It would be better if we set the onboard NIC for internet as my ISP uses MAC ID recognition...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.