Virtual box cant ping anything
Posted: 12. Dec 2014, 00:48
Hello,
I'm a total newby with virtual box and to nearly everything server related. Since a few weeks some school projects require me to run virtual box and install some stuff on it. I also need cURL. To install this I try to give my virtual box an internet connection so it can download the needed software. To do so I do the following:
I start up my server with the network settings:
adapter 1:
Host only adapter
Adapter 2:
Nat
All the other fields on nat are gray so I didnt fill in anything else.
I start the server and log in with my name and password. all works fine.
I type 'sudo su' to login on the root and fill in my password. No error message so I asume it good.
I type 'ifconfig eth1 up' to enable the network. no error message
I type 'dhclient eth1' no error message,
Now when I try to ping google it says:
ping: unknown host google (cant spell out the domain name because im new on the form but you get the . com
)
It all works fine for my classmates and we have the same settings. Does anyone knows what could be wrong?
NOTE: running virtual box 4.3.18
Hope to hear soon! Greetings,
Merijn de Klerk
I'm a total newby with virtual box and to nearly everything server related. Since a few weeks some school projects require me to run virtual box and install some stuff on it. I also need cURL. To install this I try to give my virtual box an internet connection so it can download the needed software. To do so I do the following:
I start up my server with the network settings:
adapter 1:
Host only adapter
Adapter 2:
Nat
All the other fields on nat are gray so I didnt fill in anything else.
I start the server and log in with my name and password. all works fine.
I type 'sudo su' to login on the root and fill in my password. No error message so I asume it good.
I type 'ifconfig eth1 up' to enable the network. no error message
I type 'dhclient eth1' no error message,
Now when I try to ping google it says:
ping: unknown host google (cant spell out the domain name because im new on the form but you get the . com
It all works fine for my classmates and we have the same settings. Does anyone knows what could be wrong?
NOTE: running virtual box 4.3.18
Hope to hear soon! Greetings,
Merijn de Klerk