Quote:
proplems getting an IP assigned for my windows pc
|
if i'm correct, you can just assign your windows pc a private IP address. your ISP has probably assigned you one static IP address. it appears that you have two nics on your linux box (eth0 and eth1) because you want linux to share its connection with the windows pc. eth0 is connected to your ISP/Internet; eth1 is connected to your windows pc.
the static address should only be assigned to your eth0 on your linux box (to confirm, open a terminal as root and type ifconfig -a). eth1 on your linux box and your windows pc do not need a public IP address. you can just assign them a private IP address. for linux, configure your second nic by typing (ifconfig eth1 192.168.0.1 netmask 255.255.255.0), and then add a default gateway from eth1 to eth0 by typing /sbin/route add default gw xxx.xxx.xxx.xxx where xxx equals whatever your IP address is).
for help, see
http://www.linuxheadquarters.com/how...rkconfig.shtml
now your linux network interfaces are ready to forward internet traffic when you enable forwarding. see
http://www.netfilter.org/ this is where you will edit your firewall with iptables to enable forwarding etc.
then tell your windows box that its new ip address is 192.168.0.2 and its new gateway is 192.168.0.1 (you should be able to just leave the dns servers as they are).
hope this helps