Lieber Besucher, herzlich willkommen bei: Linux Forum Linux-Web.de. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.
Quellcode |
|
1 |
sudo ifconfig ra1 down |
Quellcode |
|
1 2 3 4 |
sudo iwconfig ra1 essid Heimann sudo iwpriv ra1 set AuthMode=WPAPSK sudo iwpriv ra1 set WPAPSK="xxx" sudo iwpriv ra1 set EncrypType=TKIP |
Quellcode |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 |
boesl@boesl:~$ sudo iwlist scan lo Interface doesn't support scanning. eth0 Interface doesn't support scanning. ra1 Scan completed : Cell 01 - Address: 00:17:9A:F2:A3:AF ESSID:"Heimann" Mode:Managed Channel:10 Encryption key:on Quality:66/100 Signal level:-69 dBm Noise level:-256 dBm boesl@boesl:~$ sudo iwlist scan lo Interface doesn't support scanning. eth0 Interface doesn't support scanning. ra1 No scan results boesl@boesl:~$ sudo iwlist scan lo Interface doesn't support scanning. eth0 Interface doesn't support scanning. ra1 Scan completed : Cell 01 - Address: 00:17:9A:F2:A3:AF ESSID:"Heimann" Mode:Managed Channel:10 Encryption key:on Quality:0/100 Signal level:-67 dBm Noise level:-256 dBm boesl@boesl:~$ sudo iwlist scan lo Interface doesn't support scanning. eth0 Interface doesn't support scanning. ra1 Scan completed : Cell 01 - Address: 00:17:9A:F2:A3:AF ESSID:"Heimann" Mode:Managed Channel:10 Encryption key:on Quality:58/100 Signal level:-67 dBm Noise level:-256 dBm boesl@boesl:~$ sudo iwlist scan lo Interface doesn't support scanning. eth0 Interface doesn't support scanning. ra1 Scan completed : Cell 01 - Address: 00:17:9A:F2:A3:AF ESSID:"Heimann" Mode:Managed Channel:10 Encryption key:on Quality:64/100 Signal level:-67 dBm Noise level:-256 dBm boesl@boesl:~$ sudo iwlist scan lo Interface doesn't support scanning. eth0 Interface doesn't support scanning. ra1 Scan completed : Cell 01 - Address: 00:17:9A:F2:A3:AF ESSID:"Heimann" Mode:Managed Channel:10 Encryption key:on Quality:0/100 Signal level:-69 dBm Noise level:-256 dBm boesl@boesl:~$ sudo iwlist scan lo Interface doesn't support scanning. eth0 Interface doesn't support scanning. ra1 Scan completed : Cell 01 - Address: 00:17:9A:F2:A3:AF ESSID:"Heimann" Mode:Managed Channel:10 Encryption key:on Quality:59/100 Signal level:-69 dBm Noise level:-256 dBm |
Quellcode |
|
1 |
sudo ifconfig ra0 dynamic up |
Quellcode |
|
1 2 3 4 5 6 7 8 |
boesl@boesl:~$ route Kernel IP Routentabelle Ziel Router Genmask Flags Metric Ref Use Iface link-local * 255.255.0.0 U 0 0 0 eth0 default * 0.0.0.0 U 1000 0 0 eth0 boesl@boesl:~$ sudo route del default boesl@boesl:~$ sudo route add default gw 192.168.0.1 SIOCADDRT: Network is unreachable |
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »boesl« (14.06.2007, 21:17)
Benutzerinformationen überspringen
Prof. Dr. Schlaumeier
Wohnort: Mecklenburg, zur Entwicklungshilfe in Chemnitz/Sachsen ;-)
Benutzerinformationen überspringen
Prof. Dr. Schlaumeier
Wohnort: Mecklenburg, zur Entwicklungshilfe in Chemnitz/Sachsen ;-)
Quellcode |
|
1 2 3 4 5 6 7 8 9 |
boesl@boesl:~$ ifconfig ra1 ra1 Protokoll:Ethernet Hardware Adresse 00:19:5B:2C:C3:39 inet6 Adresse: fe80::219:5bff:fe2c:c339/64 Gültigkeitsbereich:Verbindung UP BROADCAST RUNNING MULTICAST DYNAMIC MTU:1500 Metric:1 RX packets:3893 errors:0 dropped:0 overruns:0 frame:0 TX packets:2298 errors:1 dropped:1 overruns:0 carrier:0 Kollisionen:7 Sendewarteschlangenlänge:1000 RX bytes:376644 (367.8 KiB) TX bytes:1043 (1.0 KiB) Interrupt:22 |
Quellcode |
|
1 |
sudo ifconfig ra0 dynamic up |
Benutzerinformationen überspringen
Prof. Dr. Schlaumeier
Wohnort: Mecklenburg, zur Entwicklungshilfe in Chemnitz/Sachsen ;-)
Zitat
Original von boesl
also so wie es aussieht bekomme ich keine IP-Adresse vom Router oder?
Kann das vielleicht an der Eingabe von
Quellcode
1 sudo ifconfig ra0 dynamic up
liegen, oder ist dieser Befehl korrekt?
Zitat
Original von linuxerr
du musst einen dhcp-clienten auf deinem system starten, also zb
dhcpcd ra1
dieser sendet dann den dhcp-request an den router und konfiguriert die karten-ip, route, etc...
Quellcode |
|
1 |
sudo ifconfig ra0 dynamic up |
Quellcode |
|
1 |
dhcpcd ra1 |
Zitat
1.4) Configure routes
At this point, my default route is still eth0 (my unused wired network card):
Quellcode
1 2 3 4 5 6 7 ubuntu@ubuntu:~$ route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.0.0 * 255.255.255.0 U 0 0 0 ra0 link-local * 255.255.0.0 U 0 0 0 eth0 default * 0.0.0.0 U 1000 0 0 eth0 ubuntu@ubuntu:~$
So let's delete it and add a default route to my router (192.168.0.1):
Quellcode
1 2 3 4 5 6 7 8 9 ubuntu@ubuntu:~$ sudo route del default ubuntu@ubuntu:~$ sudo route add default gw 192.168.0.1 ubuntu@ubuntu:~$ route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.0.0 * 255.255.255.0 U 0 0 0 ra0 link-local * 255.255.0.0 U 0 0 0 eth0 default 192.168.0.1 0.0.0.0 UG 0 0 0 ra0 ubuntu@ubuntu:~$
I can now ping the router (if you can ever ping a router, congratulations, the worst is over):
Quellcode
1 2 3 4 5 6 ubuntu@ubuntu:~$ ping 192.168.0.1 PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data. 64 bytes from 192.168.0.1: icmp_seq=1 ttl=64 time=9.52 ms 64 bytes from 192.168.0.1: icmp_seq=2 ttl=64 time=1.63 ms 64 bytes from 192.168.0.1: icmp_seq=3 ttl=64 time=1.59 ms ...
[SIZE=3] 1.5) Configure DNS[/SIZE]
DNS isn't yet configured:
Quellcode
1 2 ubuntu@ubuntu:~$ ping google.com ping: unknown host google.com
I want my router to be the DNS server, and this is done by creating (the live CD doesn't have one) an /etc/resolv.conf:
Quellcode
1 2 3 4 5 6 7 ubuntu@ubuntu:~$ sudo su root@ubuntu:/home/ubuntu# echo "nameserver 192.168.0.1" >> /etc/resolv.conf root@ubuntu:/home/ubuntu# ping google.com PING google.com (64.233.187.99) 56(84) bytes of data. 64 bytes from jc-in-f99.google.com (64.233.187.99): icmp_seq=1 ttl=242 time=243 ms 64 bytes from jc-in-f99.google.com (64.233.187.99): icmp_seq=2 ttl=242 time=242 ms 64 bytes from jc-in-f99.google.com (64.233.187.99): icmp_seq=3 ttl=242 time=243 ms
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »boesl« (16.06.2007, 13:11)
Benutzerinformationen überspringen
Prof. Dr. Schlaumeier
Wohnort: Mecklenburg, zur Entwicklungshilfe in Chemnitz/Sachsen ;-)
Benutzerinformationen überspringen
Prof. Dr. Schlaumeier
Wohnort: Mecklenburg, zur Entwicklungshilfe in Chemnitz/Sachsen ;-)
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »linuxerr« (16.06.2007, 16:59)
Quellcode |
|
1 2 3 4 5 6 7 8 9 10 |
boesl@boesl:~$ sudo su root@boesl:/home/boesl# dhcpcd ra1 root@boesl:/home/boesl# ifconfig ra1 ra1 Protokoll:Ethernet Hardware Adresse 00:19:5B:2C:C3:39 BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:1315 errors:0 dropped:0 overruns:0 frame:0 TX packets:983 errors:0 dropped:0 overruns:0 carrier:0 Kollisionen:0 Sendewarteschlangenlänge:1000 RX bytes:127034 (124.0 KiB) TX bytes:966 (966.0 b) Interrupt:21 |
Benutzerinformationen überspringen
Prof. Dr. Schlaumeier
Wohnort: Mecklenburg, zur Entwicklungshilfe in Chemnitz/Sachsen ;-)
Quellcode |
|
1 2 3 4 |
sudo iwconfig ra1 essid Heimann sudoi iwpriv ra1 set AuthMode=WPAPSK sudo iwpriv ra1 set WPAPSK="xxx" sudo iwpriv ra1 set EncrypType=TKIP |
Benutzerinformationen überspringen
Prof. Dr. Schlaumeier
Wohnort: Mecklenburg, zur Entwicklungshilfe in Chemnitz/Sachsen ;-)
Benutzerinformationen überspringen
Prof. Dr. Schlaumeier
Wohnort: Mecklenburg, zur Entwicklungshilfe in Chemnitz/Sachsen ;-)
Quellcode |
|
1 2 3 4 5 6 7 8 |
iface ra1 inet dhcp pre-up ifconfig ra1 down pre-up iwpriv ra1 set AuthMode=WPAPSK pre-up iwpriv ra1 set EncrypType=TKIP pre-up iwconfig ra1 essid Heimann pre-up iwconfig ra1 mode managed pre-up iwpriv ra1 set WPAPSK=xxx pre-up ifconfig ra1 up |
Benutzerinformationen überspringen
Prof. Dr. Schlaumeier
Wohnort: Mecklenburg, zur Entwicklungshilfe in Chemnitz/Sachsen ;-)