linux 下使用 VirtualBox 搭建集群环境
作者:互联网
参考文章:
https://www.nakivo.com/blog/virtualbox-network-setting-guide/
https://help.ubuntu.com/lts/serverguide/openssh-server.html
https://www.configserverfirewall.com/ubuntu-linux/ubuntu-set-static-ip-address/
https://www.golinuxhub.com/2015/10/how-to-configure-bridged-network-in.html
设置网络为桥接模式
之所以设置为桥接是为了和物理主机在一个局域网
由于我的物理主机是linux,虚拟网卡适配器选择 Paravirtualized Network Adapter (virtio-net),如果是windows应该可以随便选
设置静态IP
sudo vim /etc/network/interfaces
auto enp0s3
iface enp0s3 inet static
address 192.168.1.100
netmask 255.255.255.0
dns-servers 8.8.8.8
gateway 192.168.1.1
sudo apt install ifupdown2
sudo ifdown enp0s3 && sudo ifup enp0s3
标签:www,network,sudo,enp0s3,集群,https,linux,com,VirtualBox 来源: https://www.cnblogs.com/lanqie/p/11961632.html