How to change network adapter(bridged) for virtualbox trough terminal using Ubuntu
Posted: 9. Apr 2018, 15:55
Description of problem:
So I have virtualbox on host pc somewhere. At the beggining on host PC I had network adapter "enp2s0". Virtualbox what is on host PC used "enp2s0" adapter in bridged mode. Today on host PC I created new network adapter "enp2s0.4". Unfortunately at the moment I dont have access to GUI, all I have is ssh and ubuntu. Problem is that somehow I need to swap adapters, so virtualbox is using the new created "enp2s0.4" adapter in bridged mode.
Question:
Is it even possible to do it using terminal and if it is, then how to do it?
Thanks for help!
So I have virtualbox on host pc somewhere. At the beggining on host PC I had network adapter "enp2s0". Virtualbox what is on host PC used "enp2s0" adapter in bridged mode. Today on host PC I created new network adapter "enp2s0.4". Unfortunately at the moment I dont have access to GUI, all I have is ssh and ubuntu. Problem is that somehow I need to swap adapters, so virtualbox is using the new created "enp2s0.4" adapter in bridged mode.
Question:
Is it even possible to do it using terminal and if it is, then how to do it?
Thanks for help!