The Network Foundation of Linux system
1. View network configuration
1) use ifconfig to view all Nic information
2) View a network card information
two。 View the computer name and modify the computer name
1) View, temporarily modify, permanently modify the computer name
3. View all routing tables
4. Use netstat to view network connections
1) Common options for netstat
-a displays all connection information and ports of the host
-n is displayed digitally
-p displays the port number and process information associated with the service
-r displays the routing table
-t display TCP protocol
-u display UDP protocol
-l shows the processes and services that monitor the status
5. Test network connectivity
6. Set the type of network parameter
1) temporary modification
It will not take effect forever and will expire after the computer is rebooted.
2) permanently effective
The computer can continue to be used after restarting, and the configuration file needs to be modified.
3) set the IP address
4) add and delete routes
5) configure permanent IP address
1) Edit the network card configuration file
Vim / etc/sysconfig/network-scripts/ifcfg-ens32
The next chapter briefly describes how Linux centOS7 builds a DHCP server and simple configuration.