1. The virtual machine's NIC configuration is as follows:
2. Command line interface in CentOS 5.8: Enter the following instruction
Then you're ready to modify the gateway address and your IP address inside.
3. View your IP address and gateway at the same time
4. in the second step, the gateway address should be the same as the local gateway address, theIP address should and the IPV4 address of the machine on the same network segment, are 192.168.0.X, the gateway address of the CentOS systeminside the virtual machine and the host's gateways should be set to the same
5. After the change is complete, press ESC inside the virtual machine, then enter ":" (colon does not enter), enter, and finally input "wq!" (Colon does not have to be entered) the carriage return saves and exits the VI.
Remember to restart the network card!!!
Restart the NIC, two commands as shown:
I do not guarantee that the entire network environment, but I did not test any problems, different people's home network environment, some routers are bound to the MAC address
How Secure CRT connects to the CentOS system inside the virtual machine when the host uses the cable network, the author of the original Welcome reprint