两台电脑做相同修改。

hostnamectl 

vi /etc/hosts

127.0.0.1       localhost 
127.0.1.1       allspark-VirtualBox
192.168.1.76    allspark-VirtualBox-76
192.168.1.77    allspark-VirtualBox-77

:wq

reboot

ping allspark-VirtualBox-77

参考:

https://www.cnblogs.com/kerrycode/p/3595724.html

相关文章:

  • 2022-02-08
  • 2022-12-23
  • 2022-01-06
  • 2021-08-06
  • 2021-11-09
  • 2021-11-07
  • 2022-02-08
猜你喜欢
  • 2021-06-11
  • 2021-11-29
  • 2022-12-23
  • 2021-12-19
  • 2022-01-22
  • 2021-07-07
相关资源
相似解决方案