Hello,
My objective: connect wireless (wlan0) to internet at boot with ifup. I would also like to assign a specific ip to the adapter, but first let’s get it working without this extra, shall we?
Why not NetworkManager? I want to turn an old desktop into a server. As I lack cables for the moment, I will connect it with a wireless adapter. First, I’m trying this with my laptop, because it’s a l0t faster than my old desktop. The network involves WPA2 personal. I tried both with passphrase and with the psk returned by wpa_passphrase.
What works: NetworkManager
What doesn’t: Internet with ifup, but I can access local machines through ssh.
Is there any additional information that I must provide to ifup that I don’t have to with NetworkManager?
I searched, and kept stumbling on instructions involving /etc/network/interfaces, obviously for Debian, so that does not help us.
When I’m finished setting this up in yast, it hooks for quite some time at “Activate network services” (a minute or two). A lot more than when I switch on to NetworkManager.
I’m not a networking expert, but I will try to provide useful info.
If I issue ifdown wlan0, after yast setup, I get
#ifdown wlan0 -o debug
wlan0 device: Intel Corporation Centrino Wireless-N 1000
executing additional global stop script if-down.d/21-cifs
executing additional global stop script if-down.d/21-dhcpcd-hook-samba
executing additional global stop script if-down.d/ndp-proxy
scripts/ifdown-wireless: line 692: kill: (8082) - No such process
Huh??
After this, the output of ifup:
#ifup wlan0 -o debug
wlan0 device: Intel Corporation Centrino Wireless-N 1000
wlan0 warning: WPA configured, but is untested
wlan0 warning: with this device
wlan0 starting wpa_supplicant
Starting DHCP4 client on wlan0. . .
wlan0 IP address: 192.168.1.102/24
If only it said what’s up with the “warning: with this device”…
DHCP6 disabled. I’m not bothering with it, as the ip6 tab is not even accessible under NetworkManager for that connection.
Ping: no problem to ping the router, but for targets out there, it instantly says “connect: Network is unreachable”.
ifstatus: it says that we got a connection though, but I would expect 54 Mb/s.
#ifstatus wlan0 #can't compare with NetworkManager to see where it crashes
wlan0 device: Intel Corporation Centrino Wireless-N 1000
DHCP4 client (dhcpcd) is running
IP address: 192.168.1.102/24
3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1492 qdisc mq state UP qlen 1000
link/ether <<adapter's mac address>> brd ff:ff:ff:ff:ff:ff
inet 192.168.1.102/24 brd 192.168.1.255 scope global wlan0
inet6 fe80::226:c7ff:fe8c:1656/64 scope link
valid_lft forever preferred_lft forever
Configured IPv4 routes for interface wlan0:
169.254.0.0/16 - - wlan0
Active IPv4 routes for interface wlan0:
169.254.0.0/16 scope link
1 of 1 configured IPv4 routes for interface wlan0 up
wlan0 is up
wlan0 IEEE 802.11bgn ESSID:<< my network>>
Mode:Managed Frequency:2.427 GHz Access Point: <<router's mac address>>
Bit Rate=5.5 Mb/s Tx-Power=14 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
Link Quality=48/70 Signal level=-62 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:40 Missed beacon:0
About the adapter:
# from /sbin/lspci -v
02:00.0 Network controller: Intel Corporation Centrino Wireless-N 1000
Subsystem: Intel Corporation Centrino Wireless-N 1000 BGN
Flags: bus master, fast devsel, latency 0, IRQ 44
Memory at b2400000 (64-bit, non-prefetchable) [size=8]
Capabilities: [c8] Power Management version 3
Capabilities: [d0] MSI: Enable+ Count=1/1 Maskable- 64bit+
Capabilities: [e0] Express Endpoint, MSI 00
Capabilities: [100] Advanced Error Reporting
Capabilities: [140] Device Serial Number <<mac address>>
Kernel driver in use: iwlwifi
Reboot? Same results.
Why reboot? For lack of a better idea.
Setup:
HP Pavilion dv5 | opensuse 12.2 x86_64 | KDE4[/size]