centos6.9查看ip
时间: 2023-09-15 18:23:27 浏览: 102
ip查看
您可以使用以下命令来查看CentOS 6.9的IP地址:
```
ifconfig
```
在命令行中输入上述命令后,您会看到类似以下内容的输出:
```
eth0 Link encap:Ethernet HWaddr XX:XX:XX:XX:XX:XX
inet addr:XXX.XXX.XXX.XXX Bcast:XXX.XXX.XXX.XXX Mask:XXX.XXX.XXX.XXX
inet6 addr: XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:XXXX/XX Scope:Global
inet6 addr: XXXX::XXXX:XXXX:XXXX:XXXX/XX Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:XXXXX errors:0 dropped:0 overruns:0 frame:0
TX packets:XXXXX errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:XXXXX (XX.XX MiB) TX bytes:XXXXX (XX.XX MiB)
```
在 `inet addr` 行中,您可以找到IP地址。
阅读全文