[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox-cvs
Subject:    [Bug 6548] New: "route del" can't delete default routes
From:       bugzilla () busybox ! net
Date:       2013-10-14 14:55:53
Message-ID: bug-6548-161 () https ! bugs ! busybox ! net/
[Download RAW message or body]

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@busybox.net
        ReportedBy: uros7272@gmail.com
                CC: busybox-cvs@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.
_______________________________________________
busybox-cvs mailing list
busybox-cvs@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox-cvs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic