Instalasi Quagga
apt-get install quaggaKonfigurasi Quagga
- Copy file-file yang terletak pada direktori /usr/share/doc/quagga/examples/ berikut:
- zebra.conf.sample
- vtysh.conf.sample
- ripd.conf.sample
- ospfd.conf.sample
- Edit file /etc/quagga/daemons dengan perintah: nano /etc/quagga/daemons Ubah nilai "no" pada zebra, ospfd, dan ripd menjadi "yes". Isi file yang telah diubah adalah sebagai berikut:
- Restart quagga dengan menggunakan perintah: /etc/init.d/quagga restart
/usr/share/doc/quagga/examples/ | /etc/quagga/ |
---|---|
zebra.conf.sample | zebra.conf |
vtysh.conf.sample | vtysh.conf |
ripd.conf.sample | ripd.conf |
ospfd.conf.sample | ospfd.conf |
cp /usr/share/doc/quagga/examples/zebra.conf.sample /etc/quagga/zebra.conf
# This file tells the quagga package which daemons to start. # # Entries are in the format:=(yes|no|priority) # 0, "no" = disabled # 1, "yes" = highest priority # 2 .. 10 = lower priorities # Read /usr/share/doc/quagga/README.Debian for details. # # Sample configurations for these daemons can be found in # /usr/share/doc/quagga/examples/. # # ATTENTION: # # When activation a daemon at the first time, a config file, even if it is # empty, has to be present *and* be owned by the user and group "quagga", else # the daemon will not be started by /etc/init.d/quagga. The permissions should # be u=rw,g=r,o=. # When using "vtysh" such a config file is also needed. It should be owned by # group "quaggavty" and set to ug=rw,o= though. Check /etc/pam.d/quagga, too. # zebra=yes bgpd=no ospfd=yes ospf6d=no ripd=yes ripngd=no isisd=no
Konfigurasi Zebra
telnet localhost 2601Login dengan password zebra (untuk seterusnya, password yang digunakan dalam quagga adalah zebra)
Setting IP address untuk tiap interface yang digunakan.
- Masuk menuju configure terminal. Router> enable
- Berikan IP address untuk interface yang digunakan. Misal interface eth0 dengan IP address 192.168.1.1/24: Router(config)# interface eth0
- Jika sudah selesai, kembali ke mode priviledged exec (Router#) dengan menggunakan perintah end dan simpan konfigurasi dengan perintah wr atau copy running-config startup-config.
- Cek apakah tiap interface sudah memiliki IP address dengan salah satu perintah berikut:
- show running-config
- show interface
- Gunakan perintah exit untuk keluar dari zebra.
Router# configure terminal
Router(config-if)# ip address 192.168.1.1/24
Konfigurasi RIP Daemon
telnet localhost 2602Untuk menggunakan RIP (Routing Information Protocol), kita harus mendaftarkan network mana saja yang berhubungan langsung dengan router.
- Masuk ke configure terminal.
- Masuk ke RIP dengan perintah ripd(config)# router rip
- Masukkan network IP address(es) yang berhubungan dengan router. Misal salah satu network yang berhubungan dengan router ini adalah 192.168.1.0/24: ripd(config-router)# network 192.168.1.0/24
- Ulangi langkah no 3 untuk semua address yang terhubung.
- Simpan konfigurasi.
- Untuk melihat hasil, masukkan perintah ripd# show ip rip
Jika konfigurasi RIP benar, akan muncul rute dengan kode R di depannya.
Konfigurasi OSPF Daemon
telnet localhost 2604Untuk menggunakan OSPF (Open Shortest Path First), kita harus mendaftarkan network mana saja yang berhubungan langsung dengan router. Cara konfigurasi hampir sama dengan RIP daemon.
- Masuk configure terminal.
- Masuk ke OSPF dengan perintah: ospfd(config)# router ospf
- Masukkan network IP adress(es) yang berhubungan langsung dengan router. Misal salah satu network yang berhubungan dengan router ini adalah 192.168.1.0/24: ospfd(config-router)# network 192.168.1.0/24 area 0
- Simpan konfigurasi.
- Untuk melihat hasil, masukkan perintah: ospfd# show ip ospf route
ospfd# show ip ospf interface
Jika konfigurasi OSPF benar, akan muncul rute dengan kode O di depannya.
Contoh Desain Jaringan
Keterangan interface pada router A:- eth0: 192.168.2.1/24
- eth1: 192.168.1.1/24
- eth0: 192.168.2.2/24
- eth1: 192.168.3.1/24
Setting Zebra
Router A
telnet localhost 2601 Password: zebra Router> enable Password: zebra Router# configure terminal Router(config)# interface eth0 Router(config-if)# ip address 192.168.2.1/24 Router(config-if)# interface eth1 Router(config-if)# ip address 192.168.1.1/24 Router(config-if)# end Router# wr Router# exit
Router B
telnet localhost 2601 Password: zebra Router> enable Password: zebra Router# configure terminal Router(config)# interface eth0 Router(config-if)# ip address 192.168.2.2/24 Router(config-if)# interface eth1 Router(config-if)# ip address 192.168.3.1/24 Router(config-if)# end Router# wr Router# exit
Setting RIP Daemon
Router A
telnet localhost 2602 Password: zebra ripd> enable ripd# configure terminal ripd(config)# router rip ripd(config-router)# network 192.168.1.0/24 ripd(config-router)# network 192.168.2.0/24 ripd(config-router)# end ripd# wr ripd# exit
Router B
telnet localhost 2602 Password: zebra ripd> enable ripd# configure terminal ripd(config)# router rip ripd(config-router)# network 192.168.2.0/24 ripd(config-router)# network 192.168.3.0/24 ripd(config-router)# end ripd# wr ripd# exit
Setting OSPF Daemon
Router A
telnet localhost 2604 Password: zebra ospfd> enable ospfd# configure terminal ospfd(config)# router ospf ospfd(config-router)# network 192.168.1.0/24 area 0 ospfd(config-router)# network 192.168.2.0/24 area 0 ospfd(config-router)# end ospfd# wr ospfd# exit
Router B
telnet localhost 2604 Password: zebra ospfd> enable ospfd# configure terminal ospfd(config)# router ospf ospfd(config-router)# network 192.168.2.0/24 area 0 ospfd(config-router)# network 192.168.3.0/24 area 0 ospfd(config-router)# end ospfd# wr ospfd# exit
wew komplit,perlu ni.. mirip2 setting router cisco ya,cuman ada nama daemonnya.. hehe
ReplyDeleteBiasa aja.. intinya sebenarnya ga sebanyak ini.. Tulisan ini khusus untuk yang belum pernah kenal jaringan komputer..
ReplyDeleteSuon2... haha...
ReplyDeletemonggo2.. ga usah sungkan2.. :D
ReplyDeletejos begete!
ReplyDelete