Router setup on redhat linux 9.0 problem
Hi,
I am new to linux. I want to setup a router on linux PC with following config:
GW-------SW-------------[eth0 linux box with redhat 9.0 eth1]--------client pc
Eth0: 192.168.10.40 with 192.165.10.0 network
Router/GW: 192.168.10.1
Eth1: 192.168.20.1 with 192.168.20.0 network
Client PC: 192.168.20.25
I want to route any type of traffic between eth0 and eth1. What do I need to do?
What is the basic config for router setup?
At present I am able to ping from linux box towards both sides but not from client pc to GW.
Here is “route” command output:
192.168.20.0 192.168.20.1 255.255.255.0 UG 0 0 0 eth1
192.168.20.0 * 255.255.255.0 U 0 0 0 eth1
192.168.10.0 192.168.10.40 255.255.255.0 UG 0 0 0 eth0
192.168.10.0 * 255.255.255.0 U 0 0 0 eth0
169.254.0.0 * 255.255.0.0 U 0 0 0 eht1
127.0.0.0 * 255.0.0.0 U 0 0 0 l0
default 192.168.10.1 0.0.0.0 UG 0 0 0 eth0
and
I have enabled IP-forwarding using
< echo "1" > /proc/sys/net/ipv4/ip_forward >
And FORWARD_IPV4=yes in sysctl.conf file.
Please let me know where the things going wrong?
Thanks,
Thiru
|