TransWikia.com

persistent vti configuration in CentOS

Server Fault Asked on November 27, 2021

How to translate this command:

ip link add name vti1 type vti key VTI_KEY local LOCAL_IPv4_ADDR remote REMOTE_IPv4_ADDR

into persistent config in /etc/sysconfig/network-scripts/ifcfg-vti1 ?

One Answer

Check out this snippet from the /etc/sysconfig/network-scripts/ifup-tunnel script

# 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"}

Your "MODE" will likely be "IPIP".

Answered by Alexander Javoronkov on November 27, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP