Start by reading the Network Configuration chapter of the Debian Reference. It is available online here: http://qref.sourceforge.net/Debian/reference/ch-gateway.en.html -- Thomas Hood