Abibula Aygun wrote: > Salutare tuturor. > Am o mica dilema , cum pot sa fac routare din IP-uri clasa C tot in clasa C? > Ideea este ca am un amic care ia internet de la o sala de net . > Pe eth0 are 10.0.0.123 iar pe eth1 vrea sa aiba 192.168.0.1. > In eth0 se infinge cablul care vine de la sala de net iar prin eth1 vrea sa > dea net la vreo 6 calculatoare . > Nu ma dumiresc cum sa fac acest lucru. > > > Ceva idei ? Sfaturi ? > > > Cu respect , > > Aygun > > > --- > Detalii despre listele noastre de mail: http://www.lug.ro/ > > > >
ifconfig eth0 10.0.0.123 netmask 255.255.255.0 up ifconfig eth1 192.168.0.1 netmask 255.255.255.0 up iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -j SNAT --to-source 10.0.0.123 echo 1 >/proc/sys/net/ipv4/ip_forward .......................................................................... Privileged/Confidential Information may be contained in this message. If you are not the addressee indicated in this message (or responsible fordelivery 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. --- Detalii despre listele noastre de mail: http://www.lug.ro/
