I'm kind of new in networks and I have to add static routes to few networks on CentOS. Here are 2 questions that I have:
How to add this:
10.10.x.x/16
is this valid entry and is this mean all IP's onx.x
will be valid?If I'm understand correctly I need to create file with the name of the interface via which will be routing in
/etc/sysconfig/network-scripts
. Is that correct?
10.10.0.0/16
. 2) The file should be/etc/sysconfig/network-scripts/route-$INTERFACE
.10.10.x.x/16
but10.10.0.0/16
?10.10.0.0/16
is the preferred way. That said, you can have any two numbers in the last two places (they will just be ignored).