Solved

pppd works but I have a routing problem

Posted on 1998-09-08
8
254 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
[X]
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
  • 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
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

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

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

Suggested Solutions

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
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 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…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

730 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