Meaning of prefix length with ip addr add noprefixroute
3
votes
1
answer
5701
views
When assigning an ip address to a network interface with
ip addr add noprefixroute
, what effect will the specified prefix length have? When noprefixroute
is not used, the prefix length is used to automatically create and delete a route for the network prefix of the added address. Does it have any function other than that?
For example, what is the difference between
ip addr add noprefixroute 10.137.0.36/16 dev eth0
and
ip addr add noprefixroute 10.137.0.36/32 dev eth0
?
Asked by p0ny
(133 rep)
Feb 7, 2024, 04:39 PM
Last activity: Feb 7, 2024, 08:24 PM
Last activity: Feb 7, 2024, 08:24 PM