![netctl:啟動介面幾秒鐘後靜態IP配置自動遺失](https://rvso.com/image/1628416/netctl%EF%BC%9A%E5%95%9F%E5%8B%95%E4%BB%8B%E9%9D%A2%E5%B9%BE%E7%A7%92%E9%90%98%E5%BE%8C%E9%9D%9C%E6%85%8BIP%E9%85%8D%E7%BD%AE%E8%87%AA%E5%8B%95%E9%81%BA%E5%A4%B1.png)
我在 Hyper-V 上的 Arch Linux 中使用 netctl。我有兩個乙太網路介面 eth0 和 eth1。
IP配置:
- eth0:dhcp(自動配置,不涉及netctl)
- eth1:使用 netctl 設定檔的靜態 IP (10.10.10.1/8)
- dhcpcd 安裝並在啟動時啟用
- 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)工作正常。
誰能建議出什麼問題以及如何解決它?