不要な読み取り専用ネットワークインターフェイス(ifupdown)

不要な読み取り専用ネットワークインターフェイス(ifupdown)

実行中のAndroid TVボックスがあります。アンビアン5.41(Ubuntu 16.04.5)。 kodi-standaloneからMATEに変更した後、ネットワークの問題が見つかりました。

ボックスはイーサネット経由で接続され、MATEはeth0とifupdown(eth0)の2つのインターフェースを表示します。 ifupdownは読み取り専用なので固定IPを設定できないので、eth0を使いたいです。 MATEが再起動されるたびに自動的にifupdownに接続され、ネットワークは接続されません。

固定IPが必要です。パイホールまた、DHCPサーバーがアクティブな状態で実行されています。 eth0 の固定 IP はネットワーク管理者で設定されました。このインターフェイスを削除するか、少なくとも一般的なeth0をデフォルトに設定するにはどうすればよいですか?

/etc/ネットワーク/インターフェース

# Wired adapter #1
allow-hotplug eth0
no-auto-down eth0
iface eth0 inet dhcp
#address 192.168.0.17
#netmask 255.255.255.0
#gateway 192.168.0.1
#dns-nameservers 8.8.8.8 8.8.4.4
#       hwaddress ether # if you want to set MAC manually
#       pre-up /sbin/ifconfig eth0 mtu 3838 # setting MTU for DHCP, static just: mtu 3838


# Wireless adapter #1
# Armbian ships with network-manager installed by default. To save you time
# and hassles consider using 'sudo nmtui' instead of configuring Wi-Fi settings
# manually. The below lines are only meant as an example how configuration could
# be done in an anachronistic way:
#
#allow-hotplug wlan0
#iface wlan0 inet dhcp
#address 192.168.0.100
#netmask 255.255.255.0
#gateway 192.168.0.1
#dns-nameservers 8.8.8.8 8.8.4.4
#   wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
# Disable power saving on compatible chipsets (prevents SSH/connection dropouts over WiFi)
#wireless-mode Managed
#wireless-power off

# Local loopback
auto lo
iface lo inet loopback

ベストアンサー1

から/etc/network/interfaces

# Armbian ships with network-manager installed by default. To save you time
# and hassles consider using 'sudo nmtui' instead of configuring Wi-Fi settings
# manually.

/etc/NetworkManager/NetworkManager.conf以下を編集して変更します。

[ifupdown]
managed=true

到着

[ifupdown]
managed=false

ネットワーク管理者は、/etc/network/interfaces実行時に設定されたネットワークインタフェースを管理しません。

sudo systemctl restart network-manager

sudo nmtui静的IPを設定するには、コマンドを使用します。

おすすめ記事