netctl:啟動介面幾秒鐘後靜態IP配置自動遺失

netctl:啟動介面幾秒鐘後靜態IP配置自動遺失

我在 Hyper-V 上的 Arch Linux 中使用 netctl。我有兩個乙太網路介面 eth0 和 eth1。

IP配置:

  1. eth0:dhcp(自動配置,不涉及netctl)
  2. eth1:使用 netctl 設定檔的靜態 IP (10.10.10.1/8)
  3. dhcpcd 安裝並在啟動時啟用
  4. NetworkManager 在啟動時安裝並啟用

eth1 netctl 設定檔(/etc/netctl/sth1static):

    Description='Static IP config for eth1'
Interface=eth1
Connection=ethernet
IP=static
Address=('10.10.10.1/8')
Gateway='10.10.10.2'
DNS=('10.10.10.2')

要啟動介面,我正在執行以下操作:

# netctl stop eth1static
# ip link set eth1 down
# # netctl start eth1static
# # netctl enable eth1static

執行上述步驟後,我能夠看到. Also I am able to ping the guest interface from my host OS successfully. However after a minute or so, I see the interface lose its configuration and gets a僅使用基於 1ip a fe80:` 的 IPv6 位址應用於接口的靜態 IP 配置,並且 ping 停止工作...即使重新啟動後,我也看不到 IP 配置接口,而另一個接口(eth0)工作正常。

誰能建議出什麼問題以及如何解決它?

相關內容