Operating System - Linux
1822494 Members
2490 Online
109642 Solutions
New Discussion юеВ

Re: Help on routing ppp server

 
Raju_8
Occasional Contributor

Help on routing ppp server

Hello Every Body,

I am a Network Administrator and I want to setup a linux based
ppp router for one of our clients. I want to establish a dialup
connection between the Head Office and Branch office of our client .
Both of these offices are using RedHat Linux 8 as server operating
systems. and each offices have 10 Windows 98 clients. Recently I
succeeded in setting up a linux based ppp server in the Head
Office RH server .When i am dialing from the branch office RH
Server using kppp i could login in to the Head office linux server.
and i can ping HO server's eth0 and ppp0 adapter. But my problem
is that i can't ping the HO server from a Windows 98 client of the
branch office. I had added the Default gateway address in the
network neighborhood of the Win98 clients of the Branch Office
to point the branch office linux server's eth0 address.

I had done the following things in the HO server to setup the Dialin server.

1. Executed the following command
echo 1 > /proc/sys/net/ipv4/ip_forward
3. Edited /etc/sysconfig/network and modified FORWARD_IPV4=true.
4. Added the following line to /etc/inittab
S0:2345:respawn:/sbin/mgetty ttyS0 -D /dev/ttyS0
5. Next executed the following command
chmod u+s /usr/sbin/pppd
6. Next, edited the /etc/mgetty+sendfax/login.config to look like this
/AutoPPP/ - - /usr/sbin/pppd file /etc/ppp/options.server
7.Next edited /etc/ppp/options.server file to

-detach
asyncmap 0
modem
crtscts
lock
require-pap
refuse-chap
login
proxyarp

8.next edited /etc/ppp/pap-secrets file and added the following line

* * "" *

9.Created the file /etc/ppp/options.ttyS0 and added the following line to it
10.1.1.1:10.1.1.2


My Head office Network configuration is

Server IP No : 192.168.3.10 netmask 255.255.255.0
Gate way 192.168.3.254 and Primary name server 192.168.3.1
Windows 98 Clients IP No From 192.168.3.13 to 192.168.3.22

My Branch office Network configuration is

Server IP No : 192.168.1.30 netmask 255.255.255.0
Gate way 192.168.1.254 and Primary name server 192.168.1.1
Windows 98 Clients IP No From 192.168.1.70 to 192.168.1.79
and gateway 192.168.1.30


I had executed the following in the branch office server

route add -net 192.168.3.0 netmask 255.255.255.0 dev ppp0

Can any one help me?

Thanks in advance

Raju.

3 REPLIES 3
Steven E. Protter
Exalted Contributor

Re: Help on routing ppp server

can you do a netstat -rn or netstat -r and print the output.

Also try a couple of traceroute commands to the Intneret and post those results.

Steve
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
U.SivaKumar_2
Honored Contributor

Re: Help on routing ppp server

Hi,

Edit /etc/sysctl.conf and put this line
net.ipv4.conf.all.proxy_arp=1
Save the file .

Then Reboot once.

Do the above things in both the Linux PPP routers.

Establish PPP connection , Hope the problem is solved now.

regards,
U.SivaKumar


Innovations are made when conventions are broken
Stuart Browne
Honored Contributor

Re: Help on routing ppp server

The step 1 above you will need to do on both the Head Office and branch Linux boxen.

The step 3 you've listed above (dunno where step 2 went) is unfortunately no longer useful, as 'FORWARD_IPV4' has been deprecated.

U.Sivakumar walked through modifying /etc/sysctl.conf. Usually the first option listed in here on a RH8 box is 'net.ipv4.ip_forward'. Change this to = 1 on both machines.

Once you've done this, you'll need to make sure that your PC's can route properly to your head office network. Every thing else looks ok from what you've shown us here though.
One long-haired git at your service...