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 |
Check the virtual file:
Code:
cat /proc/sys/net/ipv4/ip_forward 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. |
Did that fix it?
Do you have other problems/need more help? |
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. |