LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-18-2008, 05:18 AM   #1
Roverius
LQ Newbie
 
Registered: Dec 2007
Posts: 4

Rep: Reputation: 0
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
 
Old 02-18-2008, 05:42 AM   #2
uncle-c
Member
 
Registered: Oct 2006
Location: The Ether
Distribution: Ubuntu 16.04.7 LTS, Kali, MX Linux with i3WM
Posts: 299

Rep: Reputation: 30
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
 
Old 02-18-2008, 05:48 AM   #3
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
And do you have forwarding enabled on the machine (echo "1" > /proc/sys/net/ipv4/ip_forward)
 
Old 02-18-2008, 06:43 AM   #4
Roverius
LQ Newbie
 
Registered: Dec 2007
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by billymayday View Post
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

Last edited by Roverius; 02-18-2008 at 06:46 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding entries to route table in C? kuronai Programming 2 04-04-2005 02:42 PM
removing and adding route juanb Linux - Networking 1 04-03-2005 08:33 AM
Route to subnet exists but I get "Network unreachable" when adding default route fciuffani Linux - Networking 4 08-18-2004 02:11 PM
Problem with adding default route... Grim Reaper Linux - Networking 1 02-22-2003 07:29 AM
Adding default route on startup? WeNdeL Linux - Newbie 2 01-08-2003 01:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration