LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Adding a route for use with 2 NIC (https://www.linuxquestions.org/questions/linux-networking-3/adding-a-route-for-use-with-2-nic-621961/)

Roverius 02-18-2008 05:18 AM

Adding a route for use with 2 NIC
 
Hi,

I have a situation where i use a Mandrake PC which has 2 NIC installe.
eth0 has a fixed ip adres and supply's ip-adresses to other machines connected on this eth0 (used with DHCPD)

The eth1 gets a ip-adres from another server in the network

To surf the internet on the Linux machine gets no problem.

I have connected a Windows PC on the ETH0 network and gets also a ip-adress from this network.
If i ping from the WIndows machine, i get from both cards a reply.
The problem now is that i cannot connect the internet on the windows machine. How should i add this in the routing tables on both machines.

IP-adress:
ETH0 = 10.62.0.1 (FIX)
ETH1 = 10.25.101.110 (lease) (this is also where i go on the internet with

Windows machine gets : 10.62.0.246

Thx in advance

Roverius

uncle-c 02-18-2008 05:42 AM

Hello,
Have you gone "Network Connections" and altered the settings on your Windows machine so that it uses the "Internet Linux" machine's IP as gateway ? Just thinking out aloud, so perhaps someone more learned could correct me if I'm wrong.

Cheers,
UC

billymayday 02-18-2008 05:48 AM

And do you have forwarding enabled on the machine (echo "1" > /proc/sys/net/ipv4/ip_forward)

Roverius 02-18-2008 06:43 AM

Quote:

Originally Posted by billymayday (Post 3061204)
And do you have forwarding enabled on the machine (echo "1" > /proc/sys/net/ipv4/ip_forward)

I have added the IPV4 forwarding so it is permanent.

Still i have no result.

Ping from the windows pc to both cards on the linux is OK.


This setup is how it looks like

WIN -----> ETH0 (fix)
**********ETH1 lease ------> internet proxy


All times are GMT -5. The time now is 09:42 AM.