如何翻译这个命令:
ip link add name vti1 type vti key VTI_KEY local LOCAL_IPv4_ADDR remote REMOTE_IPv4_ADDR
进入 /etc/sysconfig/network-scripts/ifcfg-vti1 中的持久配置?
答案1
看看这个片段/etc/sysconfig/network-scripts/ifup-tunnel脚本
# Create the tunnel
# The outer addresses are those of the underlying (public) network.
/sbin/ip $proto tunnel add "$DEVICE" mode "$MODE" \
${MY_OUTER_IPADDR:+local "$MY_OUTER_IPADDR"} \
${PEER_OUTER_IPADDR:+remote "$PEER_OUTER_IPADDR"} \
${KEY:+key "$KEY"} ${TTL:+ttl "$TTL"}
您的“MODE”可能是“IPIP”。