Please help with IP forwarding
Hello everyone
I have 2 PCs in a network One has Windows XP on it with one ethernet controller and one has Linux Fedora Core 4 on it with 2 ethernet controllers on eth0 i have the internet connection and eth1 is linked with the Windows PC the IP forwarding is enabled on the Linux PC please tell me what steps i must take to enable the internet connection on the Windows PC Thank You |
Since you already have forwarding set up on the Linux box, set the Windows systems gateway to the IP of the Linux box. You can do this in the properties of the Network Connections on the interface of the Windows box, or you can use dos...
Click Start, Run and type in cmd and hit enter. When the command prompt comes up, type in... route add 0.0.0.0 mask 0.0.0.0 [enter the IP of your Linux box's PC connection] Bob |
my eth1 IP and netmask are 10.0.0.1 255.255.0.0
windows IP 10.0.0.2 255.255.0.0 i added the gateway 10.0.0.1 to my windows pc as you told me and it does not works do i need to do something on the linux PC? to tell linux to forward the internet into eth1? |
You do need to have your Linux box set up to forward. Are you using a firewall on the Linux box? If you are using IP tables you need to make sure it's set up to do IP forwarding. You should also consider Masquerading
which is another name for Network Address Translation or NAT. Go here to learn more.... http://www.indyramp.com/masq/ipmasq-HOWTO-m.html |
All times are GMT -5. The time now is 04:02 AM. |