Summary of methods for configuring ip address under Linux system

  
                

For the Linux beginners who just started, I still don't know how to configure the ip address. Today, Xiaobian will introduce you how to configure the ip address for the Linux system, hoping to help you.

(1) Ifconfig command

The first use the ifconfig command to configure the ip address of the NIC. This command is usually used for zero-time test. After the computer starts, the configuration of the

ip address will be invalidated automatically. The specific usage is as follows. Ipconfig ethx ipadd netmask x.x.x.x.

The x in ethx represents the first few Ethernet cards. The default first block is 0.ipadd represents the ip address. X.x.x..x is the subnet mask. For example, the IP address configured for the NIC eth0 is 192.168.1.1 and the subnet mask is 255.255.255.0. As in the figure below

Note (after ip address configuration method restart the computer will fail)

(2) neat command

Neat command = redhat ip address configuration

-config-network double-click graphical view of the lower portion painted red
Previous next total 3 123

Copyright © Windows knowledge All Rights Reserved