RHEL network settings, from virtual machines in hyper-v

Source: Internet
Author: User


Win8 pro is not bad. By the way, we can use hyper-v 3.0. Here we will explain the network configuration under RHEL. Supported systems: Red Hat Enterprise Linux 5.7, 5.8, 6.0-6.3x86 and x64, CentOS 5.7, 5.8, 6.0-6.3x86 and x64 (Press and hold the integration service read me). We recommend that you only install the above version of the system, where I cannot install fedora 17, other versions of the system may also have problems.
To make the virtual machine use www.2cto.com, the integration service must be installed. Download the latest version of Integrated Services: Linux Integration Services v3.4 for HYPER-V RHEL version: 6.3, using hyper-v External Connection
Install the linux integration service at www.2cto.com and add support for the network controller driver. After the installation, the NIC is as follows: Ifconfig-
Www.2cto.com eth0 is the NIC device. However, when I open firefox, do you find that you cannot access the Internet? Well, configure the Redhat Linux network by modifying several configuration files, although you can also use ifconfig to set the IP address, use route to configure the default gateway, and use hostname to configure the host name, it will be lost after restart. Related configuration file/ect/hosts configuration host name and IP address corresponding/etc/sysconfig/network configuration host name and gateway/etc/sysconfig/network-scripts/ifcfg-eth0 eth0 configuration file, eth1 is named ifcfg-eth1, and so on
1. Nic configuration assuming that the host name is william and the IP address and gateway address of eth0 are automatically obtained, the content of the/etc/sysconfig/network file is as follows (the network file does not exist by default, need to create): NETWORKING = yesHOSTNAME = William amgateway = 192.168.1.254eth0 corresponding configuration file/etc/sysconfig/network-scripts/ifcfg-eth0 content is as follows (by default this file does not exist, you need to create, in the file name, eth0 is the NIC name in ifconfig-): DEVICE = eth0BOOTPROTO = dhcpNETMASK = 255.255.255.0TYPE = EthernetONBOOT = yesDEFROUTE = yesPEERROUTES = yesIPV4_FAILURE_FATAL = yesIPV6INIT = noNAME = "System eth0" 2. After configuration, Restart the service: service network restart (pay attention to using the root user). Click "firefox" to view the page. If the page still does not work, restart the system and try again. This is definitely a good time! The parameter configuration in the ipcfg-eth0 may not work for you. Now that you can see the adapter in network connections, you can edit it visually, haha.

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.