LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-29-2008, 10:55 PM   #1
maverick_awp
Member
 
Registered: Oct 2006
Location: Mumbai, India
Posts: 46

Rep: Reputation: 15
Wired network routing problems


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
ifconfig

Code:
eth0      Link encap:Ethernet  HWaddr 00:19:21:24:ae:f6  
          inet addr:10.20.60.25  Bcast:10.255.255.255  Mask:255.0.0.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:16193 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3674 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:4635089 (4.4 MB)  TX bytes:540508 (527.8 KB)
          Interrupt:20 Base address:0xe800 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:102 errors:0 dropped:0 overruns:0 frame:0
          TX packets:102 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:5304 (5.1 KB)  TX bytes:5304 (5.1 KB)

ppp0      Link encap:Point-to-Point Protocol  
          inet addr:203.76.179.236  P-t-P:25.1.1.2  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1492  Metric:1
          RX packets:3644 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3586 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3 
          RX bytes:3539512 (3.3 MB)  TX bytes:453370 (442.7 KB)
Code:
maverick@maverick-desktop:~$ netstat -nr
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
25.1.1.2        0.0.0.0         255.255.255.255 UH        0 0          0 ppp0
10.0.0.0        0.0.0.0         255.0.0.0       U         0 0          0 eth0
0.0.0.0         0.0.0.0         0.0.0.0         U         0 0          0 ppp0
maverick@maverick-desktop:~$ route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
25.1.1.2        *               255.255.255.255 UH    0      0        0 ppp0
10.0.0.0        *               255.0.0.0       U     0      0        0 eth0
default         *               0.0.0.0         U     0      0        0 ppp0
Thanks in advance...

Last edited by maverick_awp; 04-29-2008 at 11:17 PM.
 
Old 04-30-2008, 08:32 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
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.

http://www.linuxhomenetworking.com/w...nux_Networking
 
Old 05-03-2008, 09:59 AM   #3
maverick_awp
Member
 
Registered: Oct 2006
Location: Mumbai, India
Posts: 46

Original Poster
Rep: Reputation: 15
Hi,

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...

[HTML]http://www.file-post.com/uploaded_images/a4b8be7d3723a876a47c3833cc56add8.png[/HTML]

Thanks in advance
 
Old 05-12-2008, 06:26 AM   #4
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
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.
 
Old 05-12-2008, 07:54 AM   #5
lsteacke
Member
 
Registered: Jul 2007
Distribution: Ubuntu
Posts: 99

Rep: Reputation: 16
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.
 
Old 05-19-2008, 12:38 PM   #6
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
Did you fix this on your own?
Then, more power to you, & please post the solution to help others.

If not, please answer the various clarification requests.
 
Old 05-28-2008, 08:22 AM   #7
maverick_awp
Member
 
Registered: Oct 2006
Location: Mumbai, India
Posts: 46

Original Poster
Rep: Reputation: 15
Hi,

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.

My Windows Routing Table...

Code:
C:\Documents and Settings\Maverick>route PRINT
===========================================================================
Interface List
0x1 ........................... MS TCP Loopback interface
0x2 ...00 19 21 24 ae f6 ...... Realtek RTL8139/810x Family Fast Ethernet NIC -
Packet Scheduler Miniport
0x40004 ...00 53 45 00 00 00 ...... WAN (PPP/SLIP) Interface
===========================================================================
===========================================================================
Active Routes:
Network Destination        Netmask          Gateway       Interface  Metric
          0.0.0.0          0.0.0.0   203.76.179.243  203.76.179.243       1
         10.0.0.0        255.0.0.0     10.20.50.212    10.20.50.212       20
     10.20.50.212  255.255.255.255        127.0.0.1       127.0.0.1       20
   10.255.255.255  255.255.255.255     10.20.50.212    10.20.50.212       20
         25.1.1.2  255.255.255.255   203.76.179.243  203.76.179.243       1
        127.0.0.0        255.0.0.0        127.0.0.1       127.0.0.1       1
   203.76.179.243  255.255.255.255        127.0.0.1       127.0.0.1       50
   203.76.179.255  255.255.255.255   203.76.179.243  203.76.179.243       50
        224.0.0.0        240.0.0.0     10.20.50.212    10.20.50.212       20
        224.0.0.0        240.0.0.0   203.76.179.243  203.76.179.243       1
  255.255.255.255  255.255.255.255     10.20.50.212    10.20.50.212       1
  255.255.255.255  255.255.255.255   203.76.179.243  203.76.179.243       1
Default Gateway:    203.76.179.243
===========================================================================
Persistent Routes:
  None
Ipconfig /all in windows...


Code:
C:\Documents and Settings\Maverick>ipconfig /all

Windows IP Configuration

        Host Name . . . . . . . . . . . . : mav
        Primary Dns Suffix  . . . . . . . :
        Node Type . . . . . . . . . . . . : Unknown
        IP Routing Enabled. . . . . . . . : No
        WINS Proxy Enabled. . . . . . . . : No

Ethernet adapter Local Area Connection:

        Connection-specific DNS Suffix  . :
        Description . . . . . . . . . . . : Realtek RTL8139/810x Family Fast Eth
ernet NIC
        Physical Address. . . . . . . . . : 00-19-21-24-AE-F6
        Dhcp Enabled. . . . . . . . . . . : No
        IP Address. . . . . . . . . . . . : 10.20.50.212
        Subnet Mask . . . . . . . . . . . : 255.0.0.0
        Default Gateway . . . . . . . . . :

PPP adapter Connection to pacenet:

        Connection-specific DNS Suffix  . :
        Description . . . . . . . . . . . : WAN (PPP/SLIP) Interface
        Physical Address. . . . . . . . . : 00-53-45-00-00-00
        Dhcp Enabled. . . . . . . . . . . : No
        IP Address. . . . . . . . . . . . : 203.76.179.243
        Subnet Mask . . . . . . . . . . . : 255.255.255.255
        Default Gateway . . . . . . . . . : 203.76.179.243
        DNS Servers . . . . . . . . . . . : 203.115.71.66
                                            203.115.81.38
        NetBIOS over Tcpip. . . . . . . . : Disabled

Quote:
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.
 
Old 05-29-2008, 07:47 AM   #8
lsteacke
Member
 
Registered: Jul 2007
Distribution: Ubuntu
Posts: 99

Rep: Reputation: 16
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.

For Ubuntu try

Code:
ip route add default via 203.76.179.243
and for Fedora try

Code:
route add default gw 203.76.179.243 ppp0

Last edited by lsteacke; 05-29-2008 at 07:53 AM.
 
Old 06-01-2008, 12:00 PM   #9
maverick_awp
Member
 
Registered: Oct 2006
Location: Mumbai, India
Posts: 46

Original Poster
Rep: Reputation: 15
Hi,

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...
 
Old 06-02-2008, 10:16 AM   #10
lsteacke
Member
 
Registered: Jul 2007
Distribution: Ubuntu
Posts: 99

Rep: Reputation: 16
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.
 
Old 06-03-2008, 10:48 PM   #11
maverick_awp
Member
 
Registered: Oct 2006
Location: Mumbai, India
Posts: 46

Original Poster
Rep: Reputation: 15
Hi,
No luck ....I'm trying to download ubuntu server edition and hope it integrates into my network.
 
Old 06-04-2008, 07:59 AM   #12
lsteacke
Member
 
Registered: Jul 2007
Distribution: Ubuntu
Posts: 99

Rep: Reputation: 16
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.
 
Old 06-04-2008, 09:22 AM   #13
maverick_awp
Member
 
Registered: Oct 2006
Location: Mumbai, India
Posts: 46

Original Poster
Rep: Reputation: 15
Hi,
I don't have a problem in buying a new NIC, but, I need to know if I would need to split the cable into two??...My ISP won't allow that..

Thanks in advance...
 
Old 06-05-2008, 12:08 PM   #14
lsteacke
Member
 
Registered: Jul 2007
Distribution: Ubuntu
Posts: 99

Rep: Reputation: 16
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.
 
Old 06-09-2008, 12:24 AM   #15
maverick_awp
Member
 
Registered: Oct 2006
Location: Mumbai, India
Posts: 46

Original Poster
Rep: Reputation: 15
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...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with Wired Network in CentOS dweller-in-peace Linux - Newbie 3 04-14-2008 09:30 AM
wired network modem problems hubiedo Linux - Networking 2 03-19-2008 07:17 AM
Debian routing wireless to wired Child of Wonder Debian 3 02-10-2006 04:37 PM
Wireless-2-wired routing question dolvmin Linux - Wireless Networking 1 11-06-2005 11:31 AM
network/routing(?) problems jaleskin Linux - Networking 1 09-08-2003 11:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration