On Monday 31 March 2003 10:30 pm, Bobo wrote: > Hi > > While use Iptables as the gateway of my LAN,I would like to use > NAT. > > I have six C class address,and I want to use it on one netcard > eth0 for NAT. > > Must I bind the six IP address with eth0 step by step under linux ? > > Could I use the six IP address in the Shell scripts while only bind > one Ip address with netcard eth0 ? > > Thanks a lot. You have to bind each address if you want routing to recognize them as valid for that interface. Also be aware that when matching in iptables you can ONLY match the main interface, ie eth0, not an extra virtual one like eth0:1. The way to distinguish between them (if necessary) in an iptables rule is by IP. j