
Ubuntu日本語フォーラム

ログインしていません。
こんにちは。
ubuntu-jp 6.1.0を使っています。
usbタイプの無線LAN(WLI-U2-KG54)でインターネット接続ができなくて困っています。
モデムはルーター付きのAtermWD701CV
無線LANブリッジはWLA2-G54を使っています。
ネットで色々調べて、ドライバーを入れるところまでは出来ていると思うのですが。。
http://www.mland.jp/~fedora/text/WLI-U2-KG54.html
上記ページのように作業を進めてやってみています。
無線LANのランプは点灯します。
iwconfigの結果は下記のようになっています。
# iwconfig
lo no wireless extensions.
rausb0 RT2500USB WLAN ESSID:"**********"
Mode:Managed Frequency=2.467 GHz Access Point: 00:0D:0B:36:6F:E9
Bit Rate=48 Mb/s
RTS thr:off Fragment thr:off
Encryption key:D***-****-** Security mode:open
Link Quality=0/70 Signal level:-61 dBm Noise level:-195 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
eth0 no wireless extensions.
sit0 no wireless extensions.
また、DHCPにすると、IPアドレスが取得できません。
dhclientでエラーがでます。
Listening on LPF/rausb0/00:0d:0b:96:52:68
Sending on LPF/rausb0/00:0d:0b:96:52:68
Sending on Socket/fallback
DHCPDISCOVER on rausb0 to 255.255.255.255 port 67 interval 8
仕方無いので固定IPでやってみているのですが、、、
さっぱり繋がりません。pingしても駄目です。
Linuxが初めてなのでこれ以上
どこをどう見直せば良いのかわかりません。
ご教授お願いします。
オフライン
Intelのチップしか使ったことがないのでお役に立てるか分かりませんが
- システムのNetworking上では当該チップは認識されていますか。
- iwlist scanでアクセスポイントは発見できますか。
- dhclientのエラーはどんなものですか(張りつけて頂いた範囲では正常に見えます)。
ndiswrapperを利用した方法についてubuntuforumsにhowtoがありました。
http://www.ubuntuforums.org/showthread.php?t=366644&highlight=WLI-U2-KG54
オフライン
anoirさん、お返事ありがとうございます。
>- システムのNetworking上では当該チップは認識されていますか。
どうだったら認識されたと言えるのかよくわかりませんがifconfigでは下記のように表示されます。
# ifconfig
eth0 Link encap:Ethernet HWaddr 00:03:47:**:**:8C
UP BROADCAST MULTICAST MTU:1500 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:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:374 errors:0 dropped:0 overruns:0 frame:0
TX packets:374 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:29660 (28.9 KiB) TX bytes:29660 (28.9 KiB)
rausb0 Link encap:Ethernet HWaddr 00:0D:0B:**:**:68
inet6 addr: fe80::20d:bff:fe96:5268/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:105 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:5702624 (5.4 MiB) TX bytes:42922 (41.9 KiB)
>- iwlist scanでアクセスポイントは発見できますか。
アクセスポイントは見つかります。
ご近所さんのも見つかります。。
>- dhclientのエラーはどんなものですか(張りつけて頂いた範囲では正常に見えます)。
下記のようなメッセージが延々と続きます。
DHCPDISCOVER on rausb0 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on rausb0 to 255.255.255.255 port 67 interval 13
>ndiswrapperを利用した方法についてubuntuforumsにhowtoがありました。
ndiswrapper1.38をダウンロードしてmakeしたのですがエラーが出てしまい
進めることができませんでした。
# make
make -C driver
make[1]: Entering directory `/tmp/ndiswrapper-1.38/driver'
make -C /lib/modules/2.6.17-10-generic/build SUBDIRS=/tmp/ndiswrapper-1.38/driver
make[2]: Entering directory `/usr/src/linux-headers-2.6.17-10-generic'
Building modules, stage 2.
MODPOST
make[2]: Leaving directory `/usr/src/linux-headers-2.6.17-10-generic'
make[1]: Leaving directory `/tmp/ndiswrapper-1.38/driver'
make -C utils
make[1]: Entering directory `/tmp/ndiswrapper-1.38/utils'
gcc -g -Wall -I../driver -o loadndisdriver loadndisdriver.c
loadndisdriver.c:15:20: error: stdlib.h: No such file or directory
loadndisdriver.c:16:19: error: stdio.h: No such file or directory
loadndisdriver.c:17:19: error: errno.h: No such file or directory
loadndisdriver.c:18:20: error: string.h: No such file or directory
loadndisdriver.c:19:20: error: libgen.h: No such file or directory
loadndisdriver.c:21:22: error: sys/mman.h: No such file or directory
loadndisdriver.c:23:23: error: sys/types.h: No such file or directory
loadndisdriver.c:24:23: error: sys/ioctl.h: No such file or directory
loadndisdriver.c:25:22: error: sys/stat.h: No such file or directory
loadndisdriver.c:26:20: error: unistd.h: No such file or directory
loadndisdriver.c:27:19: error: fcntl.h: No such file or directory
In file included from /usr/lib/gcc/i486-linux-gnu/4.1.2/include/syslimits.h:7,
from /usr/lib/gcc/i486-linux-gnu/4.1.2/include/limits.h:11,
from loadndisdriver.c:28:
/usr/lib/gcc/i486-linux-gnu/4.1.2/include/limits.h:122:61: error: limits.h: No such file or directory
loadndisdriver.c:29:19: error: ctype.h: No such file or directory
loadndisdriver.c:30:20: error: dirent.h: No such file or directory
loadndisdriver.c:31:20: error: syslog.h: No such file or directory
loadndisdriver.c:34:25: error: linux/major.h: No such file or directory
loadndisdriver.c:35:25: error: linux/ioctl.h: No such file or directory
In file included from loadndisdriver.c:37:
../driver/loader.h:24: error: expected specifier-qualifier-list before 'size_t'
loadndisdriver.c: In function 'load_file':
loadndisdriver.c:67: error: 'size_t' undeclared (first use in this function)
loadndisdriver.c:67: error: (Each undeclared identifier is reported only once
loadndisdriver.c:67: error: for each function it appears in.)
loadndisdriver.c:67: error: expected ';' before 'size'
loadndisdriver.c:68: error: 'NULL' undeclared (first use in this function)
loadndisdriver.c:69: error: storage size of 'statbuf' isn't known
loadndisdriver.c:71: warning: implicit declaration of function 'basename'
loadndisdriver.c:71: warning: initialization makes pointer from integer without a cast
loadndisdriver.c:73: warning: implicit declaration of function 'open'
loadndisdriver.c:73: error: 'O_RDONLY' undeclared (first use in this function)
loadndisdriver.c:75: warning: implicit declaration of function 'syslog'
loadndisdriver.c:75: error: 'LOG_KERN' undeclared (first use in this function)
loadndisdriver.c:75: error: 'LOG_INFO' undeclared (first use in this function)
loadndisdriver.c:75: warning: implicit declaration of function 'strerror'
loadndisdriver.c:75: error: 'errno' undeclared (first use in this function)
loadndisdriver.c:76: error: 'EINVAL' undeclared (first use in this function)
loadndisdriver.c:79: warning: implicit declaration of function 'fstat'
loadndisdriver.c:81: warning: implicit declaration of function 'close'
loadndisdriver.c:84: error: 'size' undeclared (first use in this function)
loadndisdriver.c:86: warning: implicit declaration of function 'mmap'
loadndisdriver.c:86: error: 'PROT_READ' undeclared (first use in this function)
loadndisdriver.c:86: error: 'MAP_PRIVATE' undeclared (first use in this function)
loadndisdriver.c:86: warning: assignment makes pointer from integer without a cast
loadndisdriver.c:87: error: 'MAP_FAILED' undeclared (first use in this function)
loadndisdriver.c:93: warning: implicit declaration of function 'strncpy'
loadndisdriver.c:93: warning: incompatible implicit declaration of built-in function 'strncpy'
loadndisdriver.c:95: error: 'struct load_driver_file' has no member named 'size'
loadndisdriver.c:96: error: 'struct load_driver_file' has no member named 'data'
loadndisdriver.c:69: warning: unused variable 'statbuf'
loadndisdriver.c: In function 'parse_setting_line':
loadndisdriver.c:109: warning: implicit declaration of function 'isspace'
loadndisdriver.c:115: warning: implicit declaration of function 'strchr'
loadndisdriver.c:115: warning: incompatible implicit declaration of built-in function 'strchr'
loadndisdriver.c:115: error: 'NULL' undeclared (first use in this function)
loadndisdriver.c:117: error: 'LOG_KERN' undeclared (first use in this function)
loadndisdriver.c:117: error: 'LOG_INFO' undeclared (first use in this function)
loadndisdriver.c:118: error: 'EINVAL' undeclared (first use in this function)
loadndisdriver.c:138: warning: implicit declaration of function 'strlen'
loadndisdriver.c:138: warning: incompatible implicit declaration of built-in function 'strlen'
loadndisdriver.c: In function 'read_conf_file':
loadndisdriver.c:150: error: storage size of 'statbuf' isn't known
loadndisdriver.c:151: error: 'FILE' undeclared (first use in this function)
loadndisdriver.c:151: error: 'config' undeclared (first use in this function)
loadndisdriver.c:157: warning: implicit declaration of function 'lstat'
loadndisdriver.c:158: error: 'LOG_KERN' undeclared (first use in this function)
loadndisdriver.c:158: error: 'LOG_INFO' undeclared (first use in this function)
loadndisdriver.c:158: error: 'errno' undeclared (first use in this function)
loadndisdriver.c:160: error: 'EINVAL' undeclared (first use in this function)
loadndisdriver.c:163: warning: implicit declaration of function 'sscanf'
loadndisdriver.c:163: warning: incompatible implicit declaration of built-in function 'sscanf'
loadndisdriver.c:179: warning: implicit declaration of function 'fopen'
loadndisdriver.c:179: error: 'NULL' undeclared (first use in this function)
loadndisdriver.c:183: warning: implicit declaration of function 'fgets'
loadndisdriver.c:195: warning: incompatible implicit declaration of built-in function 'strncpy'
loadndisdriver.c:206: warning: implicit declaration of function 'fclose'
loadndisdriver.c:150: warning: unused variable 'statbuf'
loadndisdriver.c: In function 'load_bin_file':
loadndisdriver.c:218: error: 'LOG_KERN' undeclared (first use in this function)
loadndisdriver.c:218: error: 'LOG_INFO' undeclared (first use in this function)
loadndisdriver.c:220: warning: implicit declaration of function 'tolower'
loadndisdriver.c:222: warning: implicit declaration of function 'chdir'
loadndisdriver.c:223: error: 'errno' undeclared (first use in this function)
loadndisdriver.c:225: error: 'EINVAL' undeclared (first use in this function)
loadndisdriver.c:231: warning: incompatible implicit declaration of built-in function 'strncpy'
loadndisdriver.c:233: warning: implicit declaration of function 'ioctl'
loadndisdriver.c:233: warning: implicit declaration of function '_IOW'
loadndisdriver.c:233: error: expected expression before 'struct'
loadndisdriver.c: In function 'load_driver':
loadndisdriver.c:250: error: 'DIR' undeclared (first use in this function)
loadndisdriver.c:250: error: 'driver_dir' undeclared (first use in this function)
loadndisdriver.c:252: error: 'NULL' undeclared (first use in this function)
loadndisdriver.c:256: error: 'LOG_KERN' undeclared (first use in this function)
loadndisdriver.c:256: error: 'LOG_INFO' undeclared (first use in this function)
loadndisdriver.c:258: error: 'errno' undeclared (first use in this function)
loadndisdriver.c:260: error: 'EINVAL' undeclared (first use in this function)
loadndisdriver.c:262: warning: implicit declaration of function 'opendir'
loadndisdriver.c:268: warning: implicit declaration of function 'malloc'
loadndisdriver.c:268: warning: incompatible implicit declaration of built-in function 'malloc'
loadndisdriver.c:272: warning: implicit declaration of function 'memset'
loadndisdriver.c:272: warning: incompatible implicit declaration of built-in function 'memset'
loadndisdriver.c:273: warning: incompatible implicit declaration of built-in function 'strncpy'
loadndisdriver.c:281: warning: implicit declaration of function 'readdir'
loadndisdriver.c:281: warning: assignment makes pointer from integer without a cast
loadndisdriver.c:283: error: storage size of 'statbuf' isn't known
loadndisdriver.c:285: error: dereferencing pointer to incomplete type
loadndisdriver.c:288: warning: implicit declaration of function 'stat'
loadndisdriver.c:288: error: dereferencing pointer to incomplete type
loadndisdriver.c:289: warning: implicit declaration of function 'S_ISREG'
loadndisdriver.c:290: error: dereferencing pointer to incomplete type
loadndisdriver.c:295: warning: incompatible implicit declaration of built-in function 'strlen'
loadndisdriver.c:295: error: dereferencing pointer to incomplete type
loadndisdriver.c:297: warning: implicit declaration of function 'strcasecmp'
loadndisdriver.c:297: error: dereferencing pointer to incomplete type
loadndisdriver.c:300: error: dereferencing pointer to incomplete type
loadndisdriver.c:303: error: dereferencing pointer to incomplete type
loadndisdriver.c:304: error: dereferencing pointer to incomplete type
loadndisdriver.c:306: error: dereferencing pointer to incomplete type
loadndisdriver.c:312: error: dereferencing pointer to incomplete type
loadndisdriver.c:313: error: dereferencing pointer to incomplete type
loadndisdriver.c:314: warning: implicit declaration of function 'strcpy'
loadndisdriver.c:314: warning: incompatible implicit declaration of built-in function 'strcpy'
loadndisdriver.c:315: error: dereferencing pointer to incomplete type
loadndisdriver.c:318: error: 'struct load_driver_file' has no member named 'size'
loadndisdriver.c:319: error: 'struct load_driver_file' has no member named 'data'
loadndisdriver.c:322: error: dereferencing pointer to incomplete type
loadndisdriver.c:283: warning: unused variable 'statbuf'
loadndisdriver.c:345: error: expected expression before 'struct'
loadndisdriver.c:347: warning: implicit declaration of function 'closedir'
loadndisdriver.c:349: warning: implicit declaration of function 'free'
loadndisdriver.c:356: warning: implicit declaration of function 'munmap'
loadndisdriver.c:356: error: 'struct load_driver_file' has no member named 'data'
loadndisdriver.c:356: error: 'struct load_driver_file' has no member named 'size'
loadndisdriver.c:358: error: 'struct load_driver_file' has no member named 'data'
loadndisdriver.c:358: error: 'struct load_driver_file' has no member named 'size'
loadndisdriver.c: In function 'get_device':
loadndisdriver.c:368: error: storage size of 'statbuf' isn't known
loadndisdriver.c:371: error: 'LOG_KERN' undeclared (first use in this function)
loadndisdriver.c:371: error: 'LOG_INFO' undeclared (first use in this function)
loadndisdriver.c:374: error: 'errno' undeclared (first use in this function)
loadndisdriver.c:375: error: 'EINVAL' undeclared (first use in this function)
loadndisdriver.c:377: warning: implicit declaration of function 'snprintf'
loadndisdriver.c:377: warning: incompatible implicit declaration of built-in function 'snprintf'
loadndisdriver.c:408: warning: incompatible implicit declaration of built-in function 'strncpy'
loadndisdriver.c:368: warning: unused variable 'statbuf'
loadndisdriver.c: In function 'load_device':
loadndisdriver.c:420: error: 'DIR' undeclared (first use in this function)
loadndisdriver.c:420: error: 'dir' undeclared (first use in this function)
loadndisdriver.c:424: error: 'LOG_KERN' undeclared (first use in this function)
loadndisdriver.c:424: error: 'LOG_INFO' undeclared (first use in this function)
loadndisdriver.c:425: warning: incompatible implicit declaration of built-in function 'memset'
loadndisdriver.c:427: error: 'errno' undeclared (first use in this function)
loadndisdriver.c:428: error: 'EINVAL' undeclared (first use in this function)
loadndisdriver.c:430: error: 'NULL' undeclared (first use in this function)
loadndisdriver.c:435: warning: assignment makes pointer from integer without a cast
loadndisdriver.c:436: error: dereferencing pointer to incomplete type
loadndisdriver.c:437: error: dereferencing pointer to incomplete type
loadndisdriver.c:440: error: dereferencing pointer to incomplete type
loadndisdriver.c:449: error: expected expression before 'struct'
loadndisdriver.c: In function 'get_ioctl_device':
loadndisdriver.c:466: error: 'FILE' undeclared (first use in this function)
loadndisdriver.c:466: error: 'proc_misc' undeclared (first use in this function)
loadndisdriver.c:474: warning: implicit declaration of function 'strstr'
loadndisdriver.c:474: warning: incompatible implicit declaration of built-in function 'strstr'
loadndisdriver.c:475: warning: implicit declaration of function 'strtol'
loadndisdriver.c:475: error: 'NULL' undeclared (first use in this function)
loadndisdriver.c:485: error: 'LOG_KERN' undeclared (first use in this function)
loadndisdriver.c:485: error: 'LOG_INFO' undeclared (first use in this function)
loadndisdriver.c:490: warning: implicit declaration of function 'unlink'
loadndisdriver.c:491: warning: implicit declaration of function 'mknod'
loadndisdriver.c:491: error: 'S_IFCHR' undeclared (first use in this function)
loadndisdriver.c:491: error: 'MISC_MAJOR' undeclared (first use in this function)
loadndisdriver.c:492: error: 'errno' undeclared (first use in this function)
loadndisdriver.c:497: error: 'O_RDONLY' undeclared (first use in this function)
loadndisdriver.c: In function 'main':
loadndisdriver.c:513: warning: implicit declaration of function 'openlog'
loadndisdriver.c:513: error: 'LOG_PERROR' undeclared (first use in this function)
loadndisdriver.c:513: error: 'LOG_CONS' undeclared (first use in this function)
loadndisdriver.c:513: error: 'LOG_KERN' undeclared (first use in this function)
loadndisdriver.c:513: error: 'LOG_DEBUG' undeclared (first use in this function)
loadndisdriver.c:515: error: 'LOG_INFO' undeclared (first use in this function)
loadndisdriver.c:517: warning: implicit declaration of function 'strncmp'
loadndisdriver.c:519: warning: implicit declaration of function 'printf'
loadndisdriver.c:519: warning: incompatible implicit declaration of built-in function 'printf'
loadndisdriver.c:529: warning: implicit declaration of function 'atoi'
loadndisdriver.c:544: warning: implicit declaration of function 'atof'
loadndisdriver.c:551: warning: implicit declaration of function 'strcmp'
loadndisdriver.c:558: warning: incompatible implicit declaration of built-in function 'sscanf'
loadndisdriver.c:592: warning: implicit declaration of function 'closelog'
make[1]: *** [loadndisdriver] Error 1
make[1]: Leaving directory `/tmp/ndiswrapper-1.38/utils'
make: *** [all] Error 2
オフライン
ネットワークカードはSystem->Administration->Networkingにリストアップされて、そこからDHCPにするかなど設定します。設定ファイルを書き換えても同じことですがWindowsやMacと同じようにできます。ドライバーが導入されているならいけると思うのですが。。。
オフライン
ここを参照してください。
fedora coreではなくて、ubuntuのやり方で再度やった項目を確認してください。
http://ubuntuforums.org/showthread.php?t=211906
オフライン
みなさんアドバイスありがとうございます。
リンク先などを参考に設定しなおしてみました。
なんとか、インターネットに接続は出来たのですが
PCを起動するたびに
sudo /etc/init.d/networling restart
としてDHCPサーバーからIPアドレスを取得しないといけません。
自動的に出来るようにする方法はありませんか?
また、networking restart をすると接続は出来るのですが
エラーも出ています。
Error for wireless request "Set Mode" (8B06) :
SET failed on device rausb0 ; Invalid argument.
どういう意味なのでしょうか?
オフライン
ソフトウェアのバージョンアップをしたら
restartしなくても接続できるようになりました。
ただ、また別の問題が。。。
PCを起動してログインしようとすると
画面左上に白い四角が出て、フリーズしてしまいます。
しばらく置いておくと下記エラーが出てログインできます。
**********************************************
GNOME 設定デーモン (gconfd) を起動する際にエラーが発生しました。
テーマやサウンド、バックグラウンド設定などが正しく適用されないかもしれません。
最新のエラーメッセージ :
Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
GNOME は次回のログインの時にも設定デーモンの再起動を試みます。
**********************************************
無線LANを外してログインするとエラーは出ません。
GNOME 設定デーモン とは何でしょうか?
また、これを回避することは可能でしょうか?
オフライン
自己解決しました。
/etc/networking/interfacesに下記を書き加えたらエラーがなくなりました。
iface lo inet loopback
auto lo
オフライン