Create a Post
Showing results for 
Search instead for 
Did you mean: 

Why should we use subnet for a static route?

Hi all, 

My question might be silly or funny to some. But, I am not understanding why should the subnet mask for the static route be when applying for a specific Ip address. When I try the subnet mask of the network it is showing as wrong mask. I am new to networking and wondering some of you might help me understand.

Thank you in advance.

0 Kudos
3 Replies

Host static route is a network with a single IP address, hence 32 bit mask

0 Kudos

Why is this question in the SMB and SMP queue ? I admit that it also has to do with SMB, but basically this is a networking basics question .

0 Kudos

Could you give an example of which route you are trying to add? What I read between the lines is that you are something like /26 as a route, which will give you this type of error. In routing you should always use the subnet address, not the host address if you want reach the hosts in that network via the added route.

Subnets use bit boundaries and there are for each subnet mask a list of possible numbers. ie for a /26 network only 0, 64, 128 and 192 are valid numbers as the network address  so is valid but is not.

I hope this clarifies things a bit?

Regards, Maarten