Fedora 17 static IP Address Configuration Using Virtual Machine bridging

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.