[SunHELP] ppp & routing

Nejhdeh Ghevondian nejhdeh at aimedics.com
Tue Jan 14 15:19:59 CST 2003


Hi all,
 
I have a routing question I need to resolve.
 
I have two sparcstations (S1 & S2), using Solaris 9, connected together
by Ethernet using network 192.168.0.0. S1 (which also acts as the
default gateway for this network) is 192.168.0.1 and S2 has the address
192.168.0.2. Both using 255.255.255.0 subnet system. This network setup
works fine. I can 'ping' from S! to S2 and vice-versa, I can 'rlogin",
'ftp' etc.
 
S1 is also connected to my ISP through a "good-old" dialup modem. I use
the PPP protocol (pppd v4.0) to connect to the ISP through dynamic IP
allocation. The ISP provides me with a local IP (LOCAL_IP) and remote IP
(REMOTE_IP) addresses each time I connect. (I can access these addresses
through a script /etc/ppp/ip-up). S1 can access Internet, mail, etc. So
everything is OK.
 
Question is: HOW DO I ACCESS INTERNET (AND OTHER SERVICES ) THROUGH S2.
 
Here are the 'netstat -nr' commands from each machine:
 
S1
192.168.0.0       192.168.0.1       255.255.255.0    UG       eth0
REMOTE_IP      LOCAL_IP         255.255.255.0    U          sppp0
Default              REMOTE_IP      255.255.255.0    UGH     
.
etc.
 
 
S2
192.168.0.0       192.168.0.2       255.255.255.0    U          eth0
Default              192.168.0.1       255.255.255.0    UG       eth0
.
etc.
 
More importantely: HOW DO I PING from S2, REMOTE_IP VIA S1.
 
I can ping from S2 the LOCAL_IP of S1, but the problem is:
 
I CAN'T PING FROM S2 the REMOTE_IP via S1.
 
I don't want to use Squid or any other proxy server setup. I rather use
manual routing tables.
 
I would have though If I can ping from S2 LOCAL_IP of S1, then
"REMOTE_IP         LOCAL_IP         255.255.255.0    U            sppp0'
should take care of the rest.
 
What additions do I have to add to the routing tables???
 
Regards,
 
Nejhdeh Ghevondian


More information about the SunHELP mailing list