wlan und dhcp..?

Post Reply
Message
Author
David887

wlan und dhcp..?

#1 Post by David887 »

Hallo,
bin neu hier und habe eigentlich schon ein bisschen Erfahrung mit Linux,
aber das Thema wlan treibt mich grade ein wenig in den Wahnsinn..
Also folgendes: Ich habe ein F-Siemens Amilo Pro Laptop mit Intel 2200BG
eingebaut. Dieser Adapter scheint auch zu funktionieren, wahlweise mit dem
ipw2200 kernel-modul oder (aktuell) mit ndiswrapper.
Mittlerweile gibt mir iwconfig:

Code: Select all

root@slack:/etc/rc.d# iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.

Warning: Driver for device wlan0 recommend version 18 of Wireless Extension,
but has been compiled with version 17, therefore some driver features
may not be available...

wlan0     IEEE 802.11g  ESSID:"medion"
          Mode:Managed  Frequency:2.412 GHz  Access Point: 00:04:0E:48:31:A1
          Bit Rate:54 Mb/s
          RTS thr:1600 B   Fragment thr:2304 B
          Encryption key:...  (Der ist ja nicht relevant..)
          Power Management:off
          Link Quality:46/100  Signal level:-56 dBm  Noise level:-256 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0
Also findet sie den Router (heisst Medion(..) , ist aber ne Fritz!Box SL WLAN).
Und jetzt beginnen die Probleme: Im Moment benutze ich den Ethernet-Adapter mit statischer IP (und das habe ich nicht vor zu ändern). Das hatte ich auch mit Wlan vor, jedoch hörte ich des öfteren, dass die Router das nicht so mögen.
Also gut, ich mache

Code: Select all

ifconfig eth0 down
ifconfig wlan0 up
dann will aber dhclient wlan0 nicht so, das geht erst nach

Code: Select all

ifconfig wlan0 192.168.182.2
und auch dann nicht wirklich zufriedenstellend:

Code: Select all

root@slack:/etc/rc.d# dhclient wlan0
Internet Software Consortium DHCP Client V3.0pl2
Copyright 1995-2001 Internet Software Consortium.
All rights reserved.
For info, please visit http://www.isc.org/products/DHCP

Listening on Socket/wlan0
Sending on   Socket/wlan0
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 9
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 14
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 14
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 8
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
ach ja, die dhclient.conf ist leer, aber das sollte kein problem sein, oder?
nun ja, mit statischer ip versuchte ich dann

Code: Select all

route add default gw 192.168.178.1
ping 192.168.178.1
jedoch erfolglos.
hier noch mal die ausgabe von ifconfig (ohne ifconfig down eth0):

Code: Select all

root@slack:/etc/rc.d# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:03:0D:22:2D:57
          inet addr:192.168.178.4  Bcast:192.168.178.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:13614 errors:1 dropped:0 overruns:1 frame:0
          TX packets:12145 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:14614764 (13.9 Mb)  TX bytes:1611969 (1.5 Mb)
          Interrupt:5 Base address:0xc800

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:66 errors:0 dropped:0 overruns:0 frame:0
          TX packets:66 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:10396 (10.1 Kb)  TX bytes:10396 (10.1 Kb)

wlan0     Link encap:Ethernet  HWaddr 00:0E:35:B9:6E:D5
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:127 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Memory:e00fe000-e00fefff
Im Handbuch des Routers steht:

Code: Select all

...
LAN: IP-Adresse: 192.168.178.2-250
Subnetzmaske: 255.255.255.0
Standartgateway: 192.168.178.1
DNS-Server: 192.168.178.1
WLAN: IP-Adresse: 192.168.182.2-250
Subnetzmaske: 255.255.255.0
Standartgateway: 192.168.182.1
DNS-Server: 192.168.182.1
bin wirklich sehr am ende mit meinem latein und wäre sehr dankbar, wenn jemand rat weiss..
danke, d.

Wikinator
Posts: 16
Joined: 26. May 2005 19:49
Location: Freiburg im Breisgau
Contact:

#2 Post by Wikinator »

Die Konfiguration kannst du in /etc/network/interfaces vornehmen.
Besitzt der Router irgendwelche Verschlüsselungen etc.?
Computer sind die logische Weiterentwicklung des Menschen — Intelligenz ohne Moral

David887

#3 Post by David887 »

hallo,
danke für die schnelle antwort. In der Tat gibt es jedoch gar kein
/etc/network-verzeichnis (Slackware), die Einstellungen, die dort vermutlich
bei anderen Distributionen stehen, sind bei mir wohl in /etc/rc.d/rc.inet1.conf.
Aber solange ich es nicht mal per hand zum laufen kriege wüsste ich nicht,
was ich dort ändern soll..
Router hat WEP-128 und das hab ich auch berücksichtigt soweit ich das
sehe, aber ein test mit abgeschalteter Verschlüsselung brachte genau das
selbe resultat..

TF
Posts: 1
Joined: 02. Aug 2005 0:04

#4 Post by TF »

Hi David887,

versuch mal dein Netzwerk mit "netconfig" zu konfigurieren.

Gruss

TF

User avatar
Lateralus
prolinux-forum-admin
Posts: 1238
Joined: 05. May 2004 7:35

Re: wlan und dhcp..?

#5 Post by Lateralus »

dann will aber dhclient wlan0 nicht so, das geht erst nach

Code: Select all

ifconfig wlan0 192.168.182.2
[...]

nun ja, mit statischer ip versuchte ich dann

Code: Select all

route add default gw 192.168.178.1
ping 192.168.178.1
jedoch erfolglos.
Wäre es nicht das Richtige gewesen,

Code: Select all

ifconfig wlan0 192168.182.25
ping 192.168.182.1
zu versuchen?

Warum dein Client keine Addresse bekommt, kann ich dir leider auch nicht erklären. Versuche es mit einigen Optionen, die du im Handbuch findest:

dhclient( 8 )

Code: Select all

       If the DHCP client should listen and transmit on a port other than  the
       standard (port 68), the -p flag may used.  It should be followed by the
       udp port number that dhclient should use.  This is  mostly  useful  for
       debugging purposes.  If a different port is specified for the client to
       listen on and transmit on, the client will also use a different  desti‐
       nation port - one greater than the specified destination port.

       The  DHCP  client  normally  transmits  any  protocol messages it sends
       before acquiring an IP address  to,  255.255.255.255,  the  IP  limited
       broadcast  address.    For debugging purposes, it may be useful to have
       the server transmit these messages to some other address.   This can be
       specified  with  the -s flag, followed by the IP address or domain name
       of the destination.

       For testing purposes, the giaddr field of all packets that  the  client
       sends can be set using the -g flag, followed by the IP address to send.
       This is only useful for testing, and should not be expected to work  in
       any consistent or useful way.

       The client normally doesn’t release the current  lease  as  it  is  not
       required  by  the DHCP protocol.  Some cable ISPs require their clients
       to notify the server if they wish to release an  assigned  IP  address.
       The  -r  flag explicitly releases the current lease, and once the lease
       has been released, the client exits.

Post Reply