\ (\ Color {Black} {text / soul Hao Xuan} \)
1, the input interface addr ip
2, view the current file by ls
My virtual machine network configuration file ifcfg-eth0 (different host file name is not the same)
3, by vi ifcfg-eth0 file into the
document editing keyboard input "i"
Simply put ONBOOT = no change = yes ONBOOT
4, set the virtual machine static ip
If not set, refer to the Linux virtual machine to set a fixed IP address
5, according to exit press Esc, then enter: wq, and press Enter
two kinds of ways to load files:
1, restart the virtual machine (not recommended).
2, the command:. 1), the sudo the restart-Service Network
2), the restart Network systemctl
input again ip addr
\(\color{Black}{end/}\)
Author: Soul Xuan Hao
retain all rights and interests, please indicate the source, not for commercial use.
Welcome to the story, the idea of friends and I share, can be sent to e-mail: [email protected]