The routes to the branches in maintained by a script in /usr/local/bin/
To see what is currently configured:
TYPE
- Code: Select all
route -n
- Code: Select all
root@amethyst:~# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.7.0 192.168.1.220 255.255.255.0 UG 0 0 0 eth0
172.22.6.0 192.168.1.180 255.255.255.0 UG 0 0 0 eth0
172.22.36.0 192.168.1.250 255.255.255.0 UG 0 0 0 eth0
172.22.5.0 192.168.1.180 255.255.255.0 UG 0 0 0 eth0
172.22.4.0 192.168.1.180 255.255.255.0 UG 0 0 0 eth0
172.22.3.0 192.168.1.180 255.255.255.0 UG 0 0 0 eth0
172.22.18.0 192.168.1.250 255.255.255.0 UG 0 0 0 eth0
172.22.2.0 192.168.1.180 255.255.255.0 UG 0 0 0 eth0
172.22.17.0 192.168.1.250 255.255.255.0 UG 0 0 0 eth0
172.22.16.0 192.168.1.250 255.255.255.0 UG 0 0 0 eth0
172.22.15.0 192.168.1.250 255.255.255.0 UG 0 0 0 eth0
172.22.14.0 192.168.1.250 255.255.255.0 UG 0 0 0 eth0
192.168.10.0 192.168.1.226 255.255.255.0 UG 0 0 0 eth0
192.168.8.0 192.168.1.221 255.255.255.0 UG 0 0 0 eth0
192.168.0.0 0.0.0.0 255.255.254.0 U 0 0 0 eth0
11.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 eth1
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 192.168.0.254 0.0.0.0 UG 1 0 0 eth0
To edit the script add a hash on the entry on the set_route script
- Code: Select all
cd /usr/local/bin/
- Code: Select all
vi set_route
(See second last line)
- Code: Select all
/sbin/route add -net 192.168.7.0 netmask 255.255.255.0 gw 192.168.1.220
/sbin/route add -net 192.168.8.0 netmask 255.255.255.0 gw 192.168.1.221
/sbin/route add -net 172.22.2.0 netmask 255.255.255.0 gw 192.168.1.180
/sbin/route add -net 172.22.3.0 netmask 255.255.255.0 gw 192.168.1.180
/sbin/route add -net 172.22.4.0 netmask 255.255.255.0 gw 192.168.1.180
/sbin/route add -net 172.22.5.0 netmask 255.255.255.0 gw 192.168.1.180
/sbin/route add -net 172.22.6.0 netmask 255.255.255.0 gw 192.168.1.180
/sbin/route add -net 172.22.15.0 netmask 255.255.255.0 gw 192.168.1.250
/sbin/route add -net 172.22.16.0 netmask 255.255.255.0 gw 192.168.1.250
/sbin/route add -net 172.22.17.0 netmask 255.255.255.0 gw 192.168.1.250
/sbin/route add -net 172.22.18.0 netmask 255.255.255.0 gw 192.168.1.250
/sbin/route add -net 172.22.36.0 netmask 255.255.255.0 gw 192.168.1.250
/sbin/route add -net 172.22.14.0 netmask 255.255.255.0 gw 192.168.1.250
/sbin/route add -net 172.22.14.0 netmask 255.255.255.0 gw 192.168.1.250
#/sbin/route add -net 192.168.10.0 netmask 255.255.255.0 gw 192.168.1.226
#/sbin/route add -net 192.168.2.0 netmask 255.255.255.0 gw 192.168.1.222
This will prohibit this entry from running again
To delete the route, run the same line but replace "add" with "delete"
- Code: Select all
/sbin/route delete -net 192.168.10.0 netmask 255.255.255.0 gw 192.168.1.226
Run:
- Code: Select all
route -n
- Code: Select all
root@amethyst:/usr/local/bin# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.7.0 192.168.1.220 255.255.255.0 UG 0 0 0 eth0
172.22.6.0 192.168.1.180 255.255.255.0 UG 0 0 0 eth0
172.22.36.0 192.168.1.250 255.255.255.0 UG 0 0 0 eth0
172.22.5.0 192.168.1.180 255.255.255.0 UG 0 0 0 eth0
172.22.4.0 192.168.1.180 255.255.255.0 UG 0 0 0 eth0
172.22.3.0 192.168.1.180 255.255.255.0 UG 0 0 0 eth0
172.22.18.0 192.168.1.250 255.255.255.0 UG 0 0 0 eth0
172.22.2.0 192.168.1.180 255.255.255.0 UG 0 0 0 eth0
172.22.17.0 192.168.1.250 255.255.255.0 UG 0 0 0 eth0
172.22.16.0 192.168.1.250 255.255.255.0 UG 0 0 0 eth0
172.22.15.0 192.168.1.250 255.255.255.0 UG 0 0 0 eth0
172.22.14.0 192.168.1.250 255.255.255.0 UG 0 0 0 eth0
192.168.8.0 192.168.1.221 255.255.255.0 UG 0 0 0 eth0
192.168.0.0 0.0.0.0 255.255.254.0 U 0 0 0 eth0
11.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 eth1
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 192.168.0.254 0.0.0.0 UG 1 0 0 eth0
The deleted value will now be gone.