Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to configure IP address in Linux system

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces the Linux system how to configure IP address, the article is very detailed, has a certain reference value, interested friends must read it!

(1) the Ifconfig command is the first to use the ifconfig command to configure the ip address of the network card. This command is usually used for 00:00 testing, after the computer starts

The configuration of the ip address will automatically fail. The specific usage is as follows. Ipconfig ethx ipadd netmask x.x.x.x .

The x in ethx represents the fast Ethernet card, and the default first block is 0.ipadd, which represents the ip address. X.x.x..x is the subnet mask. For example, the ip address configured for the network card eth0 is 192.168.1.1 with a subnet mask of 255.255.255.0. As shown in the following figure

Note (the ip address configured by this method will fail after the computer restarts) (2) neat command Neat command = configure ip address under redhat-config-network graph

Double-click the part under the picture that draws a red line

After double-clicking the underlined section, the following figure appears: configure the relevant information according to the requirements

Double-click ok to complete the configuration. Restart the service after configuration and check the configuration ip address.

Note (the ip address configured by this method is still valid after the computer restarts) (3) the netconfig command will appear after entering netconfig, click the yes button.

Ok exits after relevant configuration.

Note (the ip address configured by this method is still valid after the computer restarts) (* * 4) vi / etc/sysconfig/network-scripts/ifcfg-ethx**

Restart the service after configuration, and the p address will be configured. In fact, the configuration methods of the first three finally changed the configuration file under / etc/sysconfig/network-scripts/ifcfg-ethx.

The above is all the content of the article "how to configure IP address in Linux system". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report