"INF - F. Roque Ojeda Masias" wrote:
My question is how can i make WIN1 see WIN2 ? I´ve beeing playing around with route command but it seems not to work.
It won't ever work in your setup. You're using the same network address for the two network segments, it's impossible to do routing then. All you need to do is to separate the two network segments into two network addressess and than enable routing and ip_forwarding: +---------------+ | WIN 1 | | 192.168.1.2 | | 255.255.255.0 | +-------+-------+ | | | +-------+-------+ | 192.168.1.1 | | 255.255.255.0 | | | | Linux | | | | 192.168.2.1 | | 255.255.255.0 | +-------+-------+ | | | +-------+-------+ | WIN 1 | | 192.168.2.2 | | 255.255.255.0 | +---------------+ Then you need to make sure that the routing table is properly configured, Linux should have automagicaly created created the entries when you borught the network interfaces up, check it with 'route -n', it should have entries like the following: Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo If they're not there already create them with 'route add ...' Finally you have to enable ip_forwarding: ipchains -A forward -b -s 192.168.1.0/24 -d 192.168.2.0/24 -j ACCEPT echo 1 > /proc/sys/net/ipv4/ip_forward
Asswell i would like to know how to make the routing table start with the system; when i restart the routing tables i have entered just disapere.
If you confiugred the network cards using YaST it should have already put the appropriate entries in /etc/route.conf, otherwise you can edit it and add the following entries: 192.168.1.0 0.0.0.0 255.255.255.0 eth0 192.168.2.0 0.0.0.0 255.255.255.0 eth1 rgrds, Braulio Gergull