Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How to install net-tools and configure the network in CentOS

Shulou Source: shulou.com Published: 2022-06-02 06:00:14 11月16日 Update

Today, I will talk to you about how to install net-tools and configure the network in CentOS. Many people may not know much about it. In order to make you understand better, the editor has summarized the following for you. I hope you can get something according to this article.

After minimizing the installation of CentOS, network commands such as ifconfig cannot be used, so you need to install the net-tools package.

View the package where ifconfig is located

Enter a command

Yum provides ifconfig

Check the package where ifconfig is located.

Install the net-tools package

Yum install net-tools

Configure the network

View network configuration through ifconfig-a

Configure the network according to the name of the network card:

Vim / etc/sysconfig/network-scripts/ifcfg-xxx (where xxx is the name of the network card)

DEVICE=xxx # network card device name. Eth0 represents the first network card HWADDR=00:0C:29:FC:8D:E6 # MAC address TYPE=Ethernet # network type Here is the Ethernet UUID=*** # unique identifier ONBOOT=yes # whether the current network card is effective with the network service, whether NM_CONTROLLED=yes # can be hosted by Network Manager graphical management tools, whether BOOTPROTO=static # automatically obtains IP (none, static, Whether dhcpIPADDR=11.10.1.192NETMASK=255.255.255.0GATEWAY=10.8.8.1DNS1=114.114.114.114DNS2=8.8.8.8IPV6INIT=no # IPv6 enables USERCTL=no # whether non-root users are allowed to control this network card to read the above content Do you know more about how to install net-tools and configure the network in CentOS? If you want to know more knowledge or related content, please follow the industry information channel, thank you for your support.

Tags: Network network card configuration content name command location minimum Ethernet graphics address tools more users knowledge management tools articles types network services industry Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Tech Info Apple Huawei Redmi Linux