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...
Virtual Box VM Networking with two NICs.
-
- Posts: 2019
- Joined: 2015/02/17 15:14:33
- Location: Bulgaria
- Contact:
Re: Virtual Box VM Networking with two NICs.
If you set the default gateway for the bridged adapter , it should route anything 'unknown' through the gateway.
-
- Posts: 2019
- Joined: 2015/02/17 15:14:33
- Location: Bulgaria
- Contact:
Re: Virtual Box VM Networking with two NICs.
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
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