iproute2 rules aren't cleaned up when interface is brought down with ifdown.

Solution Unverified - Updated -

Issue

  • iproute2 rules aren't cleaned up when interface is brought down with ifdown
  • The iproute rules that we've configured in /etc/sysconfig/network-scripts/rule-<interface> aren't cleaned up when we do an ifdown on the interface.
  • We do have the NetworkManager-dispatcher-routing-rules package installed so that the routes and rules are configured properly when interfaces come up and down.
  • It's just that the rules aren't cleaned up when the interface goes down with either an ifdown or systemctl restart network

Environment

  • Red Hat Enterprise Linux 7
  • iproute2 policy based routing (/etc/iproute2/rt_tables, rule-ethX, route-ethX)
  • NetworkManager
  • network service from initscripts

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content