igorgadelha
(usa Ubuntu)
Enviado em 27/01/2011 - 12:36h
tentei das duas formas e nenhuma deu resultado.
=/
a mascara que ele ta pegando é 255.255.0.0, e a máscara certa é a 255.255.255.0
igor@igor-laptop:~$ sudo su
[sudo] password for igor:
root@igor-laptop:/home/igor# dhclient eth0
Internet Systems Consortium DHCP Client V3.1.3
Copyright 2004-2009 Internet Systems Consortium.
All rights reserved.
For info, please visit
https://www.isc.org/software/dhcp/
Listening on LPF/eth0/00:23:54:04:be:3d
Sending on LPF/eth0/00:23:54:04:be:3d
Sending on Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 13
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 14
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 10
^[[BDHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 12
route -n
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
^[No DHCPOFFERS received.
No working leases in persistent database - sleeping.
root@igor-laptop:/home/igor# route -n
Tabela de Roteamento IP do Kernel
Destino Roteador MáscaraGen. Opções Métrica Ref Uso Iface
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
root@igor-laptop:/home/igor# route -n
Tabela de Roteamento IP do Kernel
Destino Roteador MáscaraGen. Opções Métrica Ref Uso Iface
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
root@igor-laptop:/home/igor# nslookup
www.google.com.br
;; connection timed out; no servers could be reached
root@igor-laptop:/home/igor# ^C
root@igor-laptop:/home/igor# dhclient
There is already a pid file /var/run/dhclient.pid with pid 1369
killed old client process, removed PID file
Internet Systems Consortium DHCP Client V3.1.3
Copyright 2004-2009 Internet Systems Consortium.
All rights reserved.
For info, please visit
https://www.isc.org/software/dhcp/
SIOCSIFFLAGS: Unknown error 132
SIOCSIFFLAGS: Unknown error 132
Listening on LPF/wlan0/00:15:af:ca:64:23
Sending on LPF/wlan0/00:15:af:ca:64:23
Listening on LPF/eth0/00:23:54:04:be:3d
Sending on LPF/eth0/00:23:54:04:be:3d
Sending on Socket/fallback
receive_packet failed on wlan0: Network is down
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 3
send_packet: Network is down
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 8
send_packet: Network is down
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 14
send_packet: Network is down
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 14
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 15
send_packet: Network is down
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 20
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 18
send_packet: Network is down
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 11
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 3
send_packet: Network is down
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
root@igor-laptop:/home/igor# ifconfig
eth0 Link encap:Ethernet Endereço de HW 00:23:54:04:be:3d
endereço inet6: fe80::223:54ff:fe04:be3d/64 Escopo:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Métrica:1
pacotes RX:5 erros:0 descartados:0 excesso:0 quadro:0
Pacotes TX:32 erros:0 descartados:0 excesso:0 portadora:4
colisões:0 txqueuelen:1000
RX bytes:324 (324.0 B) TX bytes:6995 (6.9 KB)
IRQ:27
eth0:avahi Link encap:Ethernet Endereço de HW 00:23:54:04:be:3d
inet end.: 169.254.6.1 Bcast:169.254.255.255 Masc:255.255.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Métrica:1
IRQ:27
lo Link encap:Loopback Local
inet end.: 127.0.0.1 Masc:255.0.0.0
endereço inet6: ::1/128 Escopo:Máquina
UP LOOPBACK RUNNING MTU:16436 Métrica:1
pacotes RX:676 erros:0 descartados:0 excesso:0 quadro:0
Pacotes TX:676 erros:0 descartados:0 excesso:0 portadora:0
colisões:0 txqueuelen:0
RX bytes:54256 (54.2 KB) TX bytes:54256 (54.2 KB)
root@igor-laptop:/home/igor# nslookup
www.google.com.br
;; connection timed out; no servers could be reached
root@igor-laptop:/home/igor# dhclient eth0
There is already a pid file /var/run/dhclient.pid with pid 2842
killed old client process, removed PID file
Internet Systems Consortium DHCP Client V3.1.3
Copyright 2004-2009 Internet Systems Consortium.
All rights reserved.
For info, please visit
https://www.isc.org/software/dhcp/
Listening on LPF/eth0/00:23:54:04:be:3d
Sending on LPF/eth0/00:23:54:04:be:3d
Sending on Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 10
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 19
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 9
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 9
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
root@igor-laptop:/home/igor# route -n
Tabela de Roteamento IP do Kernel
Destino Roteador MáscaraGen. Opções Métrica Ref Uso Iface
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
root@igor-laptop:/home/igor# dhcooffer
dhcooffer: comando não encontrado
root@igor-laptop:/home/igor# gedit /etc/resolv.conf
root@igor-laptop:/home/igor#
no resolv.conf tem apenas uma linha escrita.
nao sei se ajuda mas a internet vem pra mim por Thomson TG508.
Obrigado.