config interface 'wan6'
option device 'eth1'
option proto 'dhcpv6'
Q: Do I need to make any chsnges in the above file and try?
Note: I actually tried changing the confirmation of 'br-lan' as 'dhcp' and removing ipaddr, netmask and ip6assign, but no major change in the overall behaviour.
Without applying the change '-netdev.....' suggested by you and with having two '-nic user', which you pointed out, when I ran 'ifconfig', I got:
br-lan Link encap:Whether......
inet address:192.168.0.201 ..
:
eth0 Link encap:Whether......
/*no inet addr*/
:
eth1 Link encap:Whether......
inet addr:10.0.2.15..
:
lo Link encap:Local Loopback
inet addr:127.0.0.1..
:
With this configuration I am able to access host-network & internet from within OpenWRT running on QEMU. But, this is the same configuration where I couldn't hit the http server running on port 8000 within OpenWRT from the host OS, which is the issue which I mentioned in my first email. FYI, from the host OS, I was trying to hit
http://192.168.0.201:8000 . The IP address of my host OS is 192.168.0.101
Before trying your suggestion, I just thought of reloading qemu with just a single '-nic user' and when I ran 'ifconfig' within OpenWRT, I got the following: (see, eth1 is missing)
br-lan Link encap:Whether......
inet address:192.168.0.201 ..
:
eth0 Link encap:Whether......
/*no inet addr*/
:
lo Link encap:Local Loopback
inet addr:127.0.0.1..
:
And I couldn't hit any of the external servers from within army/OpenWRT and hitting
http://192.168.0.201:8000 from host OS also failed.
Now, I tried the option you suggested as '-netdev user,id=unet,hostfwd=tcp::9000-:8000 -device virtio-net-pci,netdev=unet' alone (without any '-nic user's) so that I can try hitting
http://192.168.0.201:9000 from host OS. After loading OpenWRT on QEMU, I tried 'ifconfig' and I got: