openflow-tutorial icon indicating copy to clipboard operation
openflow-tutorial copied to clipboard

Can't configure host-only network interface!

Open ahmedalagha opened this issue 8 years ago • 9 comments

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

ahmedalagha avatar Apr 05 '16 00:04 ahmedalagha

did you modify the /etc/network/interfaces ?

milangroshev avatar Apr 05 '16 12:04 milangroshev

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

ahmedalagha avatar Apr 05 '16 12:04 ahmedalagha

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 https://github.com/mininet/openflow-tutorial/issues/3#issuecomment-205790416

harimau99 avatar Apr 06 '16 00:04 harimau99

I've got exactly the same issue.

Does anyone know how to solve this?

sfsmm avatar Aug 30 '16 15:08 sfsmm

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

ahmedalagha avatar Aug 30 '16 19:08 ahmedalagha

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?

sfsmm avatar Aug 30 '16 23:08 sfsmm

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

pressado avatar Sep 25 '19 04:09 pressado

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")

da-nial avatar Feb 06 '21 10:02 da-nial

@Danialzz Feel free to edit the wiki page

lantz avatar Feb 06 '21 23:02 lantz