|
|
|
|
![]() ![]() |
Jul 28 2005, 09:27 AM
Post
#1
|
|
|
Premium Member Group: Members Posts: 352 Joined: 2-March 05 From: Australia Member No.: 2,859 |
The following is the settings on the linux server
OS: Redhat 9 eth0: 192.168.1.98/24 eth1: 192.168.10.1/24 route-eth0 file: 192.168.1.0/24 via 192.168.1.98 route-eth1 file: 192.168.10.0/24 via 192.168.10.1 my own subnet is 192.168.10.0 internet accessing router internal port: 192.168.1.99/24 problem: 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.253 i 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 that net.ipv4.ip_forward is disabled. ok, I enabled it by adding this statement: net.ipv4.ip_forward =1 However, the routing still didn't work after i turned on the ip_forward shoud I configurate the ipchains as well? is the ipchains necessary for just routing? but i failed to use the ipchains, when i type: #ipchains -L the response is : "ipchains: Incompatible with this kernel" i guesst i should recompile the kernel, shouldn't I? |
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 4th December 2008 - 11:59 PM |