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

How to delete second default route

This problem arised recently after an upgrade (running sid)

How do I remove the first default route in this list?

ip route del default

does not do it.  When I disable enp0s25 the second line (via will be the only and correct default route. In that case "ip route del default"  wil remove it.

$ sudo ip route list
default dev enp0s25 scope link
default via dev wlo1 proto dhcp metric 600 dev wlo1 scope link metric 1000 dev enp0s25 proto kernel scope link src dev wlo1 proto kernel scope link src metric 600 dev enp0s25 scope link dev enp0s25 scope link
08:39:45 js@kiekie2:~$ sudo ifconfig enp0s25 down

Because experiencing your loyal love is better than life itself,
my lips will praise you.  (Psalm 63:3)

Reply to: