[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[plamo:28292] Re: Note PC のネットワーク設定



加藤泰文です.

もうちとちゃんとテストしてみてます.が,長くなったので,最初に質問を.

やりたいことは
  - 常に同じ名前が同じデバイスに割りあたる
  - 有線がつながっていたら,有線 LAN は有効に.
  - 無線は手動でオンにするので OK.
ってな感じで,後ふたつは普通に Planet を使うときの例として載っているも
のかと.

  『どう設定すれば,このようになるでしょう?』 (^_^;)

--------
以下に状況を.
  http://tara.harp.gr.jp/~kato/plamo/index.php?X30
にもう少し詳しい情報を (ただし有用な情報かどうかは謎).

PC のスペックについては,
  http://wuw.stusta.mhn.de/~u002149a/thinkpad/
が参考になるかな.とりあえず
  有線 LAN: Intel EtherExpressPro/100
  無線 LAN: Prism 2.5 Wavelan
の模様.

とりあえず,先の udev の設定はなしで.modprobe.conf にはそれらしい設定
をしてやってます (効いてないような).有線 LAN はつないだ状態でテストし
てます.Planet は,eth0, eth1 共に,リンクしていれば有効にする設定 (どっ
ちに有線が割りあたるかわからないので).

# alias eth0 e100
# alias eth1 orinoco_pci
# と modules.conf に書いて,generate-modprobe.conf を実行.
# 全部コレでやったかは覚えてない部分もありますが,名前が設定と逆になっ
# ていたのは覚えてます.

ネットワークは Planet を使用する,としています.

結論から言うと,planet でちゃんとネットワークが有効になるところまでは
なったりならなかったりなんですが,手動で必要な操作をやれば,使えるよう
になる,という気がしています.ただし,起動するたびに,状況が違うので,
絶対 OK なのかというとわかりません.


------------

以下に状況を.起動するたびに状況は違います.以下,パターンごとに

(1) 無線 LAN のみ OK な状況.
# これは modprobe.conf 書いてなかったかも?

e100 も orinoco_pci も eth0 って出力があるけど,udevinfo で見ると,違
う.

dmesg
=====
e100: Intel(R) PRO/100 Network Driver, 3.5.10-k2-NAPI
e100: Copyright(c) 1999-2005 Intel Corporation
orinoco 0.15rc3 (David Gibson <hermes@xxxxxxxxxxxxxxxxxxxxx>, Pavel
Roskin <proski@xxxxxxx>, et al)
orinoco_pci 0.15rc3 (Pavel Roskin <proski@xxxxxxx>, David Gibson
<hermes@xxxxxxxxxxxxxxxxxxxxx> & Jean Tourrilhes <jt@xxxxxxxxxx>)
   : (snip)
e100: eth0: e100_probe: addr 0xd0200000, irq 11, MAC addr
00:09:6B:A0:AE:04
   : (snip)
orinoco_pci: Detected device 0000:01:02.0, mem:0xf8000000-0xf8000fff,
irq 11
ieee1394: Host added: ID:BUS[0-00:1023]  GUID[00061b0201021637]
eth0: Hardware identity 8013:0000:0001:0000
eth0: Station identity  001f:0009:0001:0004
eth0: Firmware determined as Intersil 1.4.9
eth0: Ad-hoc demo mode supported
eth0: IEEE standard IBSS ad-hoc mode supported
eth0: WEP supported, 104-bit key
eth0: MAC address 00:05:3C:06:81:3B
eth0: Station name "Prism  I"
eth0: ready
   : (snip)
ieee80211_crypt: registered algorithm 'NULL'
hostap_pci: 0.4.4-kernel (Jouni Malinen <jkmaline@xxxxxxxxx>)

udevinfo
========
bash-3.00# udevinfo -a -p /sys/class/net/eth0
   : (snip)
 looking at device '/class/net/eth0':
   KERNEL=="eth0"
   SUBSYSTEM=="net"
   : (snip)
   SYSFS{address}=="00:05:3c:06:81:3b"
   : (snip)
 looking at device '/devices/pci0000:00/0000:00:1e.0/0000:01:02.0':
   ID=="0000:01:02.0"
   BUS=="pci"
   DRIVER=="orinoco_pci"
   : (snip)

bash-3.00# udevinfo -a -p /sys/class/net/eth1
   : (snip)
 looking at device '/class/net/eth1':
   KERNEL=="eth1"
   SUBSYSTEM=="net"
   : (snip)
   SYSFS{address}=="00:09:6b:a0:ae:04"
   : (snip)
 looking at device '/devices/pci0000:00/0000:00:1e.0/0000:01:08.0':
   ID=="0000:01:08.0"
   BUS=="pci"
   DRIVER=="e100"
   : (snip)

で,無事無線 LAN 経由でアドレスが割り当たり,通信出来てます.

(2) 有線のみ OK

e100 は eth0 に,orinoco_pci は eth1 に,planet では eth0 が有効になり,
アドレスも割り当たり,通信可能.

もしかしたら,eth1 も自分で iwconfig で設定して,dhclient 実行したらい
けていたかも? (未調査)

udevinfo は dmesg と矛盾なく,情報が表示されていました.

dmesg
=====
e100: Intel(R) PRO/100 Network Driver, 3.5.10-k2-NAPI
e100: Copyright(c) 1999-2005 Intel Corporation
 : (snip)
orinoco 0.15rc3 (David Gibson <hermes@xxxxxxxxxxxxxxxxxxxxx>, Pavel
Roskin <proski@xxxxxxx>, et al)
orinoco_pci 0.15rc3 (Pavel Roskin <proski@xxxxxxx>, David Gibson
<hermes@xxxxxxxxxxxxxxxxxxxxx> & Jean Tourrilhes <jt@xxxxxxxxxx>)
 : (snip)
e100: eth0: e100_probe: addr 0xd0200000, irq 11, MAC addr
00:09:6B:A0:AE:04
 : (snip)
orinoco_pci: Detected device 0000:01:02.0, mem:0xf8000000-0xf8000fff,
irq 11
 : (snip)
eth1: Hardware identity 8013:0000:0001:0000
eth1: Station identity  001f:0009:0001:0004
eth1: Firmware determined as Intersil 1.4.9
eth1: Ad-hoc demo mode supported
eth1: IEEE standard IBSS ad-hoc mode supported
eth1: WEP supported, 104-bit key
eth1: MAC address 00:05:3C:06:81:3B
eth1: Station name "Prism  I"
eth1: ready
 : (snip)
ieee80211_crypt: registered algorithm 'NULL'
hostap_pci: 0.4.4-kernel (Jouni Malinen <jkmaline@xxxxxxxxx>)
 : (snip)
e100: eth0: e100_watchdog: link up, 100Mbps, full-duplex

(3) 有線,無線とも OK

有線,無線とも Ok のパターン.

dmesg
=====
e100: Intel(R) PRO/100 Network Driver, 3.5.10-k2-NAPI
e100: Copyright(c) 1999-2005 Intel Corporation
PCI: Found IRQ 11 for device 0000:01:08.0
e100: eth0: e100_probe: addr 0xd0200000, irq 11, MAC addr
00:09:6B:A0:AE:04
 : (snip)
orinoco 0.15rc3 (David Gibson <hermes@xxxxxxxxxxxxxxxxxxxxx>, Pavel
Roskin <proski@xxxxxxx>, et al)
orinoco_pci 0.15rc3 (Pavel Roskin <proski@xxxxxxx>, David Gibson
<hermes@xxxxxxxxxxxxxxxxxxxxx> & Jean Tourrilhes <jt@xxxxxxxxxx>)
 : (snip)
orinoco_pci: Detected device 0000:01:02.0, mem:0xf8000000-0xf8000fff,
irq 11
 : (snip)
eth1: Hardware identity 8013:0000:0001:0000
eth1: Station identity  001f:0009:0001:0004
eth1: Firmware determined as Intersil 1.4.9
eth1: Ad-hoc demo mode supported
eth1: IEEE standard IBSS ad-hoc mode supported
eth1: WEP supported, 104-bit key
eth1: MAC address 00:05:3C:06:81:3B
eth1: Station name "Prism  I"
eth1: ready
eth1: get_wireless_stats() called while device not present
eth1: get_wireless_stats() called while device not present
eth1: get_wireless_stats() called while device not present
eth1: get_wireless_stats() called while device not present
eth1: get_wireless_stats() called while device not present
eth1: get_wireless_stats() called while device not present
eth1: get_wireless_stats() called while device not present
eth1: get_wireless_stats() called while device not present
eth1: get_wireless_stats() called while device not present
eth1: get_wireless_stats() called while device not present
  : (snip)
eth1: New link status: Connected (0001)
e100: eth0: e100_watchdog: link up, 100Mbps, full-duplex

(4) 両方ダメ

両方ダメなパターン.ただし,後で手動で設定したら,通信可能だったので,
デバイスの認識には問題がないもよう.

dmesg
=====
e100: Intel(R) PRO/100 Network Driver, 3.5.10-k2-NAPI
e100: Copyright(c) 1999-2005 Intel Corporation
orinoco 0.15rc3 (David Gibson <hermes@xxxxxxxxxxxxxxxxxxxxx>, Pavel
Roskin <proski@xxxxxxx>, et al)
orinoco_pci 0.15rc3 (Pavel Roskin <proski@xxxxxxx>, David Gibson
<hermes@xxxxxxxxxxxxxxxxxxxxx> & Jean Tourrilhes <jt@xxxxxxxxxx>)
 : (snip)
e100: eth0: e100_probe: addr 0xd0200000, irq 11, MAC addr
00:09:6B:A0:AE:04
 : (snip)
orinoco_pci: Detected device 0000:01:02.0, mem:0xf8000000-0xf8000fff,
irq 11
 : (snip)
eth1: Hardware identity 8013:0000:0001:0000
eth1: Station identity  001f:0009:0001:0004
eth1: Firmware determined as Intersil 1.4.9
eth1: Ad-hoc demo mode supported
eth1: IEEE standard IBSS ad-hoc mode supported
eth1: WEP supported, 104-bit key
eth1: MAC address 00:05:3C:06:81:3B
eth1: Station name "Prism  I"
eth1: ready
ieee80211_crypt: registered algorithm 'NULL'

両方ともダメで lo のみ有効な状態.で,以下のように色々やると,最終的に
は出来た.

bash-3.00# ifctl eth0 up
eth0: device not started.
bash-3.00# ifctl eth1 up
eth1: device not started.
bash-3.00# iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.

eth1      IEEE 802.11b  ESSID:""  Nickname:"Prism  I"
         Mode:Managed  Access Point: Not-Associated   Bit Rate:11 Mb/s
         Sensitivity:1/3
         Retry min limit:8   RTS thr:off   Fragment thr:off
         Encryption key:off
         Power Management:off
         Link Quality=0/92  Signal level=-68 dBm  Noise level=-122 dBm
         Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
         Tx excessive retries:0  Invalid misc:0   Missed beacon:0

bash-3.00# iwconfig eth1 essid ESSID
bash-3.00# iwconfig eth1 key s:pass
bash-3.00# iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.

eth1      IEEE 802.11b  ESSID:"A1388EGROUP"  Nickname:"Prism  I"
         Mode:Managed  Access Point: Not-Associated   Bit Rate:11 Mb/s
         Sensitivity:1/3
         Retry min limit:8   RTS thr:off   Fragment thr:off
         Encryption key:****-****-**   Security mode:open
         Power Management:off
         Link Quality=0/92  Signal level=-68 dBm  Noise level=-122 dBm
         Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
         Tx excessive retries:0  Invalid misc:0   Missed beacon:0

bash-3.00# ifconfig
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:5124 (5.0 Kb)  TX bytes:5124 (5.0 Kb)

bash-3.00# ifctl eth1 up
eth1: device not started.
bash-3.00# dhclient eth1
Internet Systems Consortium DHCP Client V3.0.4
Copyright 2004-2006 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

Listening on LPF/eth1/00:05:3c:06:81:3b
Sending on   LPF/eth1/00:05:3c:06:81:3b
Sending on   Socket/fallback
DHCPREQUEST on eth1 to 255.255.255.255 port 67
DHCPREQUEST on eth1 to 255.255.255.255 port 67
DHCPACK from 192.168.1.1
tail: cannot open `/var/lib/net/eth1.pid' for reading: No such file or
directorybound to 192.168.1.2 -- renewal in 77726 seconds.

bash-3.00# ifctl eth1 down
eth1: device not started.

bash-3.00# ifconfig eth0 192.168.24.20 netmask 255.255.255.0
broadcast 192.168.24.255

bash-3.00# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:09:6B:A0:AE:04
         inet addr:192.168.24.20  Bcast:192.168.24.255
Mask:255.255.255.0
         UP BROADCAST RUNNING 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)

eth1      Link encap:Ethernet  HWaddr 00:05:3C:06:81:3B
         inet addr:192.168.1.2  Bcast:192.168.1.255
         Mask:255.255.255.0
         UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
         RX packets:1 errors:0 dropped:0 overruns:0 frame:0
         TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:1000
         RX bytes:584 (584.0 b)  TX bytes:792 (792.0 b)
         Interrupt:11 Memory:f8000000-f8000fff

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:5124 (5.0 Kb)  TX bytes:5124 (5.0 Kb)

bash-3.00# ping 192.168.24.1
PING 192.168.24.1 (192.168.24.1): 56 octets data
64 octets from 192.168.24.1: icmp_seq=0 ttl=64 time=1.0 ms
64 octets from 192.168.24.1: icmp_seq=1 ttl=64 time=0.1 ms

bash-3.00# ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1): 56 octets data
64 octets from 192.168.1.1: icmp_seq=0 ttl=30 time=44.1 ms
64 octets from 192.168.1.1: icmp_seq=1 ttl=30 time=2.1 ms

-- 
==============================================
((((    加藤泰文
○-○                karma @ jazz.email.ne.jp
==============================================
 (Web Page) http://www.ne.jp/asahi/ka/to/
==============================================

Follow-Ups
[plamo:28295] Re: Note PCのネットワーク設定, KOJIMA Mitsuhiro
[plamo:28302] Re: Note PC のネットワーク設定, KATOH Yasufumi
References
[plamo:28288] Note PC のネットワーク設定, KATOH Yasufumi

[検索ページ] [メール一覧]
Plamo ML 公開システム