Page 1 of 1

Virtual Box VM Networking with two NICs.

Posted: 2018/09/02 16:22:03
by sandunru
Hi,

Guys is there a way that we can configure a VM to have two network adapters (Host Only Adapter & a Bridged network) and to access internet only through the bridged adapter?

Could you please help me on this...

Re: Virtual Box VM Networking with two NICs.

Posted: 2018/09/04 03:39:15
by hunter86_bg
If you set the default gateway for the bridged adapter , it should route anything 'unknown' through the gateway.

Re: Virtual Box VM Networking with two NICs.

Posted: 2018/09/09 16:51:58
by hunter86_bg
First create 2 NICs from Virtual Box, then set 1st NIC as Bridged and the second should be Host only.
If you haven't modified anything , the first adapter will request it's ip from the DHCP server where the host is connected.

Once you login run

Code: Select all

ip a s ; nmcli con show