Download and install bochs2.6: (cannot be a later version)
When creating Bochs Note Check DLX Linux Demo, but its file BOCHSRC.BXRC no NE2K network card options, this section to add themselves, details see later.
First determine the actual network card in our computer:
Command prompt, starting with, accessories
Run Ipconfig/all under DOS window
Remember that the real card is via
Download Install Wincap, this is the condition that Bochs runs the network card requirements, it is set to run automatically every time the computer starts.
Then run niclist in the bochs2.6 directory, corresponding via data is ethdev=\device\npf_{b59b6ceb-251d-46d7-8778-ebac0caacc7d}
Note that the data shown in the red line is what we will fill out in the BOCHSRC.BXRC.
Write BOCHSRC.BXRC content as:
###############################################################
# bochsrc.txt file for flopy image.
###############################################################
Megs:32
Romimage:file=. /bios-bochs-latest
Vgaromimage:file=. /vgabios-lgpl-latest
Floppya:1_44=a.img, status=inserted
Boot:a
Log:bochsout.txt
Mouse:enabled=0
Ne2k:enabled=1,ioaddr=0x300,irq=3,mac=b0:c4:20:a1:3c:00,ethmod=win32, ethdev=\device\npf_{ B59B6CEB-251D-46D7-8778-EBAC0CAACC7D}
Command prompt, starting with, accessories
Dos Windows run Ping www.baidu.com
Remember this value and it will be used below.
To run Bochs, first log in to the system as root:
DLX Login: Enter root
dlx:~#
Set up a network (three steps):
1. Specify the virtual network card address: ifconfig eth0 192.168.1.11 (must be in the same network segment as the above real network card)
2. Add network segment to route: Route add-net 192.168.1.0 (Description-net indicates that the following route is a network segment)
3. Specify gateway: Route add default GW 192.168.1.1
Once the network is set up, you can run the network commands below.
First Ping the gateway:
Ping–c 1 192.168.1.1 Display emits a packet that receives a package:
Next ping Baidu:
Ping–c 1 111.13.100.92
If there is no response, then the firewall is stopped.
Click to open the ZoneAlarm (if using a different firewall, refer to the following similar steps to do, or directly shut down the firewall)
1. Add Program Control-Programs
Bochs
VirtualBox
These two items are all checked whether they are necessary and are to be confirmed. It was later confirmed that there was no need.
2. ZoneAlarm-Alerts $ Logs-a Log Viewer
See that the sent network packet was intercepted:
Description Packet sent from 192.168.1.11 to 111.13.100.92 (ICMP Echo Request (' Ping ')) was blocked
Click Add to Zone >> Trusted to allow the network packet to be sent.
Try again at this point.
Ping–c 1 111.13.100.92 Successful, shown below:
With Telnet
Telnet 130.212.3.51 80 succeeded,
Bochs Internet and Configuration