This tutorial is set by the author to use the CC By-NC-ND protocol.
Part of the content of this tutorial needs to be changed in combination with your actual situation.
Material
Virtual machine (such as Virtual Box)
Openwrt x86_64 file
Linux installation/recovery mirror (recommended Arch Linux to take this as an example)
LINUX, MacOS, or Win10 host
OC2R module
setBlock permissions
Minecraft outside
Create a virtual machine, install two network cards (one is set as a bridge, one is set as an internal network), and starts with the Arch Linux mirror
After logging in (no rolling on the screen, color color blocks appear), enter PASSWD, set a temporary password (to enter twice, the star number will not be displayed on the screen)
Enter the command IP A and view the virtual machine IP (the picture is my own machine)
Enter the command in the host terminal: SCP
Enter command in the virtual machine: Gunzip
dd if =
PARTED -F -S /DEV /SDA ResizePart 2 100%
Popping up installation mirror
reBoot
The modification configuration is as follows:
config interface 'loopback'Option device 'lo'l'
Option Proto 'STATIC'
Option ipaddr '127.0.0.1'
Option network '255.0.0.0.0'
Config Globals 'Globals'
Option ula_prefix 'fd4d: 4e18: f1a2 ::/48'
config device
Option name 'br-LAN'
Option Type 'Bridge'
List ports 'eth1'
config interface 'lan'
Option Device 'Br-Lan'
Option Proto 'STATIC'
Option network '255.255.255.0'
Option ip6assign '60'
config interface 'wan'
Option device 'eth0'
Option Proto 'DHCP'
Service Network RELOAD
passwd (set a password as above)
OPKG Update
OPKG Install Luci-Base-ZH-CN
OPKG Install vxlan
OPKG Install Luci-PROTO-VXLAN
View virtual machine IP on ETH0 via IP A
Open the browser and enter this IP
Create two new interfaces in the network-interface: a VXLAN type (192.168.122.1 is the last change of the virtual machine address to 1, the IP of this machine does not need to be filled) a static address, the IP address is 192.168.0.1
In the firewall, the editor of LAN-> WAN, add the second added interface to the Covered Networks
Save, application
In the minecraft
Modify the configuration file OC2R-COMMON.TOML, pull to the end, Remotehost is changed to a virtual machine IP, bindhost is changed to the IP at the end of the.
Start Minecraft
Use/setbloxk x y Z OC2R: vxlan_hub to put down the VXLAN hub in the world
Connect to the hub and the computer in the game
Setup-network.lua, DHCP client select N, IP is set to 192.168.0.2, start DHCP service
IP R add default via 192.168.0.1
Edit /etc/resolv.conf, the content is nameserver 8.8.8.8 (or other DNS services)
Enjoy the Internet
Reference information
https://gist.github.com/pjobson/3584F36DADC8C349FAC9ABF1DB22B5DC
https://openwrt.org/docs/guide- user/network/tunneling_interface_protocols#prcol_vxlan_layer_2_virtual_layer_layer_3_netWork
https://openwrt.org/docs/guide- user/installation/openwrt_x86
Must need to be solved
DHCP service is not available.