difference network and host address of destination in a route

Posted on

difference network and host address of destination in a route – A server stack is the collection of software that forms the operational infrastructure on a given machine. In a computing context, a stack is an ordered pile. A server stack is one type of solution stack — an ordered selection of software that makes it possible to complete a particular task. Like in this post about difference network and host address of destination in a route was one problem in server stack that need for a solution. Below are some tips in manage your linux server when you find problem about linux, router, , , .

I learn a doc at here

it say ,destination address of a route entries, can be a network or host address (primary key).
what the difference between network and host address?

for example two entries below:(gayteway:192.168.100.254)

192.168.100.0/24 dev enp1s0 proto kernel scope link src 192.168.100.248 metric 100

&

192.168.100.254/24 dev enp1s0 proto kernel scope link src 192.168.100.248 metric 100

In your example, the behavior is the same for each route. But setting a host address is hopefully possible because you can set a route to a host only (with a netmask of 255.255.255.255).

Some operating systems, like CentOS, don’t accept a host address if the netmask is different from 255.255.255.255 (you’ll got an invalid argument error). You must set the network address in order to add your route.

Leave a Reply

Your email address will not be published.