I'm trying to persist the following route:
Code: Select all
#ip route add 192.168.1.0/24 dev ens192 via 10.1.2.1 mtu lock 1438
#ip route
192.168.1.0/24 via 10.1.2.1 dev ens192 mtu lock 1438
According to documentation I have set a configuration file like this , but it doesn't work:
Code: Select all
#cat /etc/sysconfig/network-scripts/route-ens192
ADDRESS0=192.168.1.0
NETMASK0=255.255.255.0
GATEWAY0=10.1.2.1
OPTIONS0="mtu 1438"