Quagga .. merupakan sebuah software dari zebra based, fungsinya masih tetap sama, menjadikan linux anda sebagai router dinamis! di sini kita akan mencoba membuat router dengan menggunakan quagga dan parameter router ospfd.
Pertama Install Quagga
root@debian:~# apt-get install quagga quagga-doc
setelah terinstall, copy file configurasi zebra dan ospfd
root@debian:~# cp /usr/share/doc/quagga/examples/zebra.conf.sample /etc/quagga/zebra.conf
root@debian:~# cp /usr/share/doc/quagga/examples/ospfd.conf.sample /etc/quagga/ospfd.conf
edit file konfigurasi daemons di /etc/quagga
cari kata-kata ini :
zebra=no
ospfd=no
rubah menjadi :
zebra=yes
ospfd=yes
lihat port berapa saja yang di gunakan oleh zebra dan ospfd
root@debian:~# netstat -nlptu | grep zebra
tcp 0 0 127.0.0.1:2601 0.0.0.0:* LISTEN 6524/zebra
root@debian:~# netstat -nlptu | grep ospfd
tcp 0 0 127.0.0.1:2604 0.0.0.0:* LISTEN 6528/ospfd
Restart Quagga
root@debian:~# /etc/init.d/quagga restart
Stopping Quagga daemons (prio:0): (waiting) .. ospfd (waiting) .. zebra (bgpd) (ripd) (ripngd) (ospf6d) (isisd).
Removing all routes made by zebra.
Nothing to flush.
Loading capability module if not yet done.
Starting Quagga daemons (prio:10): zebra ospfd.
Login ke OSPFD
root@debian:~# telnet localhost 2604
Trying 127.0.0.1…
Connected to localhost.
Escape character is ‘^]’.
Hello, this is Quagga (version 0.99.10).
Copyright 1996-2005 Kunihiro Ishiguro, et al.
User Access Verification
Password:
Password default : zebra
Enable Password : zebra
ospfd> en
ospfd# conf t
ospfd(config)#
setelah ini, kita cuma tinggal masukkan ip berapa yang ingin di routingkan, semisal
ospfd(config)# router ospf
ospfd(config-router)# network 192.168.1.0/24 area 0
ospfd(config-router)# wr
Configuration saved to /etc/quagga/ospfd.conf
keluar dengan mengetikkan exit
ospfd(config-router)# exit
ospfd(config)# exit
ospfd# exit
Connection closed by foreign host.
login ke zebra
root@debian:~# telnet localhost 2601
Trying 127.0.0.1…
Connected to localhost.
Escape character is ‘^]’.
Hello, this is Quagga (version 0.99.10).
Copyright 1996-2005 Kunihiro Ishiguro, et al.
User Access Verification
Password:
Router> en
Password:
Router# conf t
Router(config)# ip forward
Router(config)# exit
Router# sh ip ro
Codes: K - kernel route, C - connected, S - static, R - RIP, O - OSPF,
I - ISIS, B - BGP, > - selected route, * - FIB route
K>* 0.0.0.0/0 is directly connected, ppp0
C>* 10.64.64.64/32 is directly connected, ppp0
C>* 127.0.0.0/8 is directly connected, lo
O 192.168.1.0/24 [110/10] is directly connected, eth0, 00:02:11
C>* 192.168.1.0/24 is directly connected, eth0
Router# wr
Configuration saved to /etc/quagga/zebra.conf
Router#
Selesai … it’s easy !!
Tidak ada komentar:
Posting Komentar