Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The use of several Network configuration tools in Linux

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces "the use of several network configuration tools of Linux". In the daily operation, I believe that many people have doubts about the use of several network configuration tools of Linux. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts about the use of several network configuration tools of Linux. Next, please follow the editor to study!

This article introduces RHEL8 network services and network configuration tools, as well as network firewalls and rule management tools.

NetworkManager network management tools

NetworkManager provides RHEL8 network services, each network device is associated with a NetworkManager device, and the configuration of network devices is saved in NetworkManager connection.

NetworkManager provides the D-Bus API interface to configure the management network and the GUI/TUI/CLI tool to configure the network.

Install NetworkManager

$yum install NetworkManager

Turn on NetworkManager

$systemctl enable NetworkManager

Start NetworkManager

$systemctl start NetworkManager

View NetworkManager status

$systemctl status NetworkManager

Network configuration tool

RHEL8 provides three network configuration tools, which are

Nmcli command line interface nmtui simple TUI interface nm-connection-editor graphical interface network dispatcher feature supports running related scripts according to network status, scripts are stored in the directory / etc/NetworkManager/dispatcher.d/, network configuration files are stored in the / etc/sysconfig/network-scripts/ directory, default scripts are not provided by default, and ifup/ifdown is used to turn on and off the specified network in RHEL8. It will not take effect immediately after modifying the network configuration. You need to restart the network or reload$ nmcli connection reload.

List network equipment

$nmcli device

List network connections

$nmcli connection

Show overall status

$nmcli general status

Set up DNS

$nmcli con mod conn-name ipv4.dns "8.8.8.8 8.8.4.4" $nmcli-p con show conn-name

Launch the interactive interface

$nmcli con edit

Firewall management module nftables

Media Access Control Security (MACsec) is a network transmission encryption authentication technology. IPsec works in the network layer (2) SSL works in the application layer (7) MACsec works in the data link layer (2) RHEL8 uses nftables as the back end of firewall instead of the original iptables,nftables provides packet filtering and classification functions and integrates a variety of tools, and makes many improvements, such as simultaneous support for IPv4/IPv6, automatic processing rules, support for debug and so on. Similar to iptables, nftables uses tables to hold network chains. The network chain (chains) contains rules for each behavior. The nft tool replaces all the components in the previous network packet filtering framework. The libnftnl library can be used to interact with nftables API at the lower network layer through libnml. In RHEL8, nftables is the default backend for firewall. Although the nftables backend is backward compatible with the previous firewall configuration iptables backend, you can still switch the firewall backend to iptables. The FirewallBackend option in the configuration file / etc/firewalld/firewalld.conf needs to be configured as iptables. The influence of the nftables rule module can be listed through the nft command. Due to the addition of the partition of tables, chains and rules in nftables rule settings, attention should be paid to the impact during operation. At this point, the study on "the use of several network configuration tools for Linux" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report