nano /etc/resolv.conf
para iniciar/parar/reiniciar o serviço de rede use o comando:
# /etc/init.d/networking {start|stop|restart}
iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -j MASQUERADE
echo "1" > /proc/sys/net/ipv4/ip_forward
# Limpando as tabelas
iptables -F
iptables -t nat -F
iptables -t mangle -F
* servidor dhcp
instalando
# apt-get install dhcp3-server
editando conf
# nano /etc/dhcp3/dhcpd.conf
shared-network WORKSTATIONS { subnet 192.168.0.0 netmask 255.255.255.0 { default-lease-time 21600; max-lease-time 21600; option subnet-mask 255.255.255.0; option broadcast-address 192.168.0.255; option routers 192.168.0.1; option domain-name-servers 200.170.0.133, 200.155.255.20; option domain-name "nkosi.org"; range 192.168.0.2 192.168.0.11; } }
Nessa opção será necessário inserir usuário e senha do seu provedor.