"Wellcome To My Blog"

Jumat, 20 November 2009

Setting Static Router

Internet.
Hingga saat ini IPCop tidak menyediakan wen GUI untuk menambah routing static, mau tidak mau kita harus melakukannya secara manual, namun kita harus melakukan setup static route tersebut setiap IPCop kita reboot.
command:
root@ipcop:~ # route add -net 10.0.0.0 gw 10.38.24.1 netmask 255.0.0.0

Untuk menghindari seting ulang static route pada IPCop. Terdapat 2 file untuk ini. Gunakan salah satu tergantung pada kebutuhan anda.
Anda dapat menambahkan perintah route pada akhir file /etc/rc.d/rc.local. Routing akan ditambahkan setiap IPCop reboot, tapi tidak pada saat restart interface. Baik untuk IPCop dengan sedikit perubahan (minimalis).
command:
root@ipcop:~ # echo "route add -net 10.0.0.0 gw 10.38.24.1 netmask 255.0.0.0" >> /etc/rc.d/rc.local

Selain itu, kita dapat menambah perintah routing pada akhir file /etc/rc.d/rc.netaddress.up . Ini akan memastikan bahwa routing table yang kita buat selalu update setiap reboot PC atau restart interface.
command:
root@ipcop:~ # echo "route add -net 10.0.0.0 gw 10.38.24.1 netmask 255.0.0.0" >> /etc/rc.d/rc.netaddress.up

Untuk melihat routing table yang berlaku, gunakan command route.
command:
root@ipcop:~ # 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

Referensi lain di http://www.ipcops.com/phpbb3/viewtopic.php?t=10184

0 komentar:

Posting Komentar

mY albUm