OpenWrt Forum Archive

Topic: How to enable network in openwrt in VirtualBox

The content of this topic has been archived on 9 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hello

I followed the guide at:

http://wiki.openwrt.org/doc/howto/virtualbox

and now i have openwrt running in VirtualBox. My host is running Windows 8, Wifi.

I cannot enable the network in openwrt. In VirtualBox, I enabled two network cards, one is Bridge and one is NAT, but none of them help.

Could you please give me a hint?

Thank you very much

Hannibal2010 wrote:

Hello

I followed the guide at:

http://wiki.openwrt.org/doc/howto/virtualbox

and now i have openwrt running in VirtualBox. My host is running Windows 8, Wifi.

First question: do you actually have an eth0 and eth1 inside your openwrt?  "ifconfig -a" will show you this.
Why did you create a bridge and a NAT, and how did you connect them?

I just followed the guide in the part 'Set up networking with clients' in the guide link above.

After type 'ifup wan', I triede 'ping google.com'

The IP of google (75.xxx.xxx.xxx) appeared, and some packages have been transmitted but nothing replied.

Did I do something wrong?

post output of

ifconfig -a

uci show network

route -n

(Last edited by nebbia88 on 19 Aug 2014, 10:52)

Hello

Attached are results of three commands you mentioned

http://imagizer.imageshack.us/v2/280x200q90/661/39Vxmz.png
http://imagizer.imageshack.us/v2/280x200q90/674/uLEnkk.png
http://imagizer.imageshack.us/v2/280x200q90/745/AYOlPH.png

(Last edited by Hannibal2010 on 20 Aug 2014, 15:20)

The discussion might have continued from here.