Sample Header Ad - 728x90

Veth interface configuration persistent

2 votes
2 answers
4115 views
How to configure the veth interface on CentOS 7 in such a way to make it state persistent after system reboot? For example: veth configuration: # create veth pair and assing IP address. ip link add veth0 type veth peer name veth1 ip addr add 10.1.0.1/24 dev veth0 ip addr add 10.1.0.2/24 dev veth1 # bring up the interfaces ip link set veth0 up ip link set veth1 up These settings are saved after network service restart but are not saved after system restart. In the RedHat documentation does not mention now to write ifcfg-vethX interface configuration file or ifup-veth and ifdown-veth scripts for the veth interfaces that should be in /etc/sysconfig/network-scripts.
Asked by mg3 (23 rep)
Aug 23, 2019, 10:04 AM
Last activity: Sep 2, 2019, 03:15 PM