
volcom
(usa Debian)
Enviado em 28/05/2010 - 16:32h
Você tem que configurar seu arquivo de rede /etc/network/interfaces (isso se realmente usa ubuntu) como root para receber ips via DHCP.
Mais ou menos assim:
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug eth0
iface eth0 inet dhcp
allow-hotplug eth1
iface eth1 inet static
address 192.168.1.1
netmask 255.255.255.0
Levando-se em consideração que tem duas placas de rede e a que recebe o sinal de internet é a eth0 e a segunda tem IP fixo eth1 da sua rede interna para distribuir como proxy.
Depois disso reinicie o serviço:
/etc/init.d/networking stop
/etc/init.d/networking start
Rode o client de DHCP para pegar o IP:
dhclient eth0
Ele deve retornar algo assim:
There is already a pid file /var/run/dhclient.pid with pid 3286
killed old client process, removed PID file
Internet Systems Consortium DHCP Client V3.1.1
Copyright 2004-2008 Internet Systems Consortium.
All rights reserved.
For info, please visit
http://www.isc.org/sw/dhcp/
Listening on LPF/eth0/00:08:54:2c:55:77
Sending on LPF/eth0/00:08:54:2c:55:77
Sending on Socket/fallback
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPACK from 189.121.192.1
bound to 189.121.192.9 -- renewal in 5110 seconds.
Eu uso Virtua também, portanto seu IP deve ser algo como 189.121 ou somente 189.xxx.xxx.xxx
Espero que ajude.
Abraço