Linux minimized post-installation IP configuration (manual acquisition of static IP address)

Source: Internet
Author: User
Tags get ip

A graphical interface configuration (assumed to be computer a)

If your Linux installation has a graphical interface, configure it in the following ways:

I have two network card, the first network card has been configured by DHCP in the previous article: Linux minimized post-installation IP configuration (DHCP get IP address)

First block of Wonka:

Take a look at configuration 2:

Another NIC intends to use manual access

Take a look at configuration 1:

Second, if your Linux is the smallest installation please see the following configuration (PC B)

is also two network cards, the first NIC is also DHCP to obtain IP, in the previous article has been configured through DHCP: Linux minimized post-installation IP configuration (DHCP get IP address),

Plan to configure IP for the second NIC manually

1. Check the network card installed on your computer

The NIC will be manually configured to view the details of the NIC:

2. Change the IPv4 access mode to manual manual

NMCLI Connection Modify wired\ Co 1 Ipv4.method Manual

You can manually assign IP only if you have changed the IP access method to manual, otherwise you cannot set the IP

3. Modify IP Gateway, address, DNS

1 196.168. 1.2/24 192.168. 1.254 8.8. 8.8

This sentence is equivalent to 3 words (respectively, address, gateway, DNS modification):

1 196.168. 1.2/24  1192.168. 1.254  18.8. 8.8

Here, you can also add an alternate DNS:

1  9.9. 9.9

4. Restart the service

Systemctl Restart Network

5. Activating the NIC

Ifconfig View:

To view network card information:

1

Can see that has been successful

Ping a computer:

Success

Copyright

Feiquan

Source: http://www.cnblogs.com/feiquan/

Copyright NOTICE: This article copyright belongs to the author and the blog Park is shared, welcome reprint, but without the consent of the author must retain this paragraph statement, and in the article page obvious location to the original link, otherwise reserves the right to pursue legal responsibility.

It is not easy to write the text, please respect the fruits of labor ~ Thank you all here (*/ω\*)

Linux minimized post-installation IP configuration (manual acquisition of static IP address)

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.