In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces the knowledge of "how to assign a fixed IP to Ubuntu14.04". 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!
1. Log in with the root user first, and then enter your root password. As shown below:
2. Then edit the interfaces file, which is located under / etc/network/, and execute the following command: vim / etc/network/interfaces, enter, as shown below:
3. Add: # interfaces (5) file used by ifup (8) and ifdown (8) auto loiface lo inet loopback the following is added to the file: # The primary network interfaceauto eth0iface eth0 inet staticaddress 192.168.1.100netmask 255.255.255.0gateway 192.168.1.1, as shown in the figure:
4. After adding, save and exit, then configure DNS parsing, and then / etc/resolv.conf the DNS parsing file. Execute: vim / etc/resolv.conf, as shown below:
5. Add: nameserver 192.168.1.1 name nameserver 220.170.64.68, as shown below:
6. After changing the above, if you restart it, it will still be the same as before, so make it change permanently. Therefore, execute: vim / etc/resolvconf/resolv.conf.d/base, as shown below:
7. Add: nameserver 192.168.1.1nameserver 220.170.64.68, as shown below:
8. Then save and exit, which is basically done here, and then you still can't connect to the Internet. Delete the system-connections in the / etc/NetworkManager/ directory, or move it to another directory.
9. Finally, execute / etc/NetworkManager/ and you can connect to the Internet.
Note: this is the configuration under Ubuntu14.04, and the configuration under Ubuntu is slightly different from that under other Linux.
This is the end of "how to assign a fixed IP to Ubuntu14.04". 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.