In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces the knowledge of "what is the command of Linux to check ip". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
Ifconfig
Linux command to check the IP address-- ifconfig
The ifconfig command is used to view and change the address and parameters of a network interface
$ifconfig-a
Lo0: flags=849 mtu 8232
Inet 127.0.0.1 netmask ff000000
Hme0: flags=863 mtu 1500
Inet 211.101.149.11 netmask ffffff00 broadcast 211.101.149.255
Ether 8:0:20:a7:4d:21
The system displays the name of the network interface and the status of the interface (up or down)
Information such as IP address and mask of the interface
Change the IP address of the network interface:
# ifconfig hme0 down
# ifconfig hme0 211.101.149.233 netmask 255.255.255.0 up
First, use the down command parameter to temporarily stop the service of the network interface hme0, and then use Linux to view the ifconfig command of ip to
Interface assigns a new IP address and mask and starts the network interface service
You can also change the machine's IP address by changing the value of the IP address in the file / etc/hosts and restarting the system.
/ etc/hosts/: 211.101.149.11 sampdt
Define hostname in / etc/hostname.hme0 and IP address.
The Nic has been changed / added, and the system cannot start the interface service automatically. In this case, you need to create the Nic manually:
# ifconfig hme0 plumb
Linux can create a network port service for the interface le0 by viewing ip.
Accordingly, using ifconfig with the unplumb parameter can stop the service and shut down the network.
Netconfig is used to set the IP address
This is the end of the content of "what is the command for Linux to check ip". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
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.