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 relevant knowledge of "what is ZEROCONF in CentOS5.x". In the operation of actual cases, many people will encounter such a dilemma. Then 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!
There is a server of CentOS 5.5 (network segment is 172.21.73.0). Looking at its routing table, we find a strange item:
[shengkui@APP-SERVER ~] $route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
172.21.73.0 * 255.255.255.0 U 000 eth0
169.254.0.0 * 255.255.0.0 U 000 eth0
Default 172.21.73.253 0.0.0.0 UG 0 0 0 eth0
There is an item of 169.254.0.0. What is this routing list entry for and where does it come from?
After searching for information, I finally understand that this project is: Zero Configuration Network (ZEROCONF). ZEROCONF is also called IPv4 Link-Local (IPv4LL) and Automatic Private IP Addressing (APIPA). It is a dynamic configuration protocol through which the system can connect to the network.
Many Linux distributions install this service by default, and when the system cannot connect to DHCP server, it will try to get IP through ZEROCONF.
In CentOS5.x, the routing entry for ZEROCONF is added to the routing table in the following startup script.
/ etc/init.d/network will call the / etc/sysconfig/network-scripts/ifup-eth script, and the ifup-eth script will add the ZEROCONF routing entry as follows:
# Add Zeroconf route.
If [- z "${NOZEROCONF}"-a "${ISALIAS}" = "no"-a "${REALDEVICE}"! = "lo"]; then
Ip route replace 169.254.0.0 ip route replace 16 dev ${REALDEVICE}
Fi
Is there any way to disable ZEROCONF?
You can do this by adding a line "NOZEROCONF=yes" to the "/ etc/sysconfig/network" file.
In fact, assigning an arbitrary value to NOZEROCONF has the same effect, and as you can see from the above code, it only detects whether the NOZEROCONF is empty.
Of course, after modifying "/ etc/sysconfig/network", the network must be restarted to take effect: / etc/init.d/network restart
This is the end of the content of "what is ZEROCONF in CentOS5.x". Thank you for your 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.