nas:readynas_duo_v2_openwrt
差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン前のリビジョン次のリビジョン | 前のリビジョン | ||
nas:readynas_duo_v2_openwrt [2022/05/21 22:29] – [とりあえずインストール] nipa28 | nas:readynas_duo_v2_openwrt [2022/05/22 21:09] (現在) – nipa28 | ||
---|---|---|---|
行 64: | 行 64: | ||
### とりあえずインストール | ### とりあえずインストール | ||
- | コンソールログ→ | + | 手順の通りやってみる。 |
+ | |||
+ | コンソールログ→ | ||
{{: | {{: | ||
行 127: | 行 129: | ||
root@OpenWrt: | root@OpenWrt: | ||
``` | ``` | ||
+ | opkgコマンドがエラー | ||
WebUIのLuciがインストールできない。 | WebUIのLuciがインストールできない。 | ||
+ | これではインストールできたはよいが、まるで何もできないぞ・・・ | ||
ネットワークに問題ある? | ネットワークに問題ある? | ||
- | インストールできたはよいが、まるで何もできないぞ・・・ | + | |
+ | ping打ってみる。 | ||
+ | |||
+ | opwnwrt.org NG | ||
+ | google.com NG | ||
+ | yahoo.co.jp OK | ||
+ | |||
+ | IPv6のアドレスがダメってことか・・・: | ||
+ | |||
+ | ``` | ||
+ | root@OpenWrt: | ||
+ | PING downloads.openwrt.org (2a01: | ||
+ | ^C | ||
+ | --- downloads.openwrt.org ping statistics --- | ||
+ | 40 packets transmitted, | ||
+ | root@OpenWrt: | ||
+ | PING google.com (2404: | ||
+ | ^C | ||
+ | --- google.com ping statistics --- | ||
+ | 10 packets transmitted, | ||
+ | root@OpenWrt: | ||
+ | PING yahoo.co.jp (183.79.219.252): | ||
+ | 64 bytes from 183.79.219.252: | ||
+ | 64 bytes from 183.79.219.252: | ||
+ | 64 bytes from 183.79.219.252: | ||
+ | 64 bytes from 183.79.219.252: | ||
+ | ^C | ||
+ | --- yahoo.co.jp ping statistics --- | ||
+ | 4 packets transmitted, | ||
+ | round-trip min/avg/max = 15.601/ | ||
+ | root@OpenWrt: | ||
+ | ``` | ||
+ | |||
+ | あれ、でも他のPCからping打つと IPv4だよ・・・:?: | ||
+ | Windows10のWSL2のUbuntuからpingを打ったら | ||
+ | {{: | ||
+ | |||
+ | なんで OpenWrtなRedyNASは IPv6 になってるんだろ: | ||
+ | |||
+ | ### Luciのインストールに一苦労(opkg が使えない) | ||
+ | |||
+ | #### 問題はIPv6 | ||
+ | |||
+ | とりあえず Open-Wrt はインストールされ、ssh接続できるようにはなった。 | ||
+ | |||
+ | Webの設定画面 luci をインストールしようとしたが opkg コマンドがエラーになる。 | ||
+ | これでは、何もパッケージがインストールできない。 | ||
+ | |||
+ | はて、、、 | ||
+ | |||
+ | どうやら ipv6 で接続しようとして、接続できないでいるようだ。 | ||
+ | localhost は ipv6 でもpingが通るけど、外部のサイトは ipv6 だと pingが通らない。 | ||
+ | |||
+ | 接続できない原因が、うちのインターネット環境(フレッツ、OCN)にあるのか、ブロードバンドルーター(結構古いNEC ATerm)にあるのか、その両方のせいなのか、設定が悪いだけなのか、ちょっと分からない。 | ||
+ | |||
+ | 《追記》 | ||
+ | 我が家のインターネット環境ではIPv6接続ができていない(面倒くさくて設定していない)ことが判明した。 | ||
+ | {{: | ||
+ | |||
+ | |||
+ | ipv4 なら問題なく接続できているので、安直に考えて ipv6 を無効にして ipv4で接続するようにしたい。 | ||
+ | |||
+ | ``` | ||
+ | |||
+ | |||
+ | BusyBox v1.35.0 (2022-05-20 19:00:24 UTC) built-in shell (ash) | ||
+ | |||
+ | _______ | ||
+ | | ||
+ | | ||
+ | | ||
+ | |__| W I R E L E S S F R E E D O M | ||
+ | | ||
+ | | ||
+ | | ||
+ | root@OpenWrt: | ||
+ | PING google.com (2404: | ||
+ | ^C | ||
+ | --- google.com ping statistics --- | ||
+ | 3 packets transmitted, | ||
+ | root@OpenWrt: | ||
+ | root@OpenWrt: | ||
+ | PING google.com (142.250.207.14): | ||
+ | 64 bytes from 142.250.207.14: | ||
+ | 64 bytes from 142.250.207.14: | ||
+ | 64 bytes from 142.250.207.14: | ||
+ | 64 bytes from 142.250.207.14: | ||
+ | ^C | ||
+ | --- google.com ping statistics --- | ||
+ | 4 packets transmitted, | ||
+ | round-trip min/avg/max = 7.366/ | ||
+ | root@OpenWrt: | ||
+ | root@OpenWrt: | ||
+ | PING openwrt.org (2a03: | ||
+ | ^C | ||
+ | --- openwrt.org ping statistics --- | ||
+ | 6 packets transmitted, | ||
+ | |||
+ | root@OpenWrt: | ||
+ | PING openwrt.org (139.59.209.225): | ||
+ | 64 bytes from 139.59.209.225: | ||
+ | 64 bytes from 139.59.209.225: | ||
+ | 64 bytes from 139.59.209.225: | ||
+ | 64 bytes from 139.59.209.225: | ||
+ | ^F64 bytes from 139.59.209.225: | ||
+ | 64 bytes from 139.59.209.225: | ||
+ | ^C | ||
+ | --- openwrt.org ping statistics --- | ||
+ | 6 packets transmitted, | ||
+ | round-trip min/avg/max = 247.695/ | ||
+ | root@OpenWrt: | ||
+ | PING localhost (::1): 56 data bytes | ||
+ | 64 bytes from ::1: seq=0 ttl=64 time=0.191 ms | ||
+ | 64 bytes from ::1: seq=1 ttl=64 time=0.154 ms | ||
+ | 64 bytes from ::1: seq=2 ttl=64 time=0.145 ms | ||
+ | 64 bytes from ::1: seq=3 ttl=64 time=0.143 ms | ||
+ | ^C | ||
+ | --- localhost ping statistics --- | ||
+ | 4 packets transmitted, | ||
+ | round-trip min/avg/max = 0.143/ | ||
+ | root@OpenWrt: | ||
+ | PING localhost (127.0.0.1): | ||
+ | 64 bytes from 127.0.0.1: seq=0 ttl=64 time=0.158 ms | ||
+ | 64 bytes from 127.0.0.1: seq=1 ttl=64 time=0.130 ms | ||
+ | 64 bytes from 127.0.0.1: seq=2 ttl=64 time=0.123 ms | ||
+ | 64 bytes from 127.0.0.1: seq=3 ttl=64 time=0.120 ms | ||
+ | 64 bytes from 127.0.0.1: seq=4 ttl=64 time=0.117 ms | ||
+ | ^C | ||
+ | --- localhost ping statistics --- | ||
+ | 5 packets transmitted, | ||
+ | round-trip min/avg/max = 0.117/ | ||
+ | root@OpenWrt: | ||
+ | ``` | ||
+ | |||
+ | 下をやって再起動してみたけど変わらなかった。 | ||
+ | |||
+ | ``` | ||
+ | root@OpenWrt: | ||
+ | root@OpenWrt: | ||
+ | root@OpenWrt: | ||
+ | root@OpenWrt: | ||
+ | root@OpenWrt: | ||
+ | root@OpenWrt: | ||
+ | ``` | ||
+ | |||
+ | ``` | ||
+ | BusyBox v1.35.0 (2022-05-20 19:00:24 UTC) built-in shell (ash) | ||
+ | |||
+ | _______ | ||
+ | | ||
+ | | ||
+ | | ||
+ | |__| W I R E L E S S F R E E D O M | ||
+ | | ||
+ | | ||
+ | | ||
+ | root@OpenWrt: | ||
+ | root@OpenWrt: | ||
+ | PING openwrt.org (2a03: | ||
+ | ^C | ||
+ | --- openwrt.org ping statistics --- | ||
+ | 9 packets transmitted, | ||
+ | root@OpenWrt: | ||
+ | ``` | ||
+ | |||
+ | こちら [OpenWrt Disable IPV6](https:// | ||
+ | |||
+ | |||
+ | シリアルコンソールから(ネットワーク越しのSSH接続ではなく) | ||
+ | ``` | ||
+ | BusyBox v1.35.0 (2022-05-20 19:00:24 UTC) built-in shell (ash) | ||
+ | |||
+ | _______ | ||
+ | | ||
+ | | ||
+ | | ||
+ | |__| W I R E L E S S F R E E D O M | ||
+ | | ||
+ | | ||
+ | | ||
+ | root@OpenWrt:/# | ||
+ | root@OpenWrt:/# | ||
+ | uci: Invalid argument | ||
+ | root@OpenWrt:/# | ||
+ | uci: Invalid argument | ||
+ | root@OpenWrt:/# | ||
+ | root@OpenWrt:/# | ||
+ | root@OpenWrt:/# | ||
+ | root@OpenWrt:/# | ||
+ | root@OpenWrt:/# | ||
+ | root@OpenWrt:/# | ||
+ | root@OpenWrt:/# | ||
+ | Command failed: Not found | ||
+ | root@OpenWrt:/# | ||
+ | root@OpenWrt:/# | ||
+ | running | ||
+ | root@OpenWrt:/# | ||
+ | root@OpenWrt:/# | ||
+ | root@OpenWrt:/# | ||
+ | [ 440.033405] br-lan: port 1(eth0) entered disabled state | ||
+ | [ 440.055864] device eth0 left promiscuous mode | ||
+ | [ 440.060348] br-lan: port 1(eth0) entered disabled state | ||
+ | root@OpenWrt:/# | ||
+ | [ 441.455429] br-lan: port 1(eth0) entered disabled state | ||
+ | [ 441.460886] device eth0 entered promiscuous mode | ||
+ | [ 443.763367] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control enabled | ||
+ | [ 443.773205] br-lan: port 1(eth0) entered blocking state | ||
+ | [ 443.778475] br-lan: port 1(eth0) entered forwarding state | ||
+ | [ 443.785528] IPv6: ADDRCONF(NETDEV_CHANGE): | ||
+ | |||
+ | root@OpenWrt:/# | ||
+ | root@OpenWrt:/# | ||
+ | root@OpenWrt:/# | ||
+ | root@OpenWrt:/# | ||
+ | root@OpenWrt:/# | ||
+ | root@OpenWrt:/# | ||
+ | [ 535.133777] br-lan: port 1(eth0) entered disabled state | ||
+ | [ 535.139343] device eth0 left promiscuous mode | ||
+ | [ 535.143803] br-lan: port 1(eth0) entered disabled state | ||
+ | root@OpenWrt:/# | ||
+ | [ 536.567870] br-lan: port 1(eth0) entered disabled state | ||
+ | [ 536.573325] device eth0 entered promiscuous mode | ||
+ | [ 538.885542] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control enabled | ||
+ | [ 538.895377] br-lan: port 1(eth0) entered blocking state | ||
+ | [ 538.900645] br-lan: port 1(eth0) entered forwarding state | ||
+ | [ 538.907335] IPv6: ADDRCONF(NETDEV_CHANGE): | ||
+ | |||
+ | root@OpenWrt:/# | ||
+ | ``` | ||
+ | |||
+ | `uci set ' | ||
+ | network再起動しても `IPv6: ADDRCONF(NETDEV_CHANGE): | ||
+ | |||
+ | ``` | ||
+ | root@OpenWrt:/# | ||
+ | 1: lo: < | ||
+ | link/ | ||
+ | inet 127.0.0.1/8 scope host lo | ||
+ | | ||
+ | inet6 ::1/128 scope host | ||
+ | | ||
+ | 2: eth0: < | ||
+ | link/ether 2c: | ||
+ | 5: br-lan: < | ||
+ | link/ether 2c: | ||
+ | inet 192.168.10.11/ | ||
+ | | ||
+ | inet6 2001: | ||
+ | | ||
+ | inet6 fe80:: | ||
+ | | ||
+ | root@OpenWrt:/# | ||
+ | 1: lo: < | ||
+ | inet6 ::1/128 scope host | ||
+ | | ||
+ | 5: br-lan: < | ||
+ | inet6 2001: | ||
+ | | ||
+ | inet6 fe80:: | ||
+ | | ||
+ | root@OpenWrt:/# | ||
+ | ``` | ||
+ | |||
+ | br-lanに inet6 ですと。 | ||
+ | |||
+ | ### やっとIPv6を無効にできた | ||
+ | |||
+ | 「OpenWrtでIPv6を無効にする」方法をGoogle先生に訊きまわったが、どうもうまくいかない。 | ||
+ | Ubuntuの記事だが、/ | ||
+ | |||
+ | ``` | ||
+ | root@OpenWrt:/# | ||
+ | root@OpenWrt:/# | ||
+ | root@OpenWrt:/# | ||
+ | root@OpenWrt:/# | ||
+ | ``` | ||
+ | |||
+ | が、OpenWRTには systemctlコマンドがなかった: | ||
+ | ええい、再起動してしまえ・・・ | ||
+ | |||
+ | ``` | ||
+ | BusyBox v1.35.0 (2022-05-20 19:00:24 UTC) built-in shell (ash) | ||
+ | |||
+ | _______ | ||
+ | | ||
+ | | ||
+ | | ||
+ | |__| W I R E L E S S F R E E D O M | ||
+ | | ||
+ | | ||
+ | | ||
+ | root@OpenWrt:/# | ||
+ | root@OpenWrt:/# | ||
+ | 1: lo: < | ||
+ | link/ | ||
+ | inet 127.0.0.1/8 scope host lo | ||
+ | | ||
+ | inet6 ::1/128 scope host | ||
+ | | ||
+ | 2: eth0: < | ||
+ | link/ether 2c: | ||
+ | 3: br-lan: < | ||
+ | link/ether 2c: | ||
+ | inet 192.168.10.11/ | ||
+ | | ||
+ | root@OpenWrt:/# | ||
+ | PING openwrt.org (139.59.209.225): | ||
+ | 64 bytes from 139.59.209.225: | ||
+ | 64 bytes from 139.59.209.225: | ||
+ | 64 bytes from 139.59.209.225: | ||
+ | 64 bytes from 139.59.209.225: | ||
+ | ^C | ||
+ | --- openwrt.org ping statistics --- | ||
+ | 4 packets transmitted, | ||
+ | round-trip min/avg/max = 247.421/ | ||
+ | root@OpenWrt:/# | ||
+ | ``` | ||
+ | |||
+ | おっ、IPv4になってる。 | ||
+ | なんかいろいろ無駄なことしたかもだけど、結果オーライということにしますか: | ||
+ | |||
+ | ### ようやくluciのインストールができそう | ||
+ | |||
+ | IPv6を無効にしたことで、IPv4での接続となり、opkgコマンドが無事使えるようになった。 | ||
+ | |||
+ | `opkg update` して、、、 | ||
+ | |||
+ | ``` | ||
+ | root@OpenWrt:/# | ||
+ | Downloading https:// | ||
+ | Updated list of available packages in / | ||
+ | Downloading https:// | ||
+ | Signature check passed. | ||
+ | Downloading https:// | ||
+ | Updated list of available packages in / | ||
+ | Downloading https:// | ||
+ | Signature check passed. | ||
+ | Downloading https:// | ||
+ | Updated list of available packages in / | ||
+ | Downloading https:// | ||
+ | Signature check passed. | ||
+ | Downloading https:// | ||
+ | Updated list of available packages in / | ||
+ | Downloading https:// | ||
+ | Signature check passed. | ||
+ | Downloading https:// | ||
+ | Updated list of available packages in / | ||
+ | Downloading https:// | ||
+ | Signature check passed. | ||
+ | Downloading https:// | ||
+ | Updated list of available packages in / | ||
+ | Downloading https:// | ||
+ | Signature check passed. | ||
+ | Downloading https:// | ||
+ | Updated list of available packages in / | ||
+ | Downloading https:// | ||
+ | Signature check passed. | ||
+ | root@OpenWrt:/# | ||
+ | |||
+ | ``` | ||
+ | |||
+ | luciをインストール | ||
+ | |||
+ | ``` | ||
+ | root@OpenWrt:/# | ||
+ | root@OpenWrt:/# | ||
+ | root@OpenWrt:/# | ||
+ | ``` | ||
+ | |||
+ | |||
+ | ### luci 起動に成功 | ||
+ | |||
+ | |||
+ | ブラウザから ReadyNasのIPアドレスに接続。 やっとここまでたどり着いた^_^ | ||
+ | |||
+ | {{: | ||
+ | |||
+ | {{: | ||
+ | |||
+ | OpenWRT化したReadyNAS Duo v2起動時のコンソールログ → [[nas: | ||
+ | |||
+ | ### WebUIでのネットワーク設定変更に失敗 | ||
+ | |||
+ | 現状ではブロードバンドルーター(NEC Aterm)のDHCPサーバー機能でIPアドレスをもらっていた。 | ||
+ | NASで運用するには固定IPの方がよいため、WebUIから固定IPへ変更しようとした。 | ||
+ | しかし、失敗したらしく、WebUIにも、SSHでも接続できなくなってしまった。 | ||
+ | |||
+ | {{: | ||
+ | {{: | ||
+ | {{: | ||
+ | {{: | ||
+ | {{: | ||
+ | {{: | ||
+ | {{: | ||
+ | {{: | ||
+ | {{: | ||
+ | {{: | ||
+ | {{: | ||
nas/readynas_duo_v2_openwrt.1653139760.txt.gz · 最終更新: 2022/05/21 22:29 by nipa28