Created
December 8, 2016 03:51
-
-
Save mb00g/3357255ebbd165c698a95dd2b8f03cab to your computer and use it in GitHub Desktop.
Konfigurasi Bird Peering v4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
log syslog all; | |
router id 203.161.185.193; | |
### AS Number Jogjacamp | |
define myas = 46050; | |
### Fungsi List IP JCAMP yang di Advertise | |
function jcamp_ip() | |
prefix set allip; | |
{ | |
allip = [ 203.161.184.0/23{23,24}, 103.30.144.0/23{23,24} ]; | |
if net ~ allip then return true; | |
return false; | |
} | |
### Fiter JCAMP Export | |
filter jcamp_export | |
{ | |
if (jcamp_ip()) then accept; | |
reject; | |
} | |
### BGP ingress filters | |
filter jcamp_import { | |
if net ~ [169.254.0.0/16+, 172.16.0.0/12+, 224.0.0.0/4+, 240.0.0.0/4+] | |
then { reject; } | |
else accept; | |
} | |
protocol device { | |
scan time 10; | |
} | |
protocol kernel { | |
export all; | |
scan time 15; | |
persist; # Don't remove routes on bird shutdown | |
scan time 20; # Scan kernel routing table every 20 seconds | |
import all; # Default is import all | |
export all; # Default is export none | |
} | |
### Static Routing | |
protocol static { | |
route 103.30.144.0/24 via 203.161.185.194; | |
route 103.30.145.0/24 via 203.161.185.194; | |
route 203.161.184.0/24 via "eth5"; | |
route 203.161.185.0/24 via "eth5"; | |
route 203.161.185.208/30 via 203.161.185.194; | |
} | |
### BGP Peering | |
protocol bgp eBGP_GMEDIA { | |
import filter jcamp_import; | |
export filter jcamp_export; | |
description "eBGP-GMEDIA"; | |
local as myas; | |
source address 49.128.177.198; | |
neighbor 49.128.177.197 as 55666; | |
} | |
protocol bgp eBGP_CITRA { | |
import filter jcamp_import; | |
export filter jcamp_export; | |
description "eBGP-CITRA_IX"; | |
local as myas; | |
source address 202.152.133.2; | |
neighbor 202.152.133.1 as 23951; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment