LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Configuring routing table with 2 network cards (https://www.linuxquestions.org/questions/linux-newbie-8/configuring-routing-table-with-2-network-cards-638312/)

chanakya 04-27-2008 11:14 PM

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

archtoad6 04-28-2008 02:15 PM

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.

archtoad6 05-30-2008 06:00 AM

Did that fix it?

Do you have other problems/need more help?

chanakya 06-03-2008 07:04 AM

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


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