Re: Applying changes to route-eth0

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]





On 1/30/19 12:51 PM, mark wrote:
Robert Moskowitz wrote:
I have a series of static routes in route-eth0

Recently I had to made changes and could not find an effective way to
get the old routes out and the new routes in.

ifdown-route seems to apply the content of route-eth0 to take down the
routes listed and ifup-route brings up routes based on route-

So what ends up is that the old routes never go away, just new routes
added.

ifdown eth0; ifup eth0

works, but is a bit heavy-handed for only changing routes.

So how do I clear out the routing table and have it rebuilt based on
ifcfg-eth0 and route-eth0 without bouncing the interface completely?
Can't you do ip route delete ...?

I did some digging and came up with:

ip route flush table main; ifup-route eth0

This only works if the only entries in the routing table are for eth0.  Which is my case.


_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
https://lists.centos.org/mailman/listinfo/centos




[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]


  Powered by Linux