11 lines
145 B
Markdown
11 lines
145 B
Markdown
|
# Linux查看网关、子网掩码和 IP 地址
|
||
|
|
||
|
```sh
|
||
|
# 查看网关和子网掩码
|
||
|
route -n
|
||
|
netstat -r
|
||
|
# 查看 IP 地址等
|
||
|
ifconfig
|
||
|
ip a
|
||
|
```
|