Hi!
I set up a linux box (running 1.1.75, 2 NE2000 cards) as a gateway of a
subnet. One ethernet card connects to subnetwork and the other connects to
backbone. My problem is the machines on the subnetwork cannot ping the outside
world. I can ping the machines on the subnetwork and the outside world from
this linux box. The kernel is compiled with IP_FORWARD option on. And there's
no routed/gated running. Here are "rc.inet1" and the result of "netstat -nr".
# rc.inted1:
/sbin/ifconfig lo 127.0.0.1
/sbin/route add 127.0.0.1
GATEWAY="192.6.1.254"
IP="192.6.8.17"
NETWORK="192.6.0.0"
NETMASK="255.255.0.0"
BROADCAST="192.6.255.255"
SUBIP="192.6.112.1"
SUBNET="192.6.112.0"
SUBMASK="255.255.112.0"
SUBCAST="192.6.112.255"
/sbin/ifconfig eth0 ${IP} broadcast ${BROADCAST} netmask ${NETMASK}
/sbin/ifconfig eth1 ${SUBIP} broadcast ${SUBCAST} netmask ${SUBMASK}
/sbin/route add -net ${NETWORK} netmask ${NETMASK} gw ${IP} metric 1 dev eth0
/sbin/route add default gw ${GATEWAY} metric 1 dev eth0
/sbin/route add -net ${SUBNET} netmask ${SUBMASK} gw ${SUBIP} metric 0 dev eth1
# End of rc.inet1
# netstat -nr
Kernel routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
127.0.0.1 0.0.0.0 255.255.255.255 UH 0 0 1 lo
192.6.112.0 0.0.0.0 255.255.112.0 U 0 0 24 eth1
192.6.0.0 0.0.0.0 255.255.0.0 U 0 0 76 eth0
0.0.0.0 192.6.1.254 0.0.0.0 UG 0 0 215 eth0
Any suggestion will be appreciated.
--