Alpine virtualbox and two network cards: NAT and host-only

2 posts / 0 new
Last post
#1 Fri, 2018-03-02 19:22
  • abdujaparov's picture
  • Offline
  • Last seen: 1 week 1 day ago
  • Joined: 2018-02-24

I have tried to configure network in an alpine installed in a virtualbox VM. Host OS is Windows 7.
In VM I selected 2 cars: NAT and host-only.
eth0 is NAT and eth1 is host-only
eth0 is configured as:
auto eth0
iface eht0 inet dhcp
hostname alpine

instead eht1:
auto eth1
iface eth1 inet static

With this configuration only eht1 works, I can pint guest from host but I have no internet connection.
I must comment eth1 and reboot the vm to have internet connection using eth0.

How can I use both network card at the same time without problem?


Fri, 2018-03-16 23:39
  • jan's picture
  • Offline
  • Last seen: 13 hours 58 min ago
  • Joined: 2018-03-16

Try removing the gateway from eth1, the gateway is provided by dhcp on eth0.

Log in or register to post comments