Configure the virtual network of openwrt, the NAT mode I use here
start openwrt
View ip address and bridge configuration
eth0 is our physical network card, which is added to br-lan, but the ip address is not automatically obtained. Manually configure an ip address to be on the same network segment as VMware Network Adapter VMnet8.
After the configuration is complete, you can ping VMnet8
luci can now be accessed through the browser
A password is required for the first login
After configuration, it will automatically enter the home page, and you can see the openwrt status
Enter interface configuration
Modify br-lan as a DHCP client
Save configuration, force application
After applying, check again, and the IP address and default gateway have been automatically obtained
At this time, you can ping Baidu. (I didn't see where dns is, it should be configured when it is automatically obtained)
eth0 is connected to the NAT network of the virtual machine and can access the external network. It should be placed in wan. In the next article, use openwrt to assign an address to the PC and then modify it.