for example.
If.... your hosts address is 192.65.43.100 the gateway is 192.65.43.1 and the network you want to route to in 192.65.100.xxx then the command will be.... route -p add 192.65.100.0 mask 255.255.255.0 192.65.43.1 The -p makes the route permanent. PS: dupa name esti roman? Regards Lavinius (Romio) Petru [EMAIL PROTECTED] www.rom-tech.net ************************************************** Privileged and confidential information may be in this message. If you are not the intended addressee, please treat this message as confidential, contact me immediately, discard the message, and do not use or retain its contents. Thank you. ************************************************** ----- Original Message ----- From: "Razvan Cosma" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, November 27, 2001 7:35 PM Subject: router with one interface > Hello, > Any idea on how to get two computers to share the same ip if the linux box > only has one interface? the basic sheme would be: > ISP (1.2.3.4) ---- eth0 (1.2.3.5) Linux > ---- eth0:0 (192.168.1.1) box > | > ----(192.168.1.2) box #2 > i have tried > iptables -t nat -A POSTROUTING -s 192.168.1.0/255 -j SNAT --to-source > 1.2.3.5 > ping from 192.168.1.2 to 1.2.3.5 :works > ping from 192.168.1.2 to 1.2.3.4 :timeout :( > > ping www.somwhere.com -I 192.168.1.1 :works > /proc/sys/net/ipv4/ip_forward:1 > all necessary modules loaded > > still..? > > _______________________________________________ Linux-users mailing list Archives, Digests, etc at http://linux.nf/mailman/listinfo/linux-users