Solved

pppd works but I have a routing problem

Posted on 1998-09-08
8
246 Views
Last Modified: 2010-04-20
I'm using ppp to connect my laptop computer to my network at work which is connect to the internet.

I can connect the two together using ppp/chat however I can't see beyond the network computer.  I can't even see other computers on the network (using ping), let along the internet.

I'm using the defaultroute option on my laptop and I'm using the proxyarp option on the network PC.  If I ping another computer on the network from my laptop, the packets are being transmitted from the laptop and they are be received by the network computer; however the network computer is not retransmitting them out its eth0 port.

I determined this by monitoring the /proc/net/dev file on each computer.

I'm using Redhat 5.1

What am I missing?
0
Comment
Question by:mag062397
  • 2
  • 2
  • 2
  • +2
8 Comments
 
LVL 2

Expert Comment

by:vx
ID: 1637961
I suppose you have installed Linux on your network computer. Did you compile your kernel with IP-masquerading?
0
 

Author Comment

by:mag062397
ID: 1637962
Yes I have linux (Redhat 5.1) installed on both computers.

No, I don't think IP-masquerading is compilied in. Is there an easy why to find out.

Is it really needed?  I can get my laptop to talk correctly to another linux box that I have here.  However, the person that configured that box no longer works here.  And it is a really old version of linux (kernel 1.2.8).  

0
 
LVL 2

Expert Comment

by:benten
ID: 1637963
I assume you can ping other machines in your network and on the Internet from your network PC.  What happens when you try to ping the laptop from the network PC?
0
 
LVL 1

Expert Comment

by:fmismetti
ID: 1637964
1. Is your network connected to the internet through a proxy server or through a direct connection/router?
2. Is your linux box connected to your network using a network card (you talk about eth0)?

If answer to 1 and 2 is yes, why you are using pppd/chat? You need only to configure your net card to have an IP compatible with your network and to use the same gateway to the internet (proxy server or router). Also, you do not need IP masquerade (I assume you want your linux box as a client; IP masquerade is for using the linux box as a router).
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 1

Expert Comment

by:fmismetti
ID: 1637965
Ops, I misunderstood your question first time, forget the comment above.

If you are dialing from your laptop to a network PC, both running Linux, the solution for your problem depends on the IP your laptop is receiving from the network PC (and this depends on the IP your network PC has in the net card).

If the network PC is directly connected to the internet (or the net card IP is a public one) this box should be configured with IP forward. If this net PC is connected by a proxy or similar (and the net card IP is a private one), then this PC should be configured with IP masquerade.

In any case, look in the man pages for "ipfwadm" cause you will need this.

0
 
LVL 2

Expert Comment

by:JYoungman
ID: 1637966
RH5.1 includes IP masquerading support in the kernel by default.
Can you ping the laptop while logged into the "network computer"?

The problem is either that
  1) The N.C. does not have IP forwarding turned on
     solution: set FORWARD_IPV4=yes in /etc/sysconfig/netwwork
     then restart networking with
      /etc/rc.d/init.d/network restart
or
   2) IP forwarding is on, but the machines on the far side of
      the N.C. think that to send packets to your laptop's
      IP address, they have to send them somewhere other than
      to the N.C.  
        solution: either update the routing tables on those hosts,
        or set up IP Masquerading on the N.C.,
        or select an IP address for the laptop which is compatible with the routing assumptions made by all the other machines.

IP Masquerading is explained in one of the HOWTOs.

0
 

Author Comment

by:mag062397
ID: 1637967
Thanks to all.  The following fixed it for me.

 1) The N.C. does not have IP forwarding turned on
            solution: set FORWARD_IPV4=yes in /etc/sysconfig/netwwork
            then restart networking with
             /etc/rc.d/init.d/network restart

To answer some of the questions above.  Yes I connect to the internet with a dedicated line (router and T1).  And no I wasn't able to ping the laptop from another computer on the network.

BUT I CAN NOW.  YEAH!!!   :)

Thanks again.  I guess JYoungman should submit a "Proposed Answer" so that I can accept it.
0
 
LVL 2

Accepted Solution

by:
JYoungman earned 100 total points
ID: 1637968
I'm glad it works for you now.   This is my proposed answer :-)

set
     FORWARD_IPV4=yes
in /etc/sysconfig/netwwork, then restart networking with
    /etc/rc.d/init.d/network restart

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Linux "time" command output redirection 16 114
linux copy files from usb to folder on system 14 58
PC upgrade to Linux Mint 7 65
networking details on centos 6.6 4 49
This is the error message I got (CODE) Error caused by incompatible libmp3lame 3.98-2 with ffmpeg I've googled this error message and found out sometimes it attaches this note "can be treated with downgrade libmp3lame to version 3.97 or 3.98" …
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…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

919 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

19 Experts available now in Live!

Get 1:1 Help Now