(1) Ifconfig command The first is to configure the IP address of the NIC using the Ifconfig command. This command is typically used to test for zero, and after the computer startsthe configuration of the IP address is automatically invalidated. The specific usage is as follows. Ipconfig ethx ipadd netmask x.x.x.x. where x in ETHX represents the Fast Ethernet card, the default first block is 0.ipadd for 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 The subnet mask is 255.255.255.0. As the following Note (This method configures theIPAfter the address, the computer will not be disabled from the new boot (2) NeatCommandNeatCommand=redhat-config-networkConfiguration under GraphicsIPAddress Double-click the part of the red line below the picture to double-click the underlined section to appear as follows: Configure related information as required double-clickOKConfiguration is complete. Restart the service after configuration and view the configurationIPAddress. Note (This method configures theIPAfter the address, the computer still works from the new boot(3) NetconfigCommand inputNetconfigAfter the display appears, clickYesButton. After the relevant configurationOKExit. Note (This method configures theIPAfter the address, the computer still works from the new boot
(
4
)
Vi/etc/sysconfig/network-scripts/ifcfg-ethxRestart service after configuration is complete.,PThe address is configured. Actually, the front3Configuration method eventually changed./etc/sysconfig/network-scripts/ifcfg-ethxThe configuration file below.
Four ways to configure IP address under Linux (graphic)