iproute2 是 Linux 上管理 TCP/IP 網路的一套工具程式,包括網路界面、routing、tunnels、traffic control、和網路相關 device drivers,通常以套件 iproute 或 iproute2 發行。iproute2 工具程式使用 netlink 協定跟 Linux kernel 溝通。
| net-tools | iproute2 | 說明 |
|---|---|---|
| ifconfig if[:n] ip[/len| netmask nm] | ip addr add ip[/len] dev if | 界面 if 設定或新增 (有 :n) IPv4 位址 ip。netmask nm。nm 需轉換成 prefix 長度 len。 |
| ifconfig if add ip/len | 界面 if 新增 IPv6 位址 ip,prefix 長度為 len。 | |
| ifconfig | ip addr, ip link, ip -s | 其它 Address and link 設定 |
| route | ip route | Routing tables |
| arp | ip neigh | Neighbors |
| iptunnel | ip tunnel | Tunnels |
| nameif | ifrename, ip link set name | 網路界面改名 |
| ipmaddr | ip maddr | 群播 |
| netstat | ip -s, ss, ip route | 顯示網路統計 |
除了 ip 指令,還有 ss, bridge, rtacct, rtmon, tc, ctstat, lnstat, nstat, routef, routel, rtstat, tipc, arpd 和 devlink。
參考
沒有留言:
張貼留言