CentOS Network configuration in VMware

Source: Internet
Author: User
Tags nameserver

One

After the installation of CentOS, found that ping, ifconfig and other common commands are not used, there is unknown service or command not found such words, which makes me very silent. Check the information, IFCONIFG can use IP addr and IP link to replace.

Second, window

Open Network and Sharing Center, click Change adapter settings, select Local Area Connection or wireless network connection, then right-click to select Properties as shown in:

Third, VMware

Click Edit, the virtual network editor, modify the bottom left subnet, and click Nat settings to remember the gateway inside, and remember the IP range within the DHCP settings (start to end)

2.3 CentOS

Since CENTOS7 does not have ifconfig, enter the IP addr to view the NIC information as follows:

Open the/etc/systemconfig/network-scripts/ifcfg-eno16777736 and add the following content:

Then restart the Network service restart to see that OK is restarted successfully

At this time if ping Baidu will display host cannot find, ping Baidu IP (180.149.132.47) can ping, indicating that DNS is not configured, next configure DNS

Cut to NetworkManager directory

V. Configuring DNS

cd/etc/networkmanager/

Modifying the networkmanager.conf configuration file
Increase

dns=None

Not managed by Network manager

Modify resolv.conf, add DNS configuration

#主DNS nameserver 8.8. 8. 8

#备DNS nameserver 8.8. 4. 4

At this point, ping Baidu.com will be able to ping.

CentOS Network configuration in VMware

Related Article

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.