Difference between revisions of "TCP/IP: Quagga Statik Routing"

From OnnoWiki
Jump to navigation Jump to search
 
(One intermediate revision by the same user not shown)
Line 4: Line 4:
 
Static routes
 
Static routes
 
Telnet access
 
Telnet access
 
 
 
 
 
 
 
 
   
 
   
 
   
 
   
Line 17: Line 11:
 
   
 
   
  
3. CONFIGURATIONS
+
==Konfigurasi==
 +
 
 +
Kita perlu menset sistem Linux secara benar agar Quagga dapat berjalan dengan baik.
 +
 
 +
 
 +
==Konfigurasi Linux==
  
You must set your Linux system correctly to launch Quagga successfully.
+
Cek bahwa daemon zebra dapat di aktifkan:
See the Quagga tutorial for assisstance.
 
LINUX CONFIGURATIONS
 
  
Check that the zebra daemon is activated:
+
vim /etc/quagga/daemons
  
#vim /etc/quagga/daemons
+
isinya
  
 
  zebra=yes
 
  zebra=yes
Line 35: Line 32:
 
  isisd=no
 
  isisd=no
  
If you changed your daemons file, restart the quagga service:
+
Jika kita mengubah file daemons, kita perlu me-restart layanan Quagga menggunakan perintah:
  
  #vim /etc/init.d/quagga restart
+
  vim /etc/init.d/quagga restart
  
 
  Stopping Quagga daemons (prio:0): ospfd zebra (bgpd) (ripd) (ripngd) (ospf6= d) (isisd).
 
  Stopping Quagga daemons (prio:0): ospfd zebra (bgpd) (ripd) (ripngd) (ospf6= d) (isisd).
Line 45: Line 42:
 
  Starting Quagga daemons (prio:10): zebra.
 
  Starting Quagga daemons (prio:10): zebra.
  
Set the Quagga A hostname in the /etc/quagga/vtysh.conf file:
+
Kita dapat menset hostname Quagga_A di file /etc/quagga/vtysh.conf:
  
  #vim /etc/quagga/vtysh.conf
+
  vim /etc/quagga/vtysh.conf
  
 
  !
 
  !
Line 57: Line 54:
 
  !
 
  !
  
Set the Quagga B hostname in the /etc/quagga/vtysh.conf file:
+
Di komputer yang lain, kita dapat menset hostname Quagga_B di file /etc/quagga/vtysh.conf
  
  #vim /etc/quagga/vtysh.conf
+
  vim /etc/quagga/vtysh.conf
  
 
  !
 
  !
Line 69: Line 66:
 
  !
 
  !
  
Don't forget to activate the ip forwarding on the Quagga A router!
+
Jangan lupa untuk mengaktifkan ip forwarding di router Quagga A
 
It is not necessary to activate ip forwarding on the Quagga B router because it has only one network interface.
 
It is not necessary to activate ip forwarding on the Quagga B router because it has only one network interface.
  
 
ROUTERS CONFIGURATIONS
 
ROUTERS CONFIGURATIONS
  
CISCO ROUTER 2651 IOS: 12.2-23a QUAGGA ROUTER A 0.99.6
+
CISCO ROUTER 2651 IOS: 12.2-23a QUAGGA ROUTER A 0.99.6
interface FastEthernet0/1
+
 
  ip address 10.1.3.2 255.255.255.0
+
interface FastEthernet0/1
  no shutdown interface eth0
+
  ip address 10.1.3.2 255.255.255.0
  ip address 10.1.3.1/24
+
  no shutdown interface eth0
  link-detect
+
  ip address 10.1.3.1/24
interface FastEthernet0/0
+
  link-detect
  ip address 10.1.4.2 255.255.255.0
+
interface FastEthernet0/0
  no shutdown interface eth1
+
  ip address 10.1.4.2 255.255.255.0
  ip address 10.1.1.1/24
+
  no shutdown interface eth1
  link-detect
+
  ip address 10.1.1.1/24
hostname Cisco-2651
+
  link-detect
ip route 10.1.0.0 255.255.0.0 10.1.3.1
+
hostname Cisco-2651
ip route 10.200.1.4 255.255.255.255 10.1.4.1
+
ip route 10.1.0.0 255.255.0.0 10.1.3.1
ip route 10.200.1.1 255.255.255.255 10.1.3.1
+
ip route 10.200.1.4 255.255.255.255 10.1.4.1
ip route 10.1.0.0/16 10.1.3.2
+
ip route 10.200.1.1 255.255.255.255 10.1.3.1
ip route 10.200.1.4/32 10.1.3.2
+
ip route 10.1.0.0/16 10.1.3.2
ip route 10.200.1.1/32 10.1.1.2
+
ip route 10.200.1.4/32 10.1.3.2
line vty 0 4
+
ip route 10.200.1.1/32 10.1.1.2
 +
line vty 0 4
 
   no login
 
   no login
 
line vty
 
line vty
 
   no login
 
   no login
enable secret password enable password password
+
enable secret password enable password password
  
CISCO SWITCH L3 3750 IOS: 12.2-25.SEE2
+
CISCO SWITCH L3 3750 IOS: 12.2-25.SEE2
QUAGGA ROUTER B 0.99.6
+
QUAGGA ROUTER B 0.99.6
interface vlan 1
+
interface vlan 1
  ip address 10.1.1.2 255.255.255.0
+
  ip address 10.1.1.2 255.255.255.0
  no shutdown interface eth0
+
  no shutdown interface eth0
  ip address 10.1.4.1/24
+
  ip address 10.1.4.1/24
  link-detect
+
  link-detect
interface Loopback 1
+
interface Loopback 1
  ip address 10.200.1.1 255.255.255.255
+
  ip address 10.200.1.1 255.255.255.255
  interface lo
+
  interface lo
  ip address 10.200.1.4/32
+
  ip address 10.200.1.4/32
  link-detect
+
  link-detect
hostname 3750_L3 hostname quagga-router-b
+
hostname 3750_L3 hostname quagga-router-b
ip route 0.0.0.0 0.0.0.0 10.1.1.1 ip route 0.0.0.0/0 10.1.4.2
+
ip route 0.0.0.0 0.0.0.0 10.1.1.1 ip route 0.0.0.0/0 10.1.4.2
line vty 0 4
+
line vty 0 4
  no login
+
  no login  
line vty 0 4
+
line vty 0 4
  no login
+
  no login
enable secret password
+
enable secret password
  enable password password
+
  enable password password
 
   
 
   
ip routing
+
ip routing
ip multicast-routing distributed
+
ip multicast-routing distributed

Latest revision as of 07:37, 21 September 2015

quagga cisco 2651 3750 static routing Functionalities tested:

Interface settings Static routes Telnet access




Konfigurasi

Kita perlu menset sistem Linux secara benar agar Quagga dapat berjalan dengan baik.


Konfigurasi Linux

Cek bahwa daemon zebra dapat di aktifkan:

vim /etc/quagga/daemons

isinya

zebra=yes
bgpd=no
ospfd=no
ospf6d=no
ripd=no
ripngd=no
isisd=no

Jika kita mengubah file daemons, kita perlu me-restart layanan Quagga menggunakan perintah:

vim /etc/init.d/quagga restart
Stopping Quagga daemons (prio:0): ospfd zebra (bgpd) (ripd) (ripngd) (ospf6= d) (isisd).
Removing all routes made by zebra.
Nothing to flush.
Loading capability module if not yet done.
Starting Quagga daemons (prio:10): zebra.

Kita dapat menset hostname Quagga_A di file /etc/quagga/vtysh.conf:

vim /etc/quagga/vtysh.conf
!
! Sample
!
! service integrated-vtysh-config
hostname Quagga_A
username root nopassword
!

Di komputer yang lain, kita dapat menset hostname Quagga_B di file /etc/quagga/vtysh.conf

vim /etc/quagga/vtysh.conf
!
! Sample
!
! service integrated-vtysh-config
hostname Quagga_B
username root nopassword
!

Jangan lupa untuk mengaktifkan ip forwarding di router Quagga A It is not necessary to activate ip forwarding on the Quagga B router because it has only one network interface.

ROUTERS CONFIGURATIONS

CISCO ROUTER 2651 IOS: 12.2-23a 	QUAGGA ROUTER A 0.99.6
interface FastEthernet0/1
  ip address 10.1.3.2 255.255.255.0
  no shutdown 	interface eth0
  ip address 10.1.3.1/24
  link-detect
interface FastEthernet0/0
  ip address 10.1.4.2 255.255.255.0
  no shutdown 	interface eth1
  ip address 10.1.1.1/24
  link-detect
hostname Cisco-2651 	
ip route 10.1.0.0 255.255.0.0 10.1.3.1
ip route 10.200.1.4 255.255.255.255 10.1.4.1
ip route 10.200.1.1 255.255.255.255 10.1.3.1
	ip route 10.1.0.0/16 10.1.3.2
ip route 10.200.1.4/32 10.1.3.2
ip route 10.200.1.1/32 10.1.1.2
line vty 0 4
 no login

line vty

 no login
enable secret password 	enable password password
CISCO SWITCH L3 3750 IOS: 12.2-25.SEE2 	
QUAGGA ROUTER B 0.99.6
interface vlan 1
  ip address 10.1.1.2 255.255.255.0
  no shutdown 	interface eth0
  ip address 10.1.4.1/24
  link-detect
interface Loopback 1
  ip address 10.200.1.1 255.255.255.255
  	interface lo
  ip address 10.200.1.4/32
  link-detect
hostname 3750_L3 	hostname quagga-router-b
ip route 0.0.0.0 0.0.0.0 10.1.1.1 	ip route 0.0.0.0/0 10.1.4.2
line vty 0 4
  no login 
	line vty 0 4
  no login
enable secret password
  	enable password password

ip routing
ip multicast-routing distributed