IPCop till today does not have a GUI to add static routes.
The manual method. You will have to do this every time IPCop is rebooted.
root@proxy73:~ # route add -net 10.0.0.0 gw 10.38.24.1 netmask 255.0.0.0
Now let’s make the route persistent across reboots. There are 2 files for this. Use either one depending on your needs.
You can add the route command at the end of the /etc/rc.d/rc.local file. The route will be added every time IPCop is rebooted but not everytime the interface is restarted. Good for a box with minimal changes.
root@proxy73:~ # echo "route add -net 10.0.0.0 gw 10.38.24.1 netmask 255.0.0.0" >> /etc/rc.d/rc.local
The other way would be to add the route command at the end of the /etc/rc.d/rc.netaddress.up file. This will ensure that your routing table gets updated every time the interface is restarted.
root@proxy73:~ # echo "route add -net 10.0.0.0 gw 10.38.24.1 netmask 255.0.0.0" >> /etc/rc.d/rc.netaddress.up
I personally use the latter.
To view your routing table run the “route” command.
root@proxy73:~ # route
Kernel IP routing table
Destination    Gateway        Genmask        Flags Metric Ref   Use Iface
213.27.199.80Â Â *Â Â Â Â Â Â Â Â Â Â Â Â Â Â 255.255.255.248 UÂ Â Â Â 0Â Â Â Â Â 0Â Â Â Â Â Â Â 0 eth2
192.168.1.0Â Â Â Â *Â Â Â Â Â Â Â Â Â Â Â Â Â Â 255.255.255.0Â Â UÂ Â Â Â 0Â Â Â Â Â 0Â Â Â Â Â Â Â 0 eth1
10.38.24.0Â Â Â Â Â *Â Â Â Â Â Â Â Â Â Â Â Â Â Â 255.255.248.0Â Â UÂ Â Â Â 0Â Â Â Â Â 0Â Â Â Â Â Â Â 0 eth0
10.0.0.0Â Â Â Â Â Â Â 10.38.24.1Â Â Â Â Â 255.0.0.0Â Â Â Â Â Â UGÂ Â Â 0Â Â Â Â Â 0Â Â Â Â Â Â Â 0 eth0
default        213.27.199.81  0.0.0.0        UG   0     0       0 eth2






