Difference between revisions of "OpenWRT: quagga"

From OnnoWiki
Jump to navigation Jump to search
(Created page with " The sample configuration shown below is for the Jandakot node on the WAFreeNet. This node uses a WRT54G running OpenWrt as a router, and the WRT provides routing, dns, dhcp a...")
 
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
sumber: https://openmaniak.com/quagga_tutorial.php
  
The sample configuration shown below is for the Jandakot node on the WAFreeNet. This node uses a WRT54G running OpenWrt as a router, and the WRT provides routing, dns, dhcp and firewalling services for the node.
 
Jandakot has an uplink to the ArmadaleAP node, and Willetton has a client link to Jandakot.
 
  
  
Install Components on OpenWrt
+
==Install==
Install IPK Packages
 
Install the appropriate Quagga packages on OpenWrt:
 
  
ipkg install quagga quagga-bgpd
+
opkg update
 +
opkg install quagga
  
  
Note that this assumes your WRT has internet access, and is able to download the package list to determine where it needs to download the specified packages.
+
==Quagga Daemon==
If your WRT doesn't have internet access, you'll need to use a browser to view the package list list, manually download the specified packages, and transfer them to your WRT and install them.
 
  
 +
Restart Quagga service:
  
 +
/etc/init.d/quagga restart
  
Create Configuration Files
+
Cek
Firstly, create a directory for all Quagga configuration files on the WRT:
 
  
  mkdir /etc/quagga
+
ps
  
  
Create a configuration file for the Quagga zebra daemon, /etc/quagga/zebra.conf:
+
==Konfigurasi==
 +
 
 +
File /etc/quagga/zebra.conf:
  
 
   hostname jandakot
 
   hostname jandakot
Line 42: Line 42:
  
  
The null route allows us to consolidate all routes for the /24 subnet that this router is responsible for, and will cause it to propagate a single route for the entire /24 subnet, rather than multiple routes for the smaller subnets inside 10.60.86.0/24.
+
==Referensi==
 +
 
 +
* https://openmaniak.com/quagga_tutorial.php
 +
 
 +
==Pranala Menarik==
 +
 
 +
* [[OpenWRT]]

Latest revision as of 13:45, 12 January 2022

sumber: https://openmaniak.com/quagga_tutorial.php


Install

opkg update
opkg install quagga


Quagga Daemon

Restart Quagga service:

/etc/init.d/quagga restart

Cek

ps


Konfigurasi

File /etc/quagga/zebra.conf:

 hostname jandakot
 ! define password for bgpd daemon (for connecting to daemon via telnet)
 password insertpasswordhere
 ! define enable password for bgpd daemon (for connecting to daemon via telnet)
 enable password insertpasswordhere
 !
 ! list interfaces
 interface eth1
 interface vlan0
 interface vlan1
 interface lo
 !
 ! null route to consolidate all subnets in this /24
 ip route 10.60.86.0/24 Null0 255
 !
 line vty


Referensi

Pranala Menarik