Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
pumrelOffline
15 Post subject: [solved] eth0 (also wlan0) not getting an IP  PostPosted: 23.08.2011, 21:42



Joined: 2010-09-14
Posts: 117
Location: Czech Republic
Status: Offline
Yesterday everything was alright and today it's broken Sad
I can't connect to my lan. aptosid can't fetch the ip address
      Code:
root@aptosid-netbook:/home/petr# ifdown eth0
Internet Systems Consortium DHCP Client 4.1.1-P1
Copyright 2004-2010 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/00:23:54:08:62:a3
Sending on   LPF/eth0/00:23:54:08:62:a3
Sending on   Socket/fallback
DHCPRELEASE on eth0 to 192.168.2.1 port 67
send_packet: Network is unreachable
send_packet: please consult README file regarding broadcast address.
Reloading /etc/samba/smb.conf: smbd only.
root@aptosid-netbook:/home/petr# ifup eth0
Internet Systems Consortium DHCP Client 4.1.1-P1
Copyright 2004-2010 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/00:23:54:08:62:a3
Sending on   LPF/eth0/00:23:54:08:62:a3
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 9
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 13
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 13
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
^C
root@aptosid-netbook:/home/petr#


      Code:
root@aptosid-netbook:/home/petr# ifconfig
eth0      Link encap:Ethernet  HWadr 00:23:54:08:62:a3 
          inet6-adr: fe80::223:54ff:fe08:62a3/64 Rozsah:Linka
          AKTIVOVÁNO VŠESMĚROVÉ_VYSÍLÁNÍ BĚŽÍ MULTICAST  MTU:1500  Metrika:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:87 errors:0 dropped:0 overruns:0 carrier:10
          kolizí:0 délka odchozí fronty:1000
          RX bytes:0 (0.0 B)  TX bytes:18150 (17.7 KiB)
          Přerušení:44

lo        Link encap:Místní smyčka 
          inet adr:127.0.0.1 Maska:255.0.0.0
          inet6-adr: ::1/128 Rozsah:Počítač
          AKTIVOVÁNO SMYČKA BĚŽÍ  MTU:16436  Metrika:1
          RX packets:1964 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1964 errors:0 dropped:0 overruns:0 carrier:0
          kolizí:0 délka odchozí fronty:0
          RX bytes:149976 (146.4 KiB)  TX bytes:149976 (146.4 KiB)


interfaces
      Code:
auto lo
iface lo inet loopback

iface eth0 inet dhcp

iface wlan0 inet manual
   wpa-debug-level 1
   wpa-roam /etc/wpa_supplicant/wpa-roam.conf

iface default inet dhcp


Everything seems to be ok to me. I can't see where the problem is Sad

_________________
Petr


Last edited by pumrel on 24.08.2011, 01:47; edited 1 time in total
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
muchan
Post subject: RE: eth0 (also wlan0) not getting an IP  PostPosted: 23.08.2011, 22:25
Moderator


Joined: 2010-09-11
Posts: 468

put
      Code:

auto eth0

above the line
      Code:

iface eth0 inet dhcp


you would need similar on the line of "iface wlan0..."
you can use "allow-hotplug eth0", to connect if/when ethernet wire is pluged in.
 
 View user's profile Send private message  
Reply with quote Back to top
pumrelOffline
Post subject: RE: eth0 (also wlan0) not getting an IP  PostPosted: 24.08.2011, 01:47



Joined: 2010-09-14
Posts: 117
Location: Czech Republic
Status: Offline
Thank you for your reply.
It was actually a fault of my router. I restarted it and everything is working ok.
Strange that my other computer could get on the internet without an issue.
Sorry Sad

_________________
Petr
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 12 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by Zafenio