CentOS6.7 network adapter configuration and frequently asked questions (Linux IP configuration) __linux

Source: Internet
Author: User

Configure network card (IP) After system installation completes 1. Enter Setup command after landing system
2. Select Networkconfiguration and press run Tool
3. Select device configuration, direct return, do not press Save&quit or quit
4. Here is a network card eth0, we direct return
5. Select Use DHCP to assign IP addresses automatically, DNS can be configured to not configure. Then click OK
6. Click Save
7. Select Save&quit
8. Select Quit, Exit
9. When the network card configuration is complete, we need to start the NIC. command Line Input ifup eth0, will start eth0 this network card. Hint done indicates successful start. Enter Ifconfig to view the acquired IP. Ping the acquired IP with another host to see if you can ping it. 10. Configure the NIC to boot from boot.

Cat/etc/sysconfig/network-scripts/ifcfg-eth0 can see if the boot is starting from the configuration file.


Onboot if it equals no, then we need to change to Yes.

You can perform the following sed substitution command to replace the Onboot=no in the file with the Onboot=yes

Set-i ' S#onboot=no#onboot=yes#g '/etc/sysconfig/network-scripts/ifcfg-eth0

After the configuration is complete, the NIC will boot from boot.
11. Configure Network Card FAQ (1) ifup eth0, the NIC does not start or cannot be found   first: Check the network card is configured.   Second: detects whether the DHCP service and NAT service for VMware virtual machines are started. (2) After the network card is started, you can ping it to the extranet under Linux, but do not ping it under Linux   First: Check that the VMware virtual machine's VMNET8 network adapter is started.   Second: Check the Linux firewall is off.

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.