Answer
This question was answered on September 5, 2004.
Much of the information contained herein may have changed since posting.
I did some research on how to recompile the kernel to enable IP Forwarding. THis is what i did:
1. download a kernel source from a website.
2. extract using tar -xjf
3. run make menuconfig
4. select the option IP advanced routing (I didn't see any IP Forwarding, but from research, i guess it is this option)
5. make dep
6. configure lilo.conf and run lilo
7. reboot
it took me a few days to accomplished the tasks above.
once booted, i staticly assign 192.168.1.10 to the eth0 interface.
on the laptop, i staticly assign 192.168.1.11 to the lan card.
and able to ping from laptop to eth0.
eth1 from linux got an ip from dhcp and able to ping 192.168.0.1 and use the internet.
so then i open the shell, typed in exact the following:
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -P INPUT ACCEPT
iptables -P OUTPUT ACCEPT
iptables -P FORWARD ACCEPT
the system seems taken these commands with no errors.
but problem remains, unable to ping from labtop to desktop 192.168.0.1
below is the output of route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth1
I believed routing is not working properly still. do i have to do something else? please help.
also, /etc/rc.d/rc.local is not in my linux, but i heard it is in /init.d/ , but i'm not sure which file should i place the commands in for configurations to take effect at boot time.