IAMEM Hosting

Adding Persistent Routes in CentOS 7 Servers

Home > Blog > Hosting > Adding Persistent Routes in CentOS 7 Servers
21Oct, 2016
0

Adding Persistent Routes in CentOS 7 Servers

 

Persistent routes should be added in the route file, if your interface name is ens001, then you need to create the following file

vi  /etc/sysconfig/network-scripts/route-ens001

and add routes in the following format

10.10.20.0/24 via 192.168.20.1 dev ens001

now the route is permanent and will be recovered after a reboot.

 

Leave a Reply

nine + 18 =

Copyright © 2019 | iamemhost.com . All rights reserved.