Vm虚拟机桥接模式设置固定ip

Vm虚拟机桥接模式设置固定ip

# vim /etc/sysconfig/network-scripts/ifcfg-eth0 

DEVICE=eth0
HWADDR=00:0C:29:D5:42:F9
TYPE=Ethernet
UUID=89550ac1-dbf8-463c-b52e-36e164274bff
ONBOOT=yes
NM_CONTROLLED=yes
#BOOTPROTO=dhcp
BOOTPROTO=static
IPADDR=192.168.12.126       --所要设置的ip
NETMASK=255.255.255.0     
IPV6INIT=no
DNS1=8.8.8.8

添加宿主机主机网关

# vim /etc/sysconfig/network

Vm虚拟机桥接模式设置固定ip

GATEWAY=192.168.12.1

# service network restart

Vm虚拟机桥接模式设置固定ip

转载于:https://my.oschina.net/u/2938426/blog/978985

相关文章:

  • 2021-05-28
  • 2021-12-25
  • 2022-12-23
  • 2021-09-16
  • 2021-10-09
  • 2022-12-23
  • 2021-06-29
  • 2021-11-20
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-06-22
  • 2021-06-19
  • 2021-07-12
  • 2021-05-04
相关资源
相似解决方案