zsl-3

虚拟机(centos)和物理机通信

1.编辑网卡的配置文件

vi /etc/sysconfig/network-scripts/ifcfg-eth0

2.在文件最后编辑ip

IPADDR=192.168.1.105
NETMASK=255.255.255.0
GATEWAY=192.168.1.1

3.
”ONBOOT=no”这一行,更改为ONBOOT=yes
“BOOTPROTO=dhcp”,更改为BOOTPROTO=none

4.重启网络

service network restart
ifconfig eth0 可以查看网络配置信息

5.物理机ping

ping 192.168.1.105

分类:

技术点:

相关文章:

  • 2021-11-12
  • 2022-01-12
  • 2021-12-14
  • 2021-11-01
  • 2021-11-16
  • 2021-06-26
猜你喜欢
  • 2021-11-12
  • 2021-06-28
  • 2021-09-04
  • 2021-11-12
  • 2021-11-27
  • 2021-11-01
  • 2022-01-05
相关资源
相似解决方案