1818IP-服务器技术教程,云服务器评测推荐,服务器系统排错处理,环境搭建,攻击防护等

当前位置:首页 - Linux系统 - centos - 正文

君子好学,自强不息!

centos系统的ip地址如何查看?

2022-06-19 | centos | 1818ip | 291°c
A+ A-

可以直接使用ifconfig eth0命令查看centos的ip地址:

[***@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命令配置的网卡信息,在网卡重启后机器重启后,配置就不存在。要想将上述的配置信息永远的存的电脑里,那就要修改网卡的配置文件了。


本文来源:1818IP

本文地址:https://www.1818ip.com/post/1631.html

免责声明:本文由用户上传,如有侵权请联系删除!

发表评论

必填

选填

选填

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。