No Network after fresh install

Kernels & Hardware, configuring network, installing services

No Network after fresh install

Postby Linuxee » 2013-07-26 08:45

Not really a new topic, I know. But I did not come to a solution yet:
After a fresh netinstall-CD installation, with everything working fine, I rebootet into the new Debian Wheezy 7.1. I am using only wlan to connect to my router, which was no problem at install. Now in the installed system, there is no network. Some checks I did:
Code: Select all
lspci |grep -i net
01:07.0 Ethernet controller: Atheros Communications Inc. AR2413/AR2414 Wireless Network Adapter [AR5005G(S) 802.11bg] (rev 01)
01:0b.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)

Code: Select all
modprobe |grep ath5k
ath5k                 115240  0
ath                    17114  1 ath5k
mac80211              171389  1 ath5k
cfg80211              113445  3 mac80211,ath,ath5k


So far, so good. Scanning for networks revealed that the network is not activated. Right, so I did
Code: Select all
ip link set wlan0 up

After that, scanning for wireless networks worked:
Code: Select all
iwlist scanning
wlan0     Scan completed :
          Cell 01 - Address: 00:22:4K:93:CO:06
                    Channel:1
                    Frequency:2.412 GHz (Channel 1)
                    Quality=59/70  Signal level=-51 dBm 
                    Encryption key:on
                    ESSID:"Homenet"
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s
                    Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s
                              36 Mb/s; 48 Mb/s; 54 Mb/s
                    Mode:Master
                    Extra:tsf=0000000177a41234
                    Extra: Last beacon: 560ms ago
                    IE: Unknown: 0005506C75746F
                    IE: Unknown: 010482848B96
                    IE: Unknown: 030101
                    IE: Unknown: 2A0104
                    IE: IEEE 802.11i/WPA2 Version 1
                        Group Cipher : CCMP
                        Pairwise Ciphers (1) : CCMP
                        Authentication Suites (1) : PSK
                    IE: Unknown: 32080C1218243048606C
                    IE: Unknown: DD0A0800280101000200FF0F
                    IE: Unknown: DD180050F2020101800003A4000027A4000042435E0062322F00

But no attempt to connect to a network. What's listed in interfaces?
Code: Select all
cat /etc/network/interfaces
auto lo wlan0
iface lo inet loopback

So I amended this to
Code: Select all
auto lo wlan0
iface lo inet loopback

# The primary network interface
allow-hotplug wlan0
iface wlan0 inet dhcp

/etc/init.d networking restart

No joy...
Last edited by Linuxee on 2013-07-26 10:17, edited 2 times in total.
Linuxee
 
Posts: 4
Joined: 2013-07-26 08:06

Re: No Network after fresh install

Postby Linuxee » 2013-07-26 08:55

Hit the wrong button, its not yet finished... :oops:

My questions are:
    - How to I get the system to try to connect to a wlan? I should add that I do not use a GUI (actually I did a XFCE4 install, but neither startx, X or xfce would do something), therefore I can use only command line tools that are available after install
    - How do I make this permanent, i.e. automatic network connection at boot?
    - /etc/resolv.conf: is "search domains" = my router? Or, should I list the IP adresses of the name servers I am using here?

I saw a couple of posts on this already, but I believe it is not a proprietary firmware issue. So any advice would be appreciated.

Linuxee
Linuxee
 
Posts: 4
Joined: 2013-07-26 08:06

Re: No Network after fresh install

Postby bw123 » 2013-07-26 14:13

Linuxee wrote:Hit the wrong button, its not yet finished... :oops:

My questions are:
    - How to I get the system to try to connect to a wlan? I should add that I do not use a GUI (actually I did a XFCE4 install, but neither startx, X or xfce would do something), therefore I can use only command line tools that are available after install
    - How do I make this permanent, i.e. automatic network connection at boot?
    - /etc/resolv.conf: is "search domains" = my router? Or, should I list the IP adresses of the name servers I am using here?

I saw a couple of posts on this already, but I believe it is not a proprietary firmware issue. So any advice would be appreciated.

Linuxee


it's okay, you're almost there, if you need wpa2 for your router there is some more setup for wpa-supplicant. you don't have to use the 'restart' line in interfaces file. dhcp will take care of resolv.conf

you do have dhcp installed right?

Code: Select all
$ apt-cache policy isc-dhcp-client
isc-dhcp-client:
  Installed: 4.2.2.dfsg.1-5+deb70u6
  Candidate: 4.2.2.dfsg.1-5+deb70u6
  Version table:
 *** 4.2.2.dfsg.1-5+deb70u6 0
        500 http://http.us.debian.org/debian/ wheezy/main amd64 Packages
        100 /var/lib/dpkg/status

User avatar
bw123
 
Posts: 3786
Joined: 2011-05-09 06:02

Re: No Network after fresh install

Postby Linuxee » 2013-07-26 15:41

Nobody?
Linuxee
 
Posts: 4
Joined: 2013-07-26 08:06

Re: No Network after fresh install

Postby AnInkedSoul » 2013-07-26 16:40

my one good deed for the day....will certainly come back to haunt me I am sure

/etc/network/interfaces
Code: Select all
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

auto wlan0
iface wlan0 inet dhcp
wpa-psk 12345678
wpa-ssid stayout


replace 12345678 with your password
replace stayout with your network name
AnInkedSoul
 
Posts: 461
Joined: 2010-06-11 05:05

Re: No Network after fresh install

Postby Linuxee » 2013-08-02 16:42

First, thanks to AnInkedSoul. It did not work for me since I did not understand the backround. Whether it is the "auto lo" part (which in the below solution is deleted) or the skipped log-out log-in step, I dont know. The solution looks almost identical but removes all unneccessary parts, so maybe thats the trick.

I had spent a lot of time to figure this out. For those who stumble over the same hazzle, here is the solution.
1) Read the WiFi section in Gentoo Handbook. Best documentation available, understandable to non-experts. It is neccessary to understand the underlying system and the later Debian documentation.
2) supplement the information with the same from Arch.
3) Now search for Debian WiFi (it is here: https://wiki.debian.org/WiFi/HowToUse). Debian is using scripts that make a difference to more basic Distros as above.
4) wpa_supplicant is the key, a console based network manager that supports WPA2. It took me quite a while though to understand that /etc/network/interfaces will be read by wpa_supplicant in a way like a wpa_supplicant.conf. In Debian, the latter does not exist.
5)
Code: Select all
sudo nano /etc/network/interfaces
auto wlan0
iface wlan0 inet dhcp
    wpa-ssid "homenetworkname"
    wpa-psk "password"

replace wlan0 and the quoted parts with your personal settings. The "auto" part will load the settings at each login.

It's simple when you know it. But the documentation on that is made from experts for professionals

Maybe somebody else will find this helpful.

Cheers,

Linuxee
Linuxee
 
Posts: 4
Joined: 2013-07-26 08:06


Return to System configuration

Who is online

Users browsing this forum: No registered users and 12 guests

fashionable