Home > OS >  Openwrt virtual machine cannot be connected to the Internet, but it can open the management page
Openwrt virtual machine cannot be connected to the Internet, but it can open the management page

Time:09-18

Have two on my VMware virtual machine is a Ubuntu, one is the openwrt, open at the same time, the virtual machine network configuration option is NAT,
Ubuntu virtual machine can connect to the Internet, open a webpage, ping openwrt,
Host browser to open the openwrt routing management page, the virtual machine and modify configuration,
Both the virtual machine hung on the same card, each other can ping,
Nic IP 192.168.116.1, mask 255.255.255.0
The appended drawings is I use ifconfig and route instructions respectively show that the content of the one of the black bottom is openwrt, brown is at the bottom of the Ubuntu,
,
The problem is I use vi/etc/config/network configuration is complete IP related functions, and host successfully open the management page,
Want to download some utilities such as using opkg stty find download failure and updata, eventually won't try to find the ping ping network other network card IP
But opened the Ubuntu virtual machine can be found, so want to find out the reason,

Welcome people of insight put forward views on the next listen,

CodePudding user response:

At this moment, in the vast number of enthusiastic netizens and under various gods bosses, I found my openwet gateway IP write wrong, was revised again 192.168.116.2. Originally 192.169.116.7. In this round of revised may I ping the host on another network card, fortunately, but further tests have found, I still can't connect the network cannot ping baidu, cannot opkg update,
Continue to ask for help, thank you.

CodePudding user response:

After the test, I found I can ping www.baidu.com corresponding IP
153.37.235.5, but can't can't ping www.baidu.com,
At the same time my another virtual can ping both Ubuntu, mystery for me,
Main purpose is opkg update but still not successful, continue to ask for help, thank you

CodePudding user response:

Problem solving is the DNS is flawed, solution
First of all,
In the/etc/config/network, add a new DNS for 8.8.8.8
The second
Rm/etc/resolv. Conf
Ln -s/TMP/resolv. Conf. Auto/etc/resolv. Conf
The last reboot
Up after the completion of all the problems to solve, to download the tool,
Thanks for your big support and look forward to the next cooperation
  • Related