Android 常用指令 與 linux 通用,不過 ifconfig已由 ip取代。
ASUS_T00F:/ $ ip help
Usage: ip [ OPTIONS ] OBJECT { COMMAND | help } ip [ -force ] -batch filename
where OBJECT := { link | addr | addrlabel | route | rule | neigh | ntable | tunnel | tuntap | maddr | mroute | mrule | monitor | xfrm | netns | l2tp }
OPTIONS := { -V[ersion] | -s[tatistics] | -d[etails] | -r[esolve] | -f[amily] { inet | inet6 | ipx | dnet | link } | -l[oops] { maximum-addr-flush-attempts } | -o[neline] | -t[imestamp] | -b[atch] [filename] |
指令範例:
查詢網卡資訊:
$ ip addr show
$ ip addr list rmnet0
顯示 Routing Table
$ip r
$ ip route
$ ip route show
$ ip route list
ASUS_T00F:/ $ ip help
Usage: ip [ OPTIONS ] OBJECT { COMMAND | help } ip [ -force ] -batch filename
where OBJECT := { link | addr | addrlabel | route | rule | neigh | ntable | tunnel | tuntap | maddr | mroute | mrule | monitor | xfrm | netns | l2tp }
OPTIONS := { -V[ersion] | -s[tatistics] | -d[etails] | -r[esolve] | -f[amily] { inet | inet6 | ipx | dnet | link } | -l[oops] { maximum-addr-flush-attempts } | -o[neline] | -t[imestamp] | -b[atch] [filename] |
指令範例:
查詢網卡資訊:
$ ip addr show
$ ip addr list rmnet0
顯示 Routing Table
$ip r
$ ip route
$ ip route show
$ ip route list