169.254.0.0/16 – Disable ZEROCONF Route

You may notice that in your routing table you have a route 169.254.0.0/16.

It is so called ZEROCONF route.

Every time the system boots, the ZEROCONF route (169.254.0.0/16) is enabled and added to the routing table.

And it is time to get rid of it.

Cool Tip: Scan the network with the ping command only! Discover all the active computers in your LAN! Read more →

Sample output of the ip route command with the enabled ZEROCONF route:

$ ip route
169.254.0.0/16 dev eth0  scope link  metric 1002
default via 192.168.0.1 dev eth0

Sample output of the route -n command with the enabled ZEROCONF route:

$ route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
169.254.0.0     0.0.0.0         255.255.0.0     U     1002   0        0 eth0
0.0.0.0        192.168.0.1       0.0.0.0         UG    0      0        0 eth0

To disable the ZEROCONF route during the system boot so that the system will boot without the 169.254.0.0/16 route, just edited the file /etc/sysconfig/network:

$ vi /etc/sysconfig/network

And add the following line:

NOZEROCONF=yes

Restart the network to apply modifications:

$ service network restart

Repeat the ip route or route -n command to ensure that the 169.254.0.0/16 route is removed from the routing table.


$ ip route
default via 192.168.0.1 dev eth0
$ route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0        192.168.0.1       0.0.0.0         UG    0      0        0 eth0
 
  • 0 Benutzer fanden dies hilfreich
War diese Antwort hilfreich?

Verwandte Artikel

What Is My Router’s IP Address (Default Gateway)

A router is a device that communicates between the Internet (or public network) and the devices...

CIDR Notation – Explained & Examples

CIDR (Classless Inter-Domain Routing) notation is a compact method for specifying IP addresses...

Disable IPv6 on Linux – Ubuntu, Debian, CentOS

To disable IPv6 on Linux it is required to modify Linux kernel parameters. IPv6 can be temporary...

What is my Public IP address?

Use one of the following commands to check your public IP address from the Linux command line....

Finding Active Computers in Local Network from Linux

Searching for Linux command that can list all IP addresses of devices connected to the network?...