Network configuration for Linux

Source: Internet
Author: User

The experimental platform for this blog is: VMWare 9 +redhat Enterprise 6

Before you say the configuration, it's important to be clear: because it's a network configuration for Linux under a virtual machine, it involves VMware Network settings and Linux network settings


The first is: VMware network settings
VMware offers three network modes of operation for users to choose from, namely:
1. Bridged (bridging mode) 2. NAT (network address translation mode) 3. Host-only (host mode)

For the above three kinds of network working mode do not understand, you can consult the network topology map of three modes.

If more than one IP address is available on the network, the bridging mode is used

Use host mode if the host on which the virtual machine is installed is not connected to any external network

If only one IP address is available on the network, use the NAT method

Note: Before you select VMware's network mode, to stop the Linux system in the virtual machine from running, after you set up VMware's network mode, restart the system in the virtual machine


Again: Network settings for Linux

Configuration steps:

1,/etc/init.d/network Restart: Restart each network card

Add: If the following error condition occurs

The reason for the error:/etc/init.d/network and NetworkManager conflict.
Workaround: Close the NetworkManager execution instruction to: service Networkmager stop

3, ifconfig operation result: did not find Ethernet card "eth0" eth0: the 1th physical network card in the system

Problem solving: Ifconfig not appear after eth0
Modify the configuration file of the eth0 Nic and change onboot= "no" to "Yes" file location:/etc/sysconfig/network-scripts/ifcfg-eth0

4,/etc/init.d/network Restart Restart the network then the router will automatically assign an IP address to the Linux system in the virtual machine


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.