Sie sind nicht angemeldet.

1

04.05.2007, 21:10

[gelöst] /etc/conf.d/net - wpa_supplicant - syntax error

Servus GentooForum,

bin eigentlich ganz glücklich, konnte mein Notebook ohne große Probleme mit Gentoo installieren, dabei bin ich fast Newbie, aber jetzt habe ich kurz vor Schluss doch noch ein kleines Problem und wollte euch bitten mir zu helfen:

Ich probiere mein WLAN einzurichten, mit Hilfe von wpa_supplicant und einem ipw3945 - Treiber.

Folgendes Problem habe ich:

localhost linux # /etc/init.d/net.eth1 start
* Caching service dependencies ...
/etc/conf.d/net: line 17: syntax error: unexpected end of file
/etc/conf.d/net: line 17: syntax error: unexpected end of file
/etc/conf.d/net: line 17: syntax error: unexpected end of file [ ok ]
/etc/conf.d/net: line 17: syntax error: unexpected end of file
* Starting eth1
* Loading networking modules for eth1
* modules: apipa arping ccwgroup macchanger macnet rename wpa_supplicant essidnet iptunnel ifconfig ip6to4 system
* wpa_supplicant provides wireless
* ifconfig provides interface
* Configuring eth1 for MAC address 00:1....................???? [ ok ]
* Wireless radio has been killed for interface eth1
* wpa_supplicant will launch, but not associate until
* wireles radio is re-enabled for interface eth1
* Starting wpa_supplicant on eth1 ...
ioctl[SIOCSIWMODE]: Resource temporarily unavailable
Could not configure driver to use managed mode
ioctl[SIOCGIWRANGE]: Resource temporarily unavailable
ioctl[SIOCSIWAUTH]: Resource temporarily unavailable
WEXT auth param 7 value 0x1 - ioctl[SIOCSIWENCODEEXT]: Resource temporarily unavailable
ioctl[SIOCSIWENCODEEXT]: Resource temporarily unavailable
ioctl[SIOCSIWENCODEEXT]: Resource temporarily unavailable
ioctl[SIOCSIWENCODEEXT]: Resource temporarily unavailable
ioctl[SIOCSIWAUTH]: Resource temporarily unavailable
WEXT auth param 4 value 0x0 - ioctl[SIOCSIWAUTH]: Resource temporarily unavailable [ ok ]th param 5 value 0x1 -
* Starting wpa_cli on eth1 ... [ ok ]
* Waiting for association [ ok ]
* Backgrounding ...

Dazu meine /etc/conf.d/net - Datei:

config_eth0=( "192.168.82.175 netmask 255.255.255.0 brd 192.168.82.255" )
routes_eth0=( "default gw 192.168.82.1" )

modules_eth1=( "wpa_supplicant" )
wpa_supplicant_eth1="-Dwext"
config_eth1=( "dhcp" )
#config_eth1=( "192.168.82.176 netmask 255.255.255.0 brd 192.168.82.255" )
#routes_eth1=( "default gw 192.168.82.1" )
depend_eth1() { need ipw3945d }
wpa_timeout_eth1=60

Und meine /etc/wpa_supplicant/wpa_supplicant.conf:

ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=wheel
update_config=0
fast_reauth=1

network={
ssid="Blo........??????"
psk="0x0.........??????"
pairwise=TKIP
group=TKIP
priority=5
}

Falls ihr irgendwelche weiteren Infos braucht, gern, werde ich dann noch nachreichen.

Auf jeden Fall schon mal Danke für jede Hilfe!
Probleme sind zum Lösen da

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »joi« (12.05.2007, 16:48)


2

04.05.2007, 23:25

was ist denn die Zeile 17 bei dir?

3

05.05.2007, 14:03

In der Zeile 17 steht nichts drin, es ist die letzte Zeile der Datei und die ist leer. Hab schon versucht das letzte ENTER weg zu machen, aber das geht nicht so recht. Irgendetwas muss in der Datei /etc/conf.d/net noch fehlen, aber ich bin mehrere Anleitungen nochmal durchgegangen, nur kann ich nichts finden.

Dank dir schon mal für die erste Anregung
Probleme sind zum Lösen da

4

06.05.2007, 00:50

Also, konnte heute nochmal eine ganze Menge an Möglichkeiten durchprobieren, es läuft schon ganz gut, zumindest wird das WLan gefunden, aber in Mozilla oder Konqueror klappt das Inet noch nicht. Vielleicht könnt ihr mir weiter helfen?

localhost test # /etc/init.d/net.eth1 restart

* Stopping eth1
* Loading networking modules for eth1
* modules: apipa arping ccwgroup macchanger macnet rename
iwconfig wpa_supplicant essidnet iptunnel ifconfig ip6to4 system
* Bringing down eth1
* Shutting down eth1 ... [ ok ]
* Stopping wpa_cli on eth1 ... [ ok ]
* Stopping wpa_supplicant on eth1 ... [ ok ]
* Starting eth1
* Loading networking modules for eth1
* modules: apipa arping ccwgroup macchanger macnet rename wpa_supplicant
essidnet iptunnel ifconfig ip6to4 system
* wpa_supplicant provides wireless
* ifconfig provides interface
* Configuring eth1 for MAC address 00:13...... .. [ ok ]
* Starting wpa_supplicant on eth1 ...
ioctl[SIOCSIWMODE]: Resource temporarily unavailable
Could not configure driver to use managed mode
ioctl[SIOCGIWRANGE]: Resource temporarily unavailable
ioctl[SIOCSIWAUTH]: Resource temporarily unavailable
WEXT auth param 7 value 0x1 - ioctl[SIOCSIWENCODEEXT]: Resource temporarily unavailable
ioctl[SIOCSIWENCODEEXT]: Resource temporarily unavailable
ioctl[SIOCSIWENCODEEXT]: Resource temporarily unavailable
ioctl[SIOCSIWENCODEEXT]: Resource temporarily unavailable
ioctl[SIOCSIWAUTH]: Resource temporarily unavailable
WEXT auth param 4 value 0x0 - ioctl[SIOCSIWAUTH]: Resource temporarily unavailable [ ok ]th param 5 value 0x1 -
* Starting wpa_cli on eth1 ... [ ok ]
* Waiting for association [ ok ]
* Backgrounding ...


localhost test # wpa_cli

wpa_cli v0.5.7
Copyright (c) 2004-2006, Jouni Malinen <jkmaline@cc.hut.fi> and contributors
.....
Selected interface 'eth1'
Interactive mode

> status
bssid=00:13:49:05:f0:2c
ssid=BlooperLAN
id=0
pairwise_cipher=TKIP
group_cipher=TKIP
key_mgmt=WPA-PSK
wpa_state=COMPLETED
ip_address=192.168.82.27


localhost test # ifconfig

eth0 Link encap:Ethernet HWaddr 00:16:3......
inet addr:192.168.82.175 Bcast:192.168.82.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:96 errors:0 dropped:0 overruns:0 frame:0
TX packets:100 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:60601 (59.1 Kb) TX bytes:17090 (16.6 Kb)

eth1 Link encap:Ethernet HWaddr 00:.......
inet addr:192.168.82.27 Bcast:192.168.82.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:35 errors:2 dropped:8 overruns:0 frame:0
TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2824 (2.7 Kb) TX bytes:539 (539.0 b)
Interrupt:18 Base address:0xa000 Memory:da000000-da000fff

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:2 errors:0 dropped:0 overruns:0 frame:0
TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:168 (168.0 b) TX bytes:168 (168.0 b)


File: /etc/conf.d/net

config_eth0=( "192.168.82.175 netmask 255.255.255.0 brd 192.168.82.255" )
routes_eth0=( "default gw 192.168.82.1" )

modules_eth1=( "wpa_supplicant" )
wpa_supplicant_eth1="-Dwext"
#config_eth1=( "dhcp" )
#dhcp_eth1="nontp nonis"
config_eth1=( "192.168.82.27 netmask 255.255.255.0 brd 192.168.82.255" )
routes_eth1=( "default gw 192.168.82.1" )
depend_eth1() {
need ipw3945d
}
wpa_timeout_eth1=60


File: /etc/wpa_supplicant/wpa_supplicant.conf

# This is a network block that connects to any unsecured access point.
# We give it a low priority so any defined blocks are preferred.

ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=wheel
ap_scan=2

update_config=0
fast_reauth=1

network={
ssid="BlooperLAN"
proto=WPA
key_mgmt=WPA-PSK
psk="0x0......???"
pairwise=TKIP
group=TKIP
priority=5
}

--------------------------------------------------------------------------------------------------------
So weit bin ich gekommen, aber weiter geht es leider noch nicht, kann mir jemand noch helfen?

Andere Frage: mit dmesg bekomme ich fast alles was beim booten angezeigt wird, aber wie bekomme ich das was nicht angezeigt wird, die Teile die mit einem [OK] abgehakt werden?

Danke für jeden Hinweis wie ich weiter machen könnte.
Probleme sind zum Lösen da

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »joi« (06.05.2007, 00:53)


5

06.05.2007, 09:58

Hallo joi,

was sagt denn route bei Dir? Funktioniert "ping 89.12.10.68" bei Dir?

Du hast in Deine /etc/conf.d/net bei beiden Interfaces eine route eingetragen. Woher soll Linux wissen über welches Interface er nun gehen soll?

Versuch einfach mal die route von hand zu setzen.

Quellcode

1
2
route add defult gw 192.168.82.1 eth1 zum anlegen 
route del default gw 192.168.82.1 eth1 zum löschen


Viele Grüße

Andreas

6

06.05.2007, 10:00

Zitat

Andere Frage: mit dmesg bekomme ich fast alles was beim booten angezeigt wird, aber wie bekomme ich das was nicht angezeigt wird, die Teile die mit einem [OK] abgehakt werden?


Vielleicht hilft dir das weiter.

Ansonsten gibt es auch eine Kernel-Option mit der man den Konsolen-Cache soweit vergrößern kann, dass man bis ganz oben hochscrollen kann.
Frequent lock ups are a symptom of not enough memory but only in the way that nosebleeds are a symptom of gunshot wounds to the head.

7

06.05.2007, 13:32

Hey cool dank euch, hört sich sinnvoll an, werd ich heute Abend gleich mal ausprobieren und dann wieder Bescheid geben.
Probleme sind zum Lösen da

8

07.05.2007, 00:52

Achtung das war mein erster Versuch eure Anregungen zu übernehmen, hat aber leider nicht geklappt, konnte nicht schlafen und habe weiter versucht.

Ich konnte eine erste Lösung finden, ich schreibe gerade übers WLAN !!!!

Nur, ich kann die Lösung noch nicht verstehen, deswegen bitte meine nächste Antwort noch anschaun und mir weiter helfen, dann kann ich bestimmt morgen Abend meine Anfrage auf [gelöst] setzen.

Dank euch.



Meine Ausgabe auf "route"

localhost ~ # route

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
localhost * 255.255.255.0 U 0 0 0 eth0
localhost * 255.255.255.0 U 0 0 0 eth1
loopback * 255.0.0.0 U 0 0 0 lo
default localhost 0.0.0.0 UG 0 0 0 eth0
default localhost 0.0.0.0 UG 2000 0 0 eth1

PING:

ping 192.168.82.1 geht bei eingestecktem Netzwerkkabel problemlos,
wenn ich direkt anschließend das Netzwerkkabel ausstecke während wpa_gui
eine funktionierende WLan-Verbindung angibt kann ich gar nicht pingen,
in meiner Konsole werden keine Ergebnisse angezeigt und ich muss mit STRG+C
den Ping abwürgen.

Der Versuch mit add default gw 192.168.82.1 eth1
Achtung: unterschiedliche eth-Schnittstellen ausprobiert !!


localhost ~ # route add default gw 192.168.82.1 eth1 <==

localhost ~ # route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
localhost * 255.255.255.0 U 0 0 0 eth0
localhost * 255.255.255.0 U 0 0 0 eth1
loopback * 255.0.0.0 U 0 0 0 lo
default localhost 0.0.0.0 UG 0 0 0 eth1
default localhost 0.0.0.0 UG 0 0 0 eth0
default localhost 0.0.0.0 UG 2000 0 0 eth1


localhost ~ # route add default gw 192.168.82.1 eth1 <==

localhost ~ # route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
localhost * 255.255.255.0 U 0 0 0 eth0
localhost * 255.255.255.0 U 0 0 0 eth1
loopback * 255.0.0.0 U 0 0 0 lo
default localhost 0.0.0.0 UG 0 0 0 eth1
default localhost 0.0.0.0 UG 0 0 0 eth0
default localhost 0.0.0.0 UG 2000 0 0 eth1


localhost ~ # route del default gw 192.168.82.1 eth0 <==

localhost ~ # route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
localhost * 255.255.255.0 U 0 0 0 eth0
localhost * 255.255.255.0 U 0 0 0 eth1
loopback * 255.0.0.0 U 0 0 0 lo
default localhost 0.0.0.0 UG 0 0 0 eth1
default localhost 0.0.0.0 UG 2000 0 0 eth1

Hat noch jemand eine Idee, ich hatte Hoffnung dass es funktioniert, hat es aber leider nicht, schade.
Probleme sind zum Lösen da

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »joi« (07.05.2007, 01:27)


9

07.05.2007, 01:38

Fast gelöst, ich schreibe gerade über WLan:

Folgende Eingaben habe ich dazu gemacht, kann mir jemand noch erklären was das heißt und wie ich damit am besten umgehen kann.

ein "ifconfig" direkt nach dem BOOT-Vorgang:

eth0 Link encap:Ethernet HWaddr 00:16:...............
inet addr:192.168.82.175 Bcast:192.168.82.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:48 errors:0 dropped:0 overruns:0 frame:0
TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3245 (3.1 Kb) TX bytes:278 (278.0 b)

eth1 Link encap:Ethernet HWaddr 00:13................
inet addr:192.168.82.27 Bcast:192.168.82.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:50 errors:2 dropped:2 overruns:0 frame:0
TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3814 (3.7 Kb) TX bytes:539 (539.0 b)
Interrupt:18 Base address:0xa000 Memory:da000000-da000fff

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

localhost ~ # route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
localhost * 255.255.255.0 U 0 0 0 eth0
localhost * 255.255.255.0 U 0 0 0 eth1
loopback * 255.0.0.0 U 0 0 0 lo
default localhost 0.0.0.0 UG 0 0 0 eth0
default localhost 0.0.0.0 UG 2000 0 0 eth1

localhost ~ # route del default gw 192.168.82.1

localhost ~ # route del default gw 192.168.82.1 eth0
SIOCDELRT: No such process

localhost ~ # route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
localhost * 255.255.255.0 U 0 0 0 eth0
localhost * 255.255.255.0 U 0 0 0 eth1
loopback * 255.0.0.0 U 0 0 0 lo
default localhost 0.0.0.0 UG 2000 0 0 eth1

localhost ~ # ifconfig
eth0 Link encap:Ethernet HWaddr 00:16:.............
inet addr:192.168.82.175 Bcast:192.168.82.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:61 errors:0 dropped:0 overruns:0 frame:0
TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4217 (4.1 Kb) TX bytes:660 (660.0 b)

eth1 Link encap:Ethernet HWaddr 00:13:.......................
inet addr:192.168.82.27 Bcast:192.168.82.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:58 errors:2 dropped:2 overruns:0 frame:0
TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4342 (4.2 Kb) TX bytes:539 (539.0 b)
Interrupt:18 Base address:0xa000 Memory:da000000-da000fff

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

localhost ~ # route add default gw 192.168.82.1 eth1

localhost ~ # ping 192.168.82.1 (Das war noch übers LAN-Kabel)
PING 192.168.82.1 (192.168.82.1) 56(84) bytes of data.
64 bytes from 192.168.82.1: icmp_seq=1 ttl=254 time=0.852 ms
64 bytes from 192.168.82.1: icmp_seq=2 ttl=254 time=0.885 ms
64 bytes from 192.168.82.1: icmp_seq=3 ttl=254 time=0.886 ms
--- 192.168.82.1 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 1998ms
rtt min/avg/max/mdev = 0.852/0.874/0.886/0.028 ms

localhost ~ # ping 192.168.82.1 (übers WLAN aber zuvor)
PING 192.168.82.1 (192.168.82.1) 56(84) bytes of data.
--- 192.168.82.1 ping statistics ---
8 packets transmitted, 0 received, 100% packet loss, time 7010ms

localhost ~ # /etc/init.d/net.eth0 stop (WICHTIG)
* Stopping eth0
* Loading networking modules for eth0
* modules: apipa arping ccwgroup macchanger macnet rename iwconfig wpa_supplicant essidnet iptunnel ifconfig ip6to4 system
* Bringing down eth0
* Shutting down eth0 ... [ ok ]

localhost ~ # ifconfig
eth1 Link encap:Ethernet HWaddr 00:13:...............
inet addr:192.168.82.27 Bcast:192.168.82.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:75 errors:2 dropped:2 overruns:0 frame:0
TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:5464 (5.3 Kb) TX bytes:539 (539.0 b)
Interrupt:18 Base address:0xa000 Memory:da000000-da000fff

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

localhost ~ # route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
localhost * 255.255.255.0 U 0 0 0 eth1
loopback * 255.0.0.0 U 0 0 0 lo
default localhost 0.0.0.0 UG 0 0 0 eth1
default localhost 0.0.0.0 UG 2000 0 0 eth1

localhost ~ # ping 192.168.82.1 (übers WLAN, LAN-Kabel ausgesteckt - ohne Probleme !!!)
PING 192.168.82.1 (192.168.82.1) 56(84) bytes of data.
64 bytes from 192.168.82.1: icmp_seq=1 ttl=254 time=2.11 ms
64 bytes from 192.168.82.1: icmp_seq=2 ttl=254 time=2.12 ms
64 bytes from 192.168.82.1: icmp_seq=3 ttl=254 time=2.95 ms
64 bytes from 192.168.82.1: icmp_seq=4 ttl=254 time=2.08 ms
64 bytes from 192.168.82.1: icmp_seq=5 ttl=254 time=2.11 ms
64 bytes from 192.168.82.1: icmp_seq=6 ttl=254 time=2.31 ms

--- 192.168.82.1 ping statistics ---
6 packets transmitted, 6 received, 0% packet loss, time 5000ms
rtt min/avg/max/mdev = 2.086/2.284/2.952/0.308 ms
localhost ~ #

Was heißt das jetzt für mich, bin noch relativ neu bei Gentoo und verstehe das nicht so ganz, aber es freut mich riesig, Problem fast gelöst!
Probleme sind zum Lösen da

10

12.05.2007, 08:46

@joi: Mal eine Zwischenfrage: hat sich bei dir was getan?

Wenn ja, poste bitte die Neuigkeiten und wenn das Problem gelöst ist, setzte es bitte auf [gelöst].

Wenn nein, poste dein Problem (bzw. keine Änderung) und

... bitte verwende die code-tags für shell Output, sonst wird das ziemlich unleserlich verschoben, ok?
http://www.dyle.org
IM-Account (Jabber!) sind auf meiner HP ...
There is no place like /home

http://www.gentooforum.de
http://www.gentoofreunde.org

<div>how to annoy a web developer?</span>

11

12.05.2007, 17:02

Bin leider diese Woche nicht dazu gekommen weiter zu machen, daher ist noch der alte Stand gültig.

Das WLan funktioniert wenn ich das eth0-Modul (Netzwerkkabel) deaktiviere und das eth1-Modul (WLan) aktiviere, sonst nicht. Das ist relativ umständlich, daher meine Anfrage ob es da nicht etwas Besseres gibt, bzw. eine kurze Erklärung durch die ich weiter forschen kann.

Hab dennoch auf gelöst gesetzt, es funktioniert ja, der Rest wird sich im Laufe der Zeit lösen.

Quellcode

1
2
 [size=12]Die Code-Tags hab ich mir gerade angeschaut, werde zukünftige Beiträge richtig darstellen.[/size]
 
Probleme sind zum Lösen da

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »joi« (12.05.2007, 17:03)