Get the App
SLTechnology News&Howtos  ›  Servers  › 

Use the ifcfg command of linux to configure the network interface

Shulou Source: shulou.com Published: 2022-06-02 15:52:28 09月22日 Update

This article mainly introduces the use of linux ifcfg command to configure the network interface, the article is very detailed, has a certain reference value, interested friends must read it!

The ifcfg command is a Bash script that sets network interface parameters in linux.

Syntax format: ifcfg [parameters]

Common parameters:

Reference example

Stop the IP address on the specified network interface:

[root@linuxcool ~] # ifcfg eth0 stop

Configure the IP address for the network interface:

[root@linuxcool ~] # ifcfg eth2 add 192.168.60.11 Universe 24

Delete the network address for the network port:

[root@localhost ~] # ifcfg eth0 delete 192.168.10.250 and above are all the contents of configuring the network interface using the ifcfg command of linux. Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Tags: Network interface command configuration parameter address content reference value interest example partner common use more format knowledge program article network port Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Huawei Shulou Tech Info macOS Microsoft MariaDB