如何知道Fedora7的ip地址

来源:百度知道 编辑:UC知道 时间:2024/06/03 13:38:01
我用的VMware新装了一个Fedora7,请问怎样才能知道Fedora7的IP地址,因为我想telnet登录。
谢谢各位高手指导。

Linux下不是ipconfig。应该执行:
/sbin/ifconfig

然后就会出现类似的输出:
eth1 Link encap:Ethernet HWaddr 00:0C:F1:40:21:9D
inet addr:192.168.100.228 Bcast:192.168.100.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:663372 errors:21 dropped:0 overruns:0 frame:0
TX packets:681711 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:496375501 (473.3 MiB) TX bytes:417732056 (398.3 MiB)
Interrupt:11 Base address:0xa000 Memory:cffff000-cfffffff

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:4108 errors:0 dropped:0 overruns:0 frame:0
TX packets:4108 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:30744205 (29.