Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't configure host-only network interface! #3

Open
ahmedalagha opened this issue Apr 5, 2016 · 9 comments
Open

Can't configure host-only network interface! #3

ahmedalagha opened this issue Apr 5, 2016 · 9 comments

Comments

@ahmedalagha
Copy link

Hi. This might be a very basic issue, but I have been trying to configure a host-only network interface without success. I added host-only interface to VM and I can see it in mininet, but then when I execute sudo dhclient eth1, it kind of freeze and the command line disappears. When I use ifconfig-a, I don't see IP address with eth1, but I do see one in the settings.

Any help is appreciated!

1
2

@milangroshev
Copy link

did you modify the /etc/network/interfaces ?

@ahmedalagha
Copy link
Author

Thanks for your response. I followed "VirtualBox: Setting up a Host-Only Network"
I added host-only interface in the settings, and confirmed it's active with ifconfig -a, then I got stuck at: sudo dhclient eth1

@harimau99
Copy link

in here you can simply added with

$sudo -s
$vi /etc/network/host
added same property as in the list..
:wq!

run the command $ifconfig -a

1 more time and you good to go.

On Tue, Apr 5, 2016 at 8:58 PM, ahmedalagha [email protected]
wrote:

Thanks for your response. I followed "VirtualBox: Setting up a Host-Only
Network"
I added host-only interface in the settings, and confirmed it's active
with ifconfig -a, then I got stuck at: sudo dhclient eth1


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
#3 (comment)

@sfsmm
Copy link

sfsmm commented Aug 30, 2016

I've got exactly the same issue.

Does anyone know how to solve this?

@ahmedalagha
Copy link
Author

Hi sfsmm - I used VMware instead, and never got this issue again.

@sfsmm
Copy link

sfsmm commented Aug 30, 2016

Hello ahmedalagha.

I tried with VMware and indeed it seems it works but now I have a problem. I can't get the vm to capture the mouse. I tried installing another guest machine and it captures the mouse perfectly. It seems to be a problem with this vm in specific. Did you also have this issue?

@pressado
Copy link

pressado commented Sep 25, 2019

Hey there, i'm only answering that for other user that have that problem.
So, I solved this goin on File > Host Network Manager > Create a new exclusive host network > select the box DHCP server "Enable"
hope it helps

@da-nial
Copy link

da-nial commented Feb 6, 2021

For anyone facing the same issue, make sure you've enabled the DHCP server option on the target network adapter in VirtualBox settings. To do so, follow File > Host Network Manager, select the target network adapter, mark the DHCP server checkbox on the right.
(If that doesn't work, go to your VM settings, by right-clicking on it, then open Network settings, select the target network adapter, open advanced settings, and check "cable connected option")

@lantz
Copy link
Member

lantz commented Feb 6, 2021

@Danialzz Feel free to edit the wiki page

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants