Score:0

How to setup xfrm tunnel on boot for Fedora/RedHat/CentOS?

cn flag

After researching for a couple of days, I was utterly stuck in understanding how to configure XFRM tunnel on boot for Fedora/RedHat/CentOS systems.

I didn't have any issues with the same task on Ubuntu/Debian systems where systemd-networkd & netplan are available.

I create *.network & *.netdev files to describe a new XFRM link in that system.

# 10-lo-xfrm.network

[Match]
Name=lo
[Network]
Xfrm=ip-tun-01
# 30-ip-tun-01.netdev

[NetDev]
Name=ip-tun-01
Kind=xfrm
MTUBytes=1436

[Xfrm]
InterfaceId=1001

and then with netplan I did the following

# 100-tun-01.yaml

network:
    version: 2
    ethernets:
        ip-tun-01:
            dhcp4: false
            dhcp6: false
            addresses: [169.254.0.1/30,2001:db8::1/127]

And it works for Ubuntu & Debian.

Would you please help me do the same for RedHat-based systems?

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.