In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
Today, the editor shares with you the methods of configuring the ip address of linux, which many people do not quite understand. Today, in order to let you know more about the method of configuring the ip address of linux, the editor summarizes the following contents. Let's look down together. I'm sure you'll get something.
After the installation of the linux system, configure the network card IP through the command mode.
The configuration file is usually / etc/sysconfig/network-scripts/ifcfg-interface-name
What is displayed after the ifconfig, lo represents the loop circuit.
1. Ifconfig command
The first uses 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 fail automatically. The specific usage is as follows:
Ifconfig ethx ipaddr netmask x.x.x.x
The x in ethx represents the fast Ethernet card, and the default first block is 0ipaddr, 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.
The following figure shows:
Note: the ip address configured by this method will fail after the computer restarts.
II. Neat command
Neat command = configure the ip address under the 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 is rebooted.
3. Netconfig command
After entering netconfig, it will appear as shown in the following figure. Click the yes button.
Ok exits after relevant configuration.
Note: the ip address configured by this method is still valid after the computer is rebooted.
4. Vi / etc/sysconfig/network-scripts/ifcfg-ethx
Restart the service after configuration, and the ip address is configured. In fact, the configuration methods of the first three finally changed the configuration file under / etc/sysconfig/network-scripts/ifcfg-ethx.
What is the method of configuring linux's ip address to share here, of course, not only the above and everyone's analysis, but the editor can ensure its accuracy is absolutely no problem. I hope that the above content can have a certain reference value for everyone, and can be put into practice. If you like this article, you might as well share it for more people to see.
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.