Linux network settings 1-Linux network environment configuration

Source: Internet
Author: User
Linux network settings 1 & mdash; Linux network environment configuration Method 1: ① use the root login, enter the setup command ② select Networkconfiguration to enter the configuretcp/ip interface ③ The first [], if the cursor is here and the * sign is displayed by space, the IP address is automatically allocated ④ if you want to manually... linux Network settings 1 -- Linux Network environment configuration Method 1: ① use root to log on, enter the setup command ② select Network configuration, enter the Configure TCP/IP interface ③ The first [], if the cursor is here, press the space to display the * sign, the IP address is automatically assigned ④ if you want to manually assign an IP address, press the tab key, enter the IP address, and press the tab key all the time, the following content is automatically entered. Select OK ⑤ and return to the command interface. enter/etc/rc. d/init. d/network restart to take effect. Method 2: ① enter the command ifconfig eth0 X. x. x. x, set the Nic ② enter the command ifconfig eth0 network X. x. x. x, set subnet mask ③ use the default settings for the broadcast address and dns so that the network configuration will take effect immediately, but will take effect temporarily. Once restarted, the error message is invalid. Method 3: ① vi/etc/sysconfig/network-scripts/ifcfg-eth0, open the file and modify ② run/etc/rc. d/init. d/network restart. this method takes effect permanently.
 
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.