CentOS8 ifconfig时显示127.0.0.1问题

发布时间 2023-09-19 09:51:08作者: 来日可追

Cent OS8
ifconfig时ip地址为127.0.0.1

参考:
https://blog.csdn.net/weixin_43888891/article/details/131893425?spm=1001.2101.3001.6650.3&utm_medium=distribute.pc_relevant.none-task-blog-2~default~YuanLiJiHua~Position-3-131893425-blog-131429967.235^v38^pc_relevant_anti_t3&depth_1-utm_source=distribute.pc_relevant.none-task-blog-2~default~YuanLiJiHua~Position-3-131893425-blog-131429967.235^v38^pc_relevant_anti_t3&utm_relevant_index=6

可能遇到的问题

注意使用systemctl restart network 或 service network restart 命令重启网卡失败。
这时报错 Failed to restart network.service: Unit network.service not found.
可以选择使用命令 nmcli c reload
虚拟机 --> 设置,网络连接选择桥接模式,重启虚拟机再次命令ifconfig即可查看。
image

https://www.cnblogs.com/leozhanggg/p/11772251.html