Virtual Box VM Networking with two NICs.

Issues related to configuring your network
Post Reply
sandunru
Posts: 4
Joined: 2018/08/18 17:17:28

Virtual Box VM Networking with two NICs.

Post by sandunru » 2018/09/02 16:22:03

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...

hunter86_bg
Posts: 1368
Joined: 2015/02/17 15:14:33
Location: Bulgaria
Contact:

Re: Virtual Box VM Networking with two NICs.

Post by hunter86_bg » 2018/09/04 03:39:15

If you set the default gateway for the bridged adapter , it should route anything 'unknown' through the gateway.

hunter86_bg
Posts: 1368
Joined: 2015/02/17 15:14:33
Location: Bulgaria
Contact:

Re: Virtual Box VM Networking with two NICs.

Post by hunter86_bg » 2018/09/09 16:51:58

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

Post Reply