![]() ![]() ping -c 3 and it gets a response so I know I can connect to the Internet (while eth2 is down). With this setup I can ping the Internet i.e. For eth0, ONBOOT=yes while for eth2, ONBOOT=no. ![]() So I configure both ifcfg-ethX files in /etc/sysconfig/network-scripts, setting eth0 to be DHCP (for NAT) and eth2 to be static IP (for Host-only). Having setup both NAT and Host-only adapters, I started the VM and did an ip addr show and I have 2 interfaces, eth0 and eth2 (I don't know why eth1 was somehow skipped). This tutorial over at the VirtualBox forums is what I want to achieve but I can't seem to find the /etc/network/interfaces file on CentOS 6.5 so I presume configuration is done differently. The first is NAT which I want the guest to use to connect to the Internet and the second I set to Host-only which I will use to SSH and access web server from the host computer. I've created 2 network adapters for it in VirtualBox's networking settings for the machine. ![]() I have a VirtualBox machine running CentOS 6.5. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |