Jump to content
xisto Community
Sign in to follow this  
jedipi

Linux Server Routing Failed! please help me?

Recommended Posts

The following is the settings on the linux serverOS: Redhat 9eth0: 192.168.1.98/24eth1: 192.168.10.1/24route-eth0 file:192.168.1.0/24 via 192.168.1.98route-eth1 file:192.168.10.0/24 via 192.168.10.1my own subnet is 192.168.10.0internet accessing router internal port: 192.168.1.99/24problem:i want to use this linux server as a router between the real router and the subnet. all the internet request from my subnet will be forward to the real router.my client pc in the subnet has address :192.168.10.253i can ping the 192.168.1.98 successfully from the client pc, but failed by ping 192.168.1.99.On the server side, i can ping any internet address successfully.so guess there are some problem of routing, who can help me? thanks a million!Today, I checked my /etc/sysctl.conf again, and found thatnet.ipv4.ip_forward is disabled.ok, I enabled it by adding this statement: net.ipv4.ip_forward =1However, the routing still didn't work after i turned on the ip_forwardshoud I configurate the ipchains as well? is the ipchains necessary for just routing?but i failed to use the ipchains, when i type:#ipchains -Lthe response is : "ipchains: Incompatible with this kernel"i guesst i should recompile the kernel, shouldn't I?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.