Help with route with several networks.
Posted: 2018/03/28 18:47:33
Hello..
Dont even know how to start, well, i got an CentOS running (6.3 if i recall right)
It has two network interfaces, one connected to an internal link (eth0-172.17.51.9) and (eth1-200.247.200.144)
Theres a nagios fully functional monitoring more than 200 hosts+services.
Those hosts and services vary from 172.17.1.0 to 172.17.255.0 and 10.10.1.0 to 10.10.255.0 (just example)
My question is, can i make a route to redirect any network starting with 172.17, without the need to mention every single one of them?
Manually doing, works.. but will be best if i could put all those networks on two lines (one for 10.10 and another for 172.17)
Btw, i cant put eth0 as default gw since theres a squid (not working yet) on this machine aswell.
Dont even know how to start, well, i got an CentOS running (6.3 if i recall right)
It has two network interfaces, one connected to an internal link (eth0-172.17.51.9) and (eth1-200.247.200.144)
Theres a nagios fully functional monitoring more than 200 hosts+services.
Those hosts and services vary from 172.17.1.0 to 172.17.255.0 and 10.10.1.0 to 10.10.255.0 (just example)
My question is, can i make a route to redirect any network starting with 172.17, without the need to mention every single one of them?
Manually doing, works.. but will be best if i could put all those networks on two lines (one for 10.10 and another for 172.17)
Sorry my bad english..10.10.7.0 172.17.50.254 255.255.255.0 UG 0 0 0 eth0
10.10.5.0 172.17.50.254 255.255.255.0 UG 0 0 0 eth0
172.17.4.0 172.17.50.254 255.255.255.0 UG 0 0 0 eth0
172.17.71.0 172.17.50.254 255.255.255.0 UG 0 0 0 eth0
172.17.51.0 * 255.255.255.0 U 0 0 0 eth0
172.17.50.0 * 255.255.255.0 U 0 0 0 eth0
172.17.49.0 * 255.255.255.0 U 0 0 0 eth0
Btw, i cant put eth0 as default gw since theres a squid (not working yet) on this machine aswell.