可以直接使用ifconfig eth0命令查看centos的ip地址:
推薦教程:centos使用教程
[***@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
或者使用“ifconfig|grep ‘Bcast’”命令查看:
inet?addr:192.168.91.132??Bcast:192.168.91.255??Mask:255.255.255.0
ifconfig命令?被用于配置和顯示Linux內核中網絡接口的網絡參數。用ifconfig命令配置的網卡信息,在網卡重啟后機器重啟后,配置就不存在。要想將上述的配置信息永遠的存的電腦里,那就要修改網卡的配置文件了。
相關視頻教程推薦:centos使用教程
? 版權聲明
文章版權歸作者所有,未經允許請勿轉載。
THE END
喜歡就支持一下吧
相關推薦