In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
Today, I will talk to you about the Linux system through the command line to change the IP method is what, many people may not know, in order to let you know more, Xiaobian summarized the following content for you, I hope you can according to this article to gain something.
How does Linux change IP from command line?
Linux How to set IP address on command line:
IP address and subnet mask:ifconfig eth0 192.168.62.244 netmask 255.255.255.0
Gateway settings:route add default gw 192.168.62.1
(We can write these two commands to/etc/rc.local or/etc/rc.d/rc.local, which can be saved permanently!!)
In Linux we set the default gateway, host name, whether to start the network:
/etc/sysconfig/network, where you can set the default gateway, host name, whether to start the network.
Setting network card parameters in Linux:
In/etc/sysconfig/nework-script/ifcfg-ethN(N indicates the network card number), you can set parameters!
Setting DNS in Linux:
In/etc/resolv.conf.
Linux is a free-to-use and freely distributed UNIX-like operating system, is a POSIX-based multi-user, multitasking, multi-threaded and multi-CPU operating system, using Linux to run major Unix tools, applications and network protocols.
After reading the above, do you have any further understanding of how Linux systems change IP through the command line? If you still want to know more knowledge or related content, please pay attention to the industry information channel, thank you for your support.
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.