4
2
NAT works fine and I have internet connection, but bridged connection not working. I have tried quiet a few things, including resetting MAC address for bridged adapter:
when I do ifconfig it does not show eth0
But when I look in interfaces eth0 is in there as shown below:
It was working before so I don't know what could be the issue. I also noticed when I restart VM it stalls for a while saying configuring network settings or something along those lines but I am guessing it never receives the settings.
1would you mind explaining what each of the above commands does? In my case I have
enp0s3
instead ofeth0
. The first commandsudo ip link set dev enp0s3 up
works. Howeversudo dhclient -v enp0s3
goes into a inifinite loop saying something likeDHCPDISCOVER on enp0s3 to 255.255.255.255 port 67 interval 11 (xid=0x5bd18616)
for ever.. – alpha_989 – 2018-03-25T16:09:55.1471@alpha_989 The second command asks for the an IP address to the local DHCP server. If it loops forever, then it means that either there is no DHCP on the LAN, or that there is no network connection whatsoever. If you are sure that there is a DHCP server on your LAN, then it means you have not correctly configured VirtualBox´s interfaces. – MariusMatutiae – 2018-03-26T09:09:59.950
thanks it works. why it just work with dhcp mode ?. i try with no success when trying static ip mode. – Brain90 – 2019-02-01T12:54:55.520
@Brain90 It should work with a static IP as well. But first and foremost, it seems to me your ethernet interface is down, which means it needs to be brought up. If it is down initially, then it means your Network-manager is misconfigured. In order to diagnose that, though, it i sbest to ask a different question, since this really differs from the OP. – MariusMatutiae – 2019-02-01T16:13:48.413