Get the App
SLTechnology News&Howtos  ›  Servers  › 

The Network Foundation of Linux system

Shulou Source: shulou.com Published: 2022-06-02 07:12:23 09月29日 Update

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.

Tags: Computer configuration network information permanent network card route service name address file process host parameter slogan common situation number method server Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno vpn MariaDB Redmi Shulou Information Microsoft