Quantcast
Channel: User Thomas - Ask Ubuntu
Viewing all articles
Browse latest Browse all 41

Answer by Thomas for How to delete a route by its id or something easy to type

$
0
0

Not knowing which Ubuntu version you are using, but ip route del should do the trick.

You also should use ip route to list the routes. Then delete the routes as follows.

root@host:~# ip routedefault via 192.168.122.1 dev ens3 proto dhcp metric 101 10.0.10.0/24 dev ens10 proto kernel scope link src 10.0.10.209 metric 100 169.254.0.0/16 dev ens10 scope link metric 1000 192.168.122.0/24 dev ens3 proto kernel scope link src 192.168.122.47 metric 101 root@host:~# ip route del 10.0.10.0/24root@host:~# ip routedefault via 192.168.122.1 dev ens3 proto dhcp metric 101 169.254.0.0/16 dev ens10 scope link metric 1000 192.168.122.0/24 dev ens3 proto kernel scope link src 192.168.122.47 metric 101 

If you cannot find the ip command, try to install it with apt-get install iproute2.


Viewing all articles
Browse latest Browse all 41

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>