Ask Your Question
1

Cannot delete Default route

asked 2015-06-18 01:00:55 -0600

Ujitha gravatar image

updated 2015-06-20 23:23:53 -0600

mether gravatar image

I'm using both wifi and wired connection simultaneously. currently my default destination is to wired connection. I need to delete that route. so I can use my WiFi as my default.

Please Help on this

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         gateway         0.0.0.0         UG    100    0        0 enp3s0
default         homerouter.cpe  0.0.0.0         UG    600    0        0 wlp2s0
172.19.44.0     gateway         255.255.255.0   UG    100    0        0 enp3s0
172.19.53.0     gateway         255.255.255.0   UG    100    0        0 enp3s0
172.19.55.0     gateway         255.255.255.0   UG    100    0        0 enp3s0
192.168.1.0     0.0.0.0         255.255.255.0   U     600    0        0 wlp2s0
192.168.122.0   0.0.0.0         255.255.255.0   U     0      0        0 virbr0
192.168.196.0   0.0.0.0         255.255.255.0   U     100    0        0 enp3s0

I have used following commands It will not work.

route delete -net default netmask 0.0.0.0 gw gateway dev enp3s0 sudo route del -net default gw gateway netmask 0.0.0.0 dev ip route del default route del -net default netmask 0.0.0.0 gw gateway enp3s0 route del default gw gateway enp3s0

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
1

answered 2015-06-18 11:59:37 -0600

BRPocock gravatar image

Under “Settings” → Network, if you click on your Wired connection on the left, then click the settings (gear wheel) on the right. In the details window that appears, click the “IPv4” label on the left, then scroll to the bottom, and ✓ the box labeled □ Use this connection only for resources on its network. This will prevent NetworkManager from setting a default route through it.

If you're not using NetworkManager, make sure it's disabled, or it may overwrite the changes you're trying to make.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2015-06-18 01:00:55 -0600

Seen: 920 times

Last updated: Jun 18 '15