Use IP aliasing should work. Only gotcha is all networks must run into the same hub. Also you'll need to add the appropriate ipchains rules yourself. Just run the following on your box (provided your netmask is /24): ifconfig eth0:0 192.168.2.x netmask 255.255.255.0 broadcast 192.168.2.255 ifconfig eth0:1 192.168.3.x netmask 255.255.255.0 broadcast 192.168.3.255 ifconfig eth0:2 192.168.4.x netmask 255.255.255.0 broadcast 192.168.4.255 Tuan On Fri, 15 Jun 2001, Charrua wrote: > > Hi, I'm presently using one PC with Linux to masquerade an Internet > > connection. My current situation is: > > > > Real Ip ----------- Linux -------------- Private Network > > 200.40.10.35 192.168.1.0 > > > > I now need to do it in the following way: > > > > real Ip ----------- Linux -------------- Private network > > 200.40.10.35 192.168.1.0 > > 192.168.2.0 > > 192.168.3.0 > > 192.168.4.0 > > > > As far as I know, for what I have read, to do this I have to add to the > > Linux box a network card for each sub-network (which means I would have to > > place 4 additional network cards. > > Is there any form of doing this with only one network card? > > If with ipchains is the only way, could I do it with iptables? > > > > Thanks for your help, > > > > Andrés > > > > > - > : send the line "unsubscribe linux-net" in > the body of a message to majordomo@vger.kernel.org > -- Tuan Hoang The MITRE Corporation tuan@optimus.mitre.org - : send the line "unsubscribe linux-net" in the body of a message to majordomo@vger.kernel.org