Due to the limitation of the campus network (Ruijie), the virtual machine cannot access the Internet when the bridge network is used, and the virtual machine cannot install tools and software.
It is very inconvenient and needs to be switched to NAT mode, and Ruijie will forcibly close VMware DHCP Service and VMware NAT Service every few minutes
Moreover, the NAT mode cannot make the three parties ping each other, and cannot use the TFTP and NFS services. There are many restrictions and it is very troublesome.
In order to solve this problem, you need a router (Phicom routing or pole routing, etc.) to flash the machine, and then the software can be installed on the router.
The router can be regarded as an embedded Linux device, using SSH to log in to the system, SCP to transfer files, and install mentohust on the router
After mentohust is configured with parameters, Ruijie authentication can be performed.
[MentoHUST]Username=*****
Password=*****
Nic=eth1
IP=0.0.0.0
Mask=255.255.252.0
Gateway=0.0.0.0
DNS=0.0.0.0
PingHost=0.0.0.0
Timeout=8
EchoInterval=30
RestartWait=15
MaxFail=8
StartMode=1
DhcpMode=2
DaemonMode=2
Version=0.0
DataFile=/etc/storage/mentohust/
DhcpScript=udhcpc -i eth1
This successfully builds a network environment.
My network segment is set to 192.168.4.1
Both the virtual machine and the development board are set to the same network segment, and the bridge network card is selected as the wired network card
Both the development board and the PC are connected to the router, disable the wireless network card to avoid unknown errors