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 mainly introduces Ubuntu 8.10 how to configure static IP address, the article is very detailed, has a certain reference value, interested friends must read it!
After setting up the network in Ubuntu 8.10, reboot and found that the network settings were not saved.
Solution:
1. Configure IP and other related network settings sudo vi / etc/network/interfacesauto loiface lo inet loopback
# the above two lines are the system loopback devices. You must have auto eth0 iface eth0 inet static address 192.168.0.2 netmask 255.255.255.0 to set the network connection after installing the system. It is found that the original Ubuntu 8.10 (Intrepid Ibex) really cannot save the network settings, and it means that it has not been set up after restart. I don't know what the problem is. I have a local area network.
I solved this by removing the Auto eth0 from the wired connection and then manually adding a new connection so that the settings can be saved. Check network configuration $ifconfig configuration DHCP client $sudo vi / etc/network/interfaces join iface eth0 inet dhcp
Ubuntu 8.10 configure a static IP address
The $sudo vi / etc/network/interfaces eth0 configuration is as follows: auto eth0 address 192.168.0.88 netmask 255.255.255.0 gateway 192.168.0.1
After Ubuntu 8.10 saves and exits the new configuration, use the restart networking command to make the new configuration take effect: $sudo / etc/init.d/networking restart can also restart the network card to make the new configuration take effect. The advantage is that $sudo ifdown eth0 $sudo ifup eth0 temporarily changes the IP address $sudo ifconfig eth0 192.168.1.111 netmask 255.255.255.0 when the system is rebooted, the configuration in interfaces will be restored. There are also two ways to set the default gateway:
1. Set in the interfaces file. $sudo vi / etc/network/interfaces join gateway under the relevant configuration of eth0, such as:
Auto eth0 iface eth0 inet static address 192.168.1.123 netmask 255.255.255.0 gateway 192.168.1.1
two。 Directly use the command settings: delete the current default gateway $sudo route del default gw manually configure the default gateway $sudo route add default gw 192.168.1.1 View routing information $route use this method, the modification takes effect immediately, after reboot, the settings in the interfaces file will be valid.
Ubuntu 8.10 View hostname $hosts temporarily modify hostname $sudo hostname testserver will take effect immediately after the command is executed. * modify the hostname $sudo vi / etc/hostname to write the new hostname. When the system restarts, the hostname in this file is read.
Ubuntu 8.10 configure the address of the DNS server, you can use up to 3 DNS servers $sudo vi / etc/resolv.conf nameserver 202.xx.xx.xx nameserver 192.168.1.1 the modification to "resolv.conf" is effective immediately. You can use the nslookup command to query the DNS server to verify the "resolv.conf" configuration file.
These are all the contents of the article "how to configure static IP addresses in Ubuntu 8.10". Thank you for reading! Hope to share the content to help you, more related knowledge, 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.