Bug 3151 - ip route show - dev argument
Summary: ip route show - dev argument
Status: RESOLVED FIXED
Alias: None
Product: Busybox
Classification: Unclassified
Component: Networking (show other bugs)
Version: 1.18.x
Hardware: PC Linux
: P5 minor
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-26 19:16 UTC by alex hauras
Modified: 2011-02-10 11:49 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description alex hauras 2011-01-26 19:16:11 UTC
busybox 1.18.2
I think showing routes by device is broken in current "ip" command:

busybox ip route show
195.xx.xx.0/23 via 172.16.254.146 dev eth0.951  metric 133
195.xx.xx.0/23 via 172.16.254.137 dev eth0.960  metric 133
212.xx.xx.0/24 via 172.31.0.170 dev eth1
213.xx.xx.0/18 via 172.31.0.170 dev eth1
217.xx.xx.0/19 via 172.31.0.170 dev eth1

busybox ip route show dev eth1
195.xx.xx.0/23 via 172.16.254.146  metric 133
195.xx.xx.0/23 via 172.16.254.137  metric 133
212.xx.xx.0/24 via 172.31.0.170
213.xx.xx.0/18 via 172.31.0.170
217.xx.xx.0/19 via 172.31.0.170

iproute package: ip route show dev eth1
212.xx.xx.0/24 via 172.31.0.170
213.xx.xx.0/18 via 172.31.0.170
217.xx.xx.0/19 via 172.31.0.170

and another, "ip" does not know about field "proto" (at least it must supply proto numeric instead "zebra" etc)

busybox ip route show
192.168.xx.xx via 172.16.254.6  metric 66
192.168.xx.xx via 172.16.254.1  metric 66

iproute package: ip route show
192.168.xx.xx via 172.16.254.6  proto zebra  metric 66
192.168.xx.xx via 172.16.254.1  proto zebra  metric 66
Comment 1 Denys Vlasenko 2011-02-10 11:49:21 UTC
Fixed in git, will be in 1.19.x