Bill Jonas on Mon, 13 Aug 2001 23:10:06 -0400


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] Accessing IP-dependent pages from home...


On Sun, Aug 12, 2001 at 07:57:20PM -0400, Guillermo Moyna wrote:
> Thanks for the long ramble - Very didactic, really. Now, I have 
> pretty much made up my mind as to what I want:

Thank you.  :)

> Kernel IP routing table
> Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
> 208.7.154.206   *               255.255.255.255 UH    0      0        0 eth0
> 208.7.154.0     *               255.255.255.0   U     0      0        0 eth0
> 10.0.0.0        *               255.0.0.0       U     0      0        0 eth0
> 127.0.0.0       *               255.0.0.0       U     0      0        0 lo
> default         208.7.154.254   0.0.0.0         UG    0      0        0 eth0
> 
> Now, I also made a static-route file in /etc/sysconfig that looks like:
> 
> any net 216.200.143.20 netmask 255.255.255.255 gw 10.1.1.254
> any net 216.143.112.80 netmask 255.255.255.255 gw 10.1.1.254
> any net 198.81.200.2 netmask 255.255.255.255 gw 10.1.1.254
> any net 209.67.7.112 netmask 255.255.255.255 gw 10.1.1.254
> 
> In any event, it's not working. According to a site I found that 
> reports IPs, I'm still going out as 208.7.154.206, tonga's default 
> address, which goes out through the wrong gateway...
> 
> Any ideas?

Hmm.  I'm not familiar with /etc/sysconfig.  Which distribution are you
using?  (I think I recall you mentioning RedHat, but I'm not sure.)

In any case, assuming I'm interpreting the syntax correctly, it seems
like it *should* work.  Perhaps you've edited the file, but not
activated the changes?  When you edit certain system configuration files
(such as /etc/resolv.conf), the changes take place immediately.  Other
files don't have any effect until you take some action.  My guess is
that /etc/sysconfig is interpreted by your start-up scripts.  The
easiest solution (*assuming* that's the case) would be to reboot.  But
there's no need to; you can grep your startup scripts for 'sysconfig'
and find out how it's being interpreted, then simply duplicate that on
the command line.

Perhaps someone who's more familiar with your distribution that I am
could offer more specific advice.

-- 
Bill Jonas    *    bill@billjonas.com    *    http://www.billjonas.com/
"As we enjoy great advantages from the inventions of others,  we should
be glad of an opportunity to serve others by any invention of ours; and
this we should do freely and generously."          -- Benjamin Franklin


______________________________________________________________________
Philadelphia Linux Users Group       -      http://www.phillylinux.org
Announcements-http://lists.phillylinux.org/mail/listinfo/plug-announce
General Discussion  -  http://lists.phillylinux.org/mail/listinfo/plug