快速查看方法
-
Linux IP快速查看方法
查看 Linux 主机 IP 地址的常用命令:,1. **ip addr show** 或 **ip a**:显示所有网络接口及其 IP 信息。,2. **ifconfig**:传统命令(部分系统需安装 net-tools 包)。,3. **hostname -I**:快速显示主机的所有非回环 IPv4 地址(注意 -I 是大写 i)。
查看 Linux 主机 IP 地址的常用命令:,1. **ip addr show** 或 **ip a**:显示所有网络接口及其 IP 信息。,2. **ifconfig**:传统命令(部分系统需安装 net-tools 包)。,3. **hostname -I**:快速显示主机的所有非回环 IPv4 地址(注意 -I 是大写 i)。