查看CentOS的IP地址
时间:2016-05-23 22:16 来源:linux.it.net.cn 作者:IT
[***@localhost ~]$ ifconfig eth0
eth0 Link encap:Ethernet
inet addr:192.168.91.132 Bcast:192.168.91.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:feb3:45b3/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:46481 errors:0 dropped:0 overruns:0 frame:0
TX packets:32811 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:52759994 (50.3 MiB) TX bytes:2879378 (2.7 MiB)
Interrupt:19 Base address:0x2024
或者
[cj@localhost ~]$ ifconfig|grep 'Bcast'
inet addr:192.168.91.132 Bcast:192.168.91.255 Mask:255.255.255.0
(责任编辑:IT)
[***@localhost ~]$ ifconfig eth0 eth0 Link encap:Ethernet inet addr:192.168.91.132 Bcast:192.168.91.255 Mask:255.255.255.0 inet6 addr: fe80::20c:29ff:feb3:45b3/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:46481 errors:0 dropped:0 overruns:0 frame:0 TX packets:32811 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:52759994 (50.3 MiB) TX bytes:2879378 (2.7 MiB) Interrupt:19 Base address:0x2024 或者 [cj@localhost ~]$ ifconfig|grep 'Bcast' inet addr:192.168.91.132 Bcast:192.168.91.255 Mask:255.255.255.0 (责任编辑:IT) |