Linux Learning Note (v)---centos7 system static IP address configuration

Source: Internet
Author: User
In the previous section we used IP addresses to obtain IP dhclient automatically, but sometimes restarting the virtual machine IP address changed to something else. Causes the Xshell connection to also modify the configuration file, for this we change the IP address to static IP. Here's how:
1. Open the NIC configuration file
Vi/etc/sysconfig/network-scripts/ifcfg-ens33

2. Modify DHCP to static to change the boot start to Yes

3. Then IP address, subnet mask, default gateway, DNS configuration

4. To save the operation of the exit (vi, please refer to the previous share of vim use).
5. Restart the Network Service

This completes the IP static configuration.

Linux Learning Note (v)---centos7 system static IP address configuration

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.