NotePublic/Software/System/Linux/Common/Linux_查看网关_子网掩码和_IP_地址.md

11 lines
147 B
Markdown
Raw Normal View History

# Linux查看网关、子网掩码和 IP 地址
```bash
# 查看网关和子网掩码
route -n
netstat -r
# 查看 IP 地址等
ifconfig
ip a
```