[CentOS] Fwd: Persistent route

Pete Biggs pete at biggs.org.uk
Thu Nov 9 09:48:15 UTC 2017


On Thu, 2017-11-09 at 12:29 +0300, Ritah Mulinde wrote:
> Hello everyone
> 
> Iam trying to delete a route from mt CentOs 7 server but everytime i
> restart network services, it reappears
> 
> iam using command
> "route del -net x.x.x.x/x gw x.x.x.x <interface name>"
> 
> Am i missing something??
> 
You have to delete it from the network configuration as well - all that
command does is to remove the route from the current running
configuration.

I suspect you are probably using Network Manager, in which case you can
use nmtui or nmcli to remove the route from the stored configuration.
There are gui ways to do it as well if you prefer that.

P.





More information about the CentOS mailing list