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)