[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 192.168.1.1) 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 192.168.1.1 dev wlo1 proto dhcp metric 600
169.254.0.0/16 dev wlo1 scope link metric 1000
192.168.0.0/24 dev enp0s25 proto kernel scope link src 192.168.0.2
192.168.1.0/24 dev wlo1 proto kernel scope link src 192.168.1.116 metric 600
208.67.220.220 dev enp0s25 scope link
208.67.222.222 dev enp0s25 scope link
08:39:45 js@kiekie2:~$ sudo ifconfig enp0s25 down

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

Reply to: