Home > Article > Operation and Maintenance > What does network in linux mean?
The network in Linux means a network management tool. After the network control network interface configuration information is modified, the network service must be restarted to activate the new network configuration so that the configuration takes effect. The control script is "/ etc/init.d/network" file, you can add specified parameters after the file to operate the network service.
The operating environment of this article: Linux 6.4.3 system, DELL G3 computer.
Network in Linux is a network management tool
Linux currently provides two network management tools, one is network and the other is NetworkManager.
network
network is the control network interface configuration information after modification, the network service must be restarted to activate the new network configuration, so that the configuration takes effect. This part of the operation has the same effect on the service as when restarting the system. The control script is the file /etc/init.d/network. You can use the following parameters after this file to operate the network service.
For example:
/etc/init.d/network restart /etc/init.d/network restart
You can also use the service command to operate network services. For example:
service network restart service network restart
NetworkManager
RHEL6 new The added network management tool can be used to detect the network and automatically connect to the network. Whether it's a wireless or wired connection, it makes it easy for you to manage. For wireless networks, Network Manager can automatically switch to the most reliable wireless network. You can freely switch online and offline modes using the network manager program. Network managers can give preference to wired networks. Network Manager was originally developed by Redhat Corporation and is now managed by GNOME.
The new version of NetworkManager enhances device and protocol support. The latest version of NetworkManager has a new and beautiful client interface nmtui. "nmtui" is a graphical front-end for networkmanager. You can use it to easily configure and manage the network without X Window. Start nmtui:
[root@localhost ~]# nmtui
The Linux operating system is an open source, free operating system with extremely high flexibility and customizability. In Linux systems, networks can be managed and configured at different levels to ensure that the system can correctly connect and communicate with other computers.
First of all, at the physical level, network refers to the actual hardware devices used to communicate between computers, such as network cards, network cables, and wireless adapters. These hardware devices are responsible for transmitting data to the network and enabling communication between devices through physical connections.
At the data link level, network includes network interface card (NIC) drivers and implementation of network protocols (such as Ethernet protocols). At this level, the network sends packets directly to the target device via the MAC address (media access control address).
At the network level, network includes the implementation of IP (Internet Protocol) addresses and routing protocols. An IP address is an address used to uniquely identify a device on a network, which allows data to be transmitted over the Internet to the correct destination device. At the same time, routing protocols find and determine the best path for data packets to ensure that data packets can be transmitted correctly between multiple networks.
At the transport level, network includes the implementation of Transmission Control Protocol (TCP) and User Datagram Protocol (UDP). TCP provides reliable, connection-oriented data transmission services, ensuring the orderly arrival and error detection of data packets. UDP provides a connectionless transmission service, suitable for real-time applications or situations where lower latency is required.
Finally, at the application level, network provides various services and protocols, such as HTTP, FTP, SMTP and SSH. These protocols allow users to perform activities such as file transfer, email sending and receiving, and remote access over the network.
Extended knowledge
Basic knowledge of Linux network management
The biggest feature of the latest version of NetworkManager: Command line tool command, a command line interface for NetworkManager. NetworkManager's CLI tool nmcli, using nmcli users can query the status of network connections and can also be used for management. Pros: Primitive; relatively simple syntax; easy to master using NetworkManager in the CLI.
Basic configuration options of nmcli
nmcli con show #获得一份UUID列表 nmcli dev #查看网络设备及其状态 nmcli r wifi off #关闭WiFi nmcli con show #获得一份UUID列表 nmcli dev #查看网络设备及其状态 nmcli r wifi off #关闭WiFi
After the NetworkManager daemon is started, it will automatically connect to the configured system connection. User connections or unconfigured connections require via nmcli or table
The above is the detailed content of What does network in linux mean?. For more information, please follow other related articles on the PHP Chinese website!