LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-28-2008, 12:14 AM   #1
chanakya
LQ Newbie
 
Registered: Apr 2008
Posts: 2

Rep: Reputation: 0
Configuring routing table with 2 network cards


Hi,

I am new to Linux and have recently set up a Linux server that acts as the gateway. The Linux box has two network cards with the following details:

eth1: IP address 192.168.0.1 (this is for the LAN)
eth0 (for connecting to the internet)
Static IP assigned by the ISP 125.99.66.82
Gateway IP assigned by the ISP 125.99.64.1

I am not able to set up the routing table to allow all machines to access the net through Linux. I suspect it is because of the mismatch in the third portion of the gateway IP (64) and static IP (66). The setup however works fine on Windows (the server is a dual OS machine).

I would appreciate any suggestions.

Thanks
 
Old 04-28-2008, 03:15 PM   #2
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 233Reputation: 233Reputation: 233
Check the virtual file:
Code:
cat /proc/sys/net/ipv4/ip_forward
"0" == no ip forwarding, "1" == ip forwarding is on.

If it's not on you turn it on by:
Code:
echo 1  > /proc/sys/net/ipv4/ip_forward

You may have other issues, but this one is essential & often overlooked.
 
Old 05-30-2008, 07:00 AM   #3
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 233Reputation: 233Reputation: 233
Did that fix it?

Do you have other problems/need more help?
 
Old 06-03-2008, 08:04 AM   #4
chanakya
LQ Newbie
 
Registered: Apr 2008
Posts: 2

Original Poster
Rep: Reputation: 0
Apologies for the highly delayed response - I was traveling on work and did not get an opportunity to revert.

I checked out ip forwarding and it was turned on. I went into Webmin and started checking various network settings - and voila! The Shorewall setting had a reference to an IP address that was assigned by my previous ISP. I updated to the new IP address and everything works fine.

Again - sorry for the delay.

Regards
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Need help routing traffic on 2 network cards dan6767 Linux - Networking 13 11-19-2004 10:40 AM
2 network cards, 2 network connections - routing problem tvojvodi Linux - Networking 4 02-24-2004 04:26 PM
Routing Problem with two network cards a.tangemann Linux - Networking 0 02-23-2004 05:07 AM
ip routing table. getting network cards working hamish Linux - Networking 2 11-30-2003 06:58 PM
Adding network to routing table daveb93 Linux - Networking 8 10-10-2003 03:53 AM


All times are GMT -5. The time now is 09:01 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration