dhcp says "wrong interface name: "ath0"
Is this normal when you don't use "eth0" as your interface, or have I got something wrong? It works, but I'm not comfortable seeing an error from dhcp.
I have configured a Netgear WG311T wireless card on my Debian 2.6.8 system a bit differently from what I found in the documentation; mainly because I was having a lot of problems getting the thing to connect to my router. And since I wound up with a script that worked, I used it. I never got wpa_supplicant working, and removed it from my system. I'm using madwifi. Here's what I wound up with in my config files: /etc/network/interfaces: (relevant lines) auto ath0 iface ath0 inet dhcp pre-up sh /etc/network/ath0/ath0.sh /etc/network/ath0/ath0.sh: #!/bin/sh /sbin/iwconfig ath0 essid OurHouse channel 8 ap any key FFFFFFFFFF restricted /sbin/iwconfig ath0 mode Managed txpower auto rate 11M auto sens -80 commit /sbin/iwpriv ath0 authmode 2 /sbin/ifconfig ath0 up echo "ath0 configured" exit 0 /etc/dhcp/config: (relevant lines) case ${INTERFACE} in eth0 | ath0) Thanks for any comments and help clearing this error/warning(?) message. |
After more digging, this was pretty easy to fix. I simply added one line to the script dhcpcd.exe as follows:
/etc/dhcpc/dhcpcd.exe: case ${INTERFACE} in eth*) ;; wlan*) ;; ath*) ;; <<<<<======= added this line *) logger -s -p local0.err -t dhcpcd.exe "wrong interface name \"${INTERFACE}\"" exit 1 ;; esac |
Good job!
Thanks for posting your solution -- it's the way LQ is supposed to work. |
Quote:
|
>>dhcpcd.EXE? <<<
You might try actually looking at the file, mate. |
I know that file. Just thought it's funny to see an .exe file in /etc directory.
|
I thought it was strange, too. I didn't know it was a script file until I grepped for the error message and saw a script response. I had just assumed that a .exe was a compiled program of some sort.
|
.exe usually is used in Windoze world.
|
I finally revisited using wpa_supplicant on my system. It's a lot easier now that I've done this stuff a few times. I think my original problem was in getting a working wpa_supplicant.conf file created. This works better. Note, this will overwrite any existing wpa_supplicant.conf
Code:
/usr/bin/wpa_passphrase "MySSID" "MyPassphrase" > /etc/wpa_supplicant.conf Code:
auto ath0 |
[B]Thanks for the suggestion Qboy-
--------------------------------- QUESTION: I've just installed the wpa_supplicant and the the file is /etc/wpa_supplicant.conf but it shows a change in the file as /etc/wpa_supplicant.conf.rpmnew which one should I use?? _______________________________________________________________ CHANGES: -network={ psk=xxxxxxxxx scan_ssid=1 ssid="my network" } -network={ psk=xxxxxxxxxx scan_ssid=1 ssid="Cell2network" } -network={ psk=xxxxxxxxxx scan_ssid=1 ssid="linksud" } -network={ psk=xxxxxxxxxxxxxxxxxxxxxxx scan_ssid=1 ssid="My network" } ____________________________________________________________ >>BLACKHOLE<< |
I'm not sure what rpmnew is all about, but the file is denoted by the command that you use to run wpa_supplicant. Note the "-c" option.
"/sbin/wpa_supplicant -Bw -Dwext -c/etc/wpa_supplicant.conf -iath0" Do you really have 4 access points (routers) that you want to connect to? Use the "wpa_passphrase" command that I posted above. If you like, send it to a different file and run wpa_supplicant with the "-c" pointing to that other file. Here is a config I just generated for a pretend AP, along with the command I actually used to generate it. Code:
bob@wendy:~$ /usr/bin/wpa_passphrase "fooessid" "foo passphrase" |
All times are GMT -5. The time now is 10:38 AM. |