Four ways to configure IP address under Linux (graphic)

Source: Internet
Author: User

(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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.