echo 1 > /proc/sys/net/ipv4/ip_forward Claudiu Sima wrote:
> > Salut, > Vreau sa fac un router pe linux cu doua placi de retea in doua retele > si nu prea imi iese > daca dau ping pe cele doua placi de reatea imi raspunde insa daca dau ping > la un alt ip din reteua 192.168.101.0 nu mai raspunde la ping > CE ar mai trebui sa mai citesc ca sa-l pot face sa mearga > Am citit linux advanced routing and trafic control si nu prea > am am inteles cum sa -l fac sa merga > > mai jos am dat un route -n si ifconfig > > thanks > > [root@claudiu iproute2]# route -n > Kernel IP routing table > Destination Gateway Genmask Flags Metric Ref Use Iface > 192.168.101.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1 > 10.1.32.0 0.0.0.0 255.255.224.0 U 0 0 0 eth0 > 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo > 0.0.0.0 192.168.101.1 0.0.0.0 UG 0 0 0 eth1 > [root@claudiu iproute2]# ifconfig > eth0 Link encap:Ethernet HWaddr 00:00:01:00:F6:D6 > inet addr:10.1.33.125 Bcast:10.1.63.255 Mask:255.255.224.0 > UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 > RX packets:6460 errors:0 dropped:0 overruns:0 frame:3 > TX packets:5610 errors:0 dropped:0 overruns:0 carrier:0 > collisions:23 txqueuelen:100 > RX bytes:707814 (691.2 Kb) TX bytes:626092 (611.4 Kb) > Interrupt:11 Base address:0x1040 > > eth1 Link encap:Ethernet HWaddr 00:80:5F:63:73:05 > inet addr:192.168.101.220 Bcast:192.168.101.255 Mask:255.255.255.0 > UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 > RX packets:70 errors:0 dropped:0 overruns:0 frame:0 > TX packets:180 errors:0 dropped:0 overruns:0 carrier:0 > collisions:0 txqueuelen:100 > RX bytes:7067 (6.9 Kb) TX bytes:15228 (14.8 Kb) > Interrupt:11 Base address:0x1020 > > lo Link encap:Local Loopback > inet addr:127.0.0.1 Mask:255.0.0.0 > UP LOOPBACK RUNNING MTU:16436 Metric:1 > RX packets:13 errors:0 dropped:0 overruns:0 frame:0 > TX packets:13 errors:0 dropped:0 overruns:0 carrier:0 > collisions:0 txqueuelen:0 > RX bytes:1040 (1.0 Kb) TX bytes:1040 (1.0 Kb) > > [root@claudiu iproute2]# > > _________________________________ > > Claudiu Sima > [EMAIL PROTECTED] > _________________________________ > > --- > Pentru dezabonare, trimiteti mail la > [EMAIL PROTECTED] cu subiectul 'unsubscribe rlug'. > REGULI, arhive si alte informatii: http://www.lug.ro/mlist/ > > > -- Razvan Catinas Technical Department Coordinator RDS Cluj-Napoca NOC phone: +402-64-194514 fax: +402-64-438646 http://www.rdsnet.ro -- Privileged/Confidential Information may be contained in this message. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not copy or deliver this message to anyone. In such a case, you should destroy this message and kindly notify the sender by reply e-mail. --- Pentru dezabonare, trimiteti mail la [EMAIL PROTECTED] cu subiectul 'unsubscribe rlug'. REGULI, arhive si alte informatii: http://www.lug.ro/mlist/
