问题原文
原帖链接 · sunknudsen · CC BY-SA 4.0
I am trying to create an equivalent to the following for systemd.
auto strongswan0
iface strongswan0 inet static
address 10.0.2.1/24
pre-up ip link add strongswan0 type dummy
已采纳解答
原帖链接 · sunknudsen · CC BY-SA 4.0
Figured it out!
cat << "EOF" >> /etc/systemd/network/10-strongswan0.netdev
[NetDev]
Name=strongswan0
Kind=dummy
EOF
cat << "EOF" >> /etc/systemd/network/20-strongswan0.network
[Match]
Name=strongswan0
[Network]
Address=10.0.2.1/24
EOF
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
