ITeye博客

centos7 ip lose

maxer025 · 2026-08-03 10:00 · centos7 ip lose · 操作系统 · Markdown

When a CentOS system loses its IP address after a reboot, it is usually because the network interface was not configured to start automatically or the NetworkManager service is down

  1. Enable "Start on Boot" (Most Common)By default, CentOS network interfaces are often set to not start automatically after a reboot sudo vi /etc/sysconfig/network-scripts/ifcfg-ens192 2.Look for the line ONBOOT=no and change it to ONBOOT=yes 3,Restart the network service to apply changes: CentOS 7: sudo systemctl restart network CentOS 8 / Stream: sudo systemctl restart NetworkManager

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。