In the Usenet newsgroup comp.os.linux.networking, in article
<(E-Mail Removed) .com>, Raqueeb Hassan wrote:
>> I'm using Redhat 2.4.20-24.9
>
>Well, please have a look at /etc/sysconfig/network .... and edit the
>gw.
>
>NETWORKING=yes
>HOSTNAME=yourhostname
>FORWARD_IPV4=true
>GATEWAY=192.168.100.32
You missed the line where he said:
>> I'm not trying to change my DEFAULT gateway, just add one.
The "GATEWAY" variable effects the default gateway only. He wants to
add another gateway, like
[example ~]$ /sbin/route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.100.0 0.0.0.0 255.255.255.0 U 0 0 95017 eth0
192.168.2.0 192.168.100.32 255.255.255.0 UG 0 0 11695 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 420 lo
0.0.0.0 192.168.100.2 0.0.0.0 UG 0 0 2004 eth0
In this case, 192.168.1.248 does not lead to 192.168.2.0, and if I were
to use your method, I would end up with
192.168.100.0 0.0.0.0 255.255.255.0 U 0 0 95017 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 420 lo
0.0.0.0 192.168.100.32 0.0.0.0 UG 0 0 2004 eth0
which isn't going to work, because the Internet is not in that direction.
Old guy
|