ビーグルボーンの静的IPアドレス

ビーグルボーンの静的IPアドレス

USB-EthernetアダプタをUSB2.0ポートに接続し、アダプタをEthernetケーブルとネットワークスイッチに接続しました。これはifconfigのeth1ポートとして表示され、動的IPアドレスを取得します。私の質問は

1. 以下のように /etc/network/interfaces ファイルを変更して eth1 を固定 IP に設定しても、IP アドレスはまだ動的です。

    ##connman: WiFi
#
#connmanctl
#connmanctl> tether wifi off
#connmanctl> enable wifi
#connmanctl> scan wifi
#connmanctl> services
#connmanctl> agent on
#connmanctl> connect wifi_*_managed_psk
#connmanctl> quit

auto eth1
#allow-hotplug eth1
iface eth1 inet static
address 192.168.5.10
netmask 255.255.255.0
network 192.168.5.15
broadcast 192.168.5.255
gateway 192.168.5.1

# Ethernet/RNDIS gadget (g_ether)
# Used by: /opt/scripts/boot/autoconfigure_usb0.sh
iface usb0 inet static
    address 192.168.7.2
    netmask 255.255.0.0
    network 192.168.7.0
    gateway 192.168.7.1
  1. conmanサービスが開始され、動的IPアドレスをマザーボードに再割り当てするようです。 connmanサービスをクリアしてeth0の静的IPアドレスを変更しましたが、eth1インターフェイスは表示されなくなりました。

    1. connmanサービスを再度追加し、/usr/lib/connman/test/を変更しようとしましたが、usr / libの下にconnmanフォルダがありません。

助けてくれてありがとう。

ベストアンサー1

手動connmanctlコマンドのサービスを作成してこの問題を解決しました。

connmanctl 設定 ethernet_20c9d029e088_cable ipv4 手動 192.168.5.10 255.255.255.0

ステップは次のとおりです。 1. 上記のコマンドを使用して bash スクリプトを生成します。 2. 起動するたびに、このスクリプトを実行するサービスを作成します。

サービス生成のガイドラインは次のとおりです。

http://mybeagleboneblackfindings.blogspot.com/2013/10/running-script-on-beaglebone-black-boot.html

おすすめ記事