Linux Network Settings

Source: Internet
Author: User

View network Status Command ifconfig start eth0 network card ifup eth0 can view the information of a piece of network card separately ifconfig eth0 modify the network card IP address, all Linux devices are files exist, we want to find the network card configuration file, Linux default NIC configuration file under/etc/sysconfig/network-scripts/, the name is typically: Ifcfg-eth0 Ifcfg-eth1,eth0 represents the first Nic, eth1 represents the second NIC, and so on,    The general Dell R720 Standard has 4 gigabit NICs. Modify the IP of the network card, you can use the command vi/etc/sysconfig/network-scripts/ifcfg-eth0 default is the IP obtained by DHCP, the default configuration is as follows: Device=eth0//Physical device name hwaddr=00:0c : 29:12:4d:30 type=ethernetonboot=yes//Restart the network card whether to activate the device Bootproto=dhcp//IP address is obtained by the static Ip,ifcfg-eth0 NIC configuration content is as follows: device= eth0hwaddr=00:0c:29:12:4d:30type=ethernetonboot=yesbootproto=staticipaddr=192.168.1.1netmask= 255.255.255.0GATEWAY=192.168.1.254 Network Adapter Configuration Complete Restart the network card service to take effect, command/etc/init.d/network Restart if you want to access the site domain name, you need to configure the Dns,dns configuration file vi/etc /resolv.confnameserver 202.103.24.68 try to ping the site to see if you can successfully access the ping www.baidu.com we can download the site page wget www.baidu.com

How to switch to the GUI Linux has the default level, 1 is single user mode, 3 is the character interface, 5 is the graphical interface, the character interface View level command RunLevel into the graphical interface command, if the Linux system has installed the graphical interface program init 5
How to manage Linux remotely, if you want Chinese to display normally, open the session option, the character encoding in the appearance changes to UTF-8

Linux Network Settings

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.