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.