In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
In this issue, the editor will bring you about how to configure static IP and DNS in ubuntu12.04. The article is rich in content and analyzes and narrates it from a professional point of view. I hope you can get something after reading this article.
Static IP configuration method:
Edit / etc/network/interfaces, delete the content, and enter the following lines (assuming your network card is eth0) sudo gedit / etc/network/interfaces
Auto eth0
Iface eth0 inet static / / designated as static
Address 192.168.1.103 / / IP address
Gateway 192.168.1.1 / / Gateway
Netmask 255.255.255.0 / / Subnet Mask
Network 192.168.1.0 / / is this the network?
Broadcast 192.168.1.255 / / broadcast
Then restart the network device
Sudo / etc/init.d/networking restart
Set up the DNS:
Ubuntu sets DNS by simply writing the DNS address to the / ect/resolv.conf file, but in version 12.04 desktop, after the system is rebooted, the static IP setting takes effect, but the public network cannot be linked, and the DNS address of the / etc/resole.conf file is overwritten.
As a solution, create a tail file in the / etc/resolvconf/resolv.conf.d/ directory and write to nameserver 202.96.134.133
Nameserver 202.96.128.68
Then restart and DNS takes effect.
This is how to configure static IP and DNS in the ubuntu12.04 shared by the editor. If you happen to have similar doubts, you might as well refer to the above analysis to understand. If you want to know more about it, you are 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.
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.