Fedora 17 Using Virtual Machine bridging method for static configuration of fixed IP address 1) # ifconfig p3p1 up (Note: After my system is installed, the default Nic is p3p1. This command activates this Nic. You can change the name as needed .) 2) # chkconfig -- level 2345 network on (Note: Step 2: Set the startup when the NIC enters the system. If you want to automatically obtain the IP address to access the Internet each time you start the system, you must set the network service to start when the system starts. Linux is different from windows in that many services are stopped by default, and you start the service when you use the service, but it is not set to start by default, the next time you enter the system, the service is still stopped. The following describes how to set the network service to start when the system starts. Use the chkconfig command to enable the network service to be started by default when the system startup level is 2345 .) 3) create a NIC configuration file for p3p1. Command: # vim/etc/sysconfig/network-scripts/ifcfg-p3p1 (the system already exists by default, just change it) and write the following content in it: DEVICE = p3p1 IPADDR = 211. 69. *. * (Note: Set the IP address based on the IP address you need. This IP address is in the same network segment as the host, but cannot be the same) NETMASK = 255.255.255.0 (subnet mask) GATEWAY = 211. 69. *. * (this is the gateway. Here I can configure it just like the host gateway. An online tutorial says that the virtual machine gateway needs to be configured as the actual IP address of the host machine. This is not required for my verification! You must pay attention to this !) DNS1 = 192.168.2.1 (note that the content must be the same as that of the host machine .) BOOTPROTO = staticONBOOT = yes after saving, use service network start or service network restart and ping the test to pass.