Centos Environment Network Configuration

Source: Internet
Author: User

Recently, I installed my desktop on Linux in the LS version of centos 3.0, but it was really troublesome to connect to the network. At that time, I configured it according to the methods provided by netizens, the most strange thing is that after the environment is configured

You can ping the gateway or use SSH for remote connection, but you cannot ping the Internet. Later, you will know that it is a domain name resolution problem.

To connect to a Linux network, you only need to modify this configuration file.

Vim/etc/sysconfig/network-scripts/ifcfg-eth0

Device = "eth0" bootproto = nonehwaddr = "00: 23: 54: de: 01: 69 "onboot =" yes "type =" Ethernet "userctl = nostm6init = nopeerdns = yesnetmask = 255.255.255.0ipaddr = 192.168.1.110gateway = 192.168.1.1dns1 = 8.8.8.8.8
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.