- Stop virtual machine if it's running.
- Under Settings -> Network -> Adapter 2 select Attached to: Host-only Adapter
- Start the virtual machine
- In the virtual machine, edit /etc/sysconfig/network-scripts/ifcfg-eth1:
DEVICE=eth1 HWADDR=08:00:27:21:b3:8b # Copy address from Adapter 2 settings. # Beware, Mac address is shown without colons there. TYPE=Ethernet ONBOOT=yes BOOTPROTO="static" IPADDR=192.168.59.103 NETMASK=255.255.255.0 ```
sudo service network restart