VirtualBox网络设置:

VirtualBox中Linux设置静态IP地址

终端输入(注意使用root执行):

vim /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
HWADDR=08:00:27:F1:0F:68
TYPE=Ethernet
UUID=8166f7ad-f620-438e-aff8-ac320d44511f
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=static
DNS1=8.8.8.8
IPADDR=10.10.3.233
NETMASK=255.255.255.0
GATEWAY=10.10.3.1

完成后执行

service network restart

重启网络服务即可!

 

相关文章:

  • 2021-08-09
  • 2022-12-23
  • 2022-12-23
  • 2021-06-07
  • 2021-09-26
  • 2021-10-12
  • 2022-02-17
猜你喜欢
  • 2022-01-04
  • 2021-09-23
  • 2021-05-07
  • 2022-01-22
  • 2022-01-17
相关资源
相似解决方案