Add an IP range to routes using route add
Using the command route
I want to add not a specific IP, but a range 172.16.12.0-172.16.12.255
.
Tried route add -p 172.16.80.95 172.16.12.0
The route is added, but it doesn't look like the entire range is being clung to. If I add one IP, then the pings go.
How do I add the entire range or what am I doing wrong?
UPD
I wanted to add a range of gateways with one command. It turned out that this is not possible.
0
1 answers
The range is set by the mask: route add 172.16.12.0 mask 255.255.255.0
2
Author: Sergey Gornostaev, 2016-03-17 06:39:43