불필요한 읽기 전용 네트워크 인터페이스(ifupdown)

불필요한 읽기 전용 네트워크 인터페이스(ifupdown)

실행 중인 Android TV 박스가 있습니다.앰비안5.41(우분투 16.04.5). kodi-standalone에서 MATE로 변경한 이후 네트워크 문제를 발견했습니다.

상자는 이더넷을 통해 연결되며 MATE는 eth0과 ifupdown(eth0)의 두 가지 인터페이스를 표시합니다. 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를 구성하려면 명령을 사용하십시오 .

관련 정보