增加 Linux查看网关、子网掩码和 IP 地址.

Signed-off-by: ithink.chan <chenyang@autoai.com>
This commit is contained in:
ithink.chan 2020-04-28 14:13:19 +08:00
parent f0bd5b2623
commit 3cbd821a19
1 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,10 @@
# Linux查看网关、子网掩码和 IP 地址
```sh
# 查看网关和子网掩码
route -n
netstat -r
# 查看 IP 地址等
ifconfig
ip a
```