Quote:
Originally posted by ozymandias
On the second machine I am using manual connection with an IP address of 192.168.0.100 and a gateway of 192.168.0.1
|
However, your first machine also uses 192.168.0.100 for its IP address, which isn't going to work:
eth1 Link encap:Ethernet HWaddr 00:0B:6A:CE:0B:8C
inet addr:192.168.0.100 Bcast:192.168.0.255 Mask:255.255.255.0
I suggest you reconfigure eth1 to use IP address 192.168.0.1 since it is normal practice to have a gateway (which your Debian box will be) at .1. Give the second machine an IP address of 192.168.0.2 and route add default gw 192.168.0.1
To give the second machine access to the internet, you'll want to set up NAT routing on the Debian box and enable packet forwarding. Here's how to do it in Mandrake - I'm not sure if Debian differs:
/sbin/modprobe iptable_nat
/sbin/iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
echo 1 > /proc/sys/net/ipv4/ip_forward
You'll also want to enter your ISP nameserver details on the second machine. You'll find these in /etc/resolv.conf on the Debian machine when your connection is up.