[Bug 6548] New: "route del" can't delete default routes
bugzilla at busybox.net
bugzilla at busybox.net
Mon Oct 14 14:55:53 UTC 2013
https://bugs.busybox.net/show_bug.cgi?id=6548
Summary: "route del" can't delete default routes
Product: Busybox
Version: 1.19.x
Platform: Other
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P5
Component: Networking
AssignedTo: unassigned at busybox.net
ReportedBy: uros7272 at gmail.com
CC: busybox-cvs at busybox.net
Estimated Hours: 0.0
At the boot, dhcp client sets following routing table:
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 10.2.6.1 0.0.0.0 UG 0 0 0 eth0
10.1.1.111 10.2.6.1 255.255.255.255 UGH 0 0 0 eth0
10.1.1.112 10.2.6.1 255.255.255.255 UGH 0 0 0 eth0
10.2.6.0 0.0.0.0 255.255.254.0 U 0 0 0 eth0
10.2.6.1 0.0.0.0 255.255.255.255 UH 0 0 0 eth0
Trying to delete default route with:
$ route del default gw 10.2.6.1 eth0
didn't succeed, the table still reads:
$ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 10.2.6.1 0.0.0.0 UG 0 0 0 eth0
10.1.1.111 10.2.6.1 255.255.255.255 UGH 0 0 0 eth0
10.1.1.112 10.2.6.1 255.255.255.255 UGH 0 0 0 eth0
10.2.6.0 0.0.0.0 255.255.254.0 U 0 0 0 eth0
10.2.6.1 0.0.0.0 255.255.255.255 UH 0 0 0 eth0
On a related note, similar route also can't be removed
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0 eth1
10.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth1
$ route del default eth1
$ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0 eth1
10.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth1
(I have checked on Fedora 19 that its default routes can be removed without
problems using above commands.)
--
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the busybox-cvs
mailing list