Home > World Of ICT > Mamamia.. BGP is UP, tante SUN looks pretty with thousand prefix there

Mamamia.. BGP is UP, tante SUN looks pretty with thousand prefix there


Ba’da Jum’at mendadak hujan lebat, membuat saya tidak bisa bergegas  segera kembali ke tempat workshop DISDIK Provinsi (Untung masih ada temen konsultan dari FKIP yg standby), akhirnya saya dan teman teman yang tergabung di BBS Unilanet memutuskan untuk melanjutkan perjuangan aktifasi Autonomous Number (ASN) hasil jerih payah request ke APNIC. Singkat cerita meebo langsung saya onlineken untuk bisa berkomunikasi via Yahoo Messanger ke rekan rekan NOC Moratelindo agar lebih interaktif.

Sebelumnya sempat bingung perangkat dan system  apa yang cocok untuk  digunakan, pilihannya Mikrotik, Cisco 7606, FreeBSD+Quagga, Linux+Quagga.  Fikir punya fikir ambil keputusan untuk memberdayagunakan server SUNFIRE X4100 dicombine dengan FreeBSD dan Quagga untuk handle prefix ASN.  Perfecto combine Mas Bro..

Quick And Dirty nya kita kira Begini;

  • Install FreeBSD; yang ini di skip saja karena sudah running dan established berfungsi sebagai existing DMZ server , DMZ# uname -a
     FreeBSD DMZ.unila.ac.id 8.1-RELEASE FreeBSD 8.1-RELEASE #1: Sun Jan  9 15:53:52 WIT 2011     gigih@DMZ.unila.ac.id:/usr/obj/usr/src/sys/GENERIC  amd64
     DMZ#
  • Lanjut ke Pasang Packet Filter; yang ini juga skip saja gampang kok tinggal modil di kernel enable Paket Filter saja.
  • Aktifkan IP P2P, gampangnya ambil /30 saja, satu di sisi kita, satu disisi Provider.
  • Pasang Quagga.
  • DMZ# cd /usr/ports/net/quagga/
     DMZ# make clean
     ===>  Cleaning for quagga-0.99.16
     DMZ# make && make install
     =============================================================
     ===>  Vulnerability check disabled, database not found
     ===>  License check disabled, port has not defined LICENSE
     ===>  Found saved configuration for quagga-0.99.16
     ===>  Extracting for quagga-0.99.16
     => MD5 Checksum OK for quagga-0.99.16.tar.gz.
     => SHA256 Checksum OK for quagga-0.99.16.tar.gz.
     ===>   quagga-0.99.16 depends on file: /usr/local/bin/perl5.10.1 - found
     ===>  Patching for quagga-0.99.16
     ===>   quagga-0.99.16 depends on file: /usr/local/bin/perl5.10.1 - found
     ===>  Applying FreeBSD patches for quagga-0.99.16
     ===>   quagga-0.99.16 depends on executable: gawk - found    ## Tunggu sampe beress

  • Modifikasi file rc.conf
  • DMZ# grep quagga /etc/rc.conf
     quagga_enable="YES"
     DMZ#
  • Tinggal buat zebra.conf dan bgpd.conf dibawah direktori /usr/loca/etc/quagga
  • DMZ# more  bgpd.conf
     !
     ! Zebra configuration saved from vty
     !   2011/05/20 14:12:48
     !
     hostname unila-gw-int1
     password PaswordaneOK
     log stdout
     !
     router bgp 56237  --->>>>>>>> isikan dengan Alokasi ASN yg sudah di Dapat dari APNIC
     bgp router-id 27.50.31.178  ----->  Identitas Ipv4 ASN yang kita miliki
     neighbor 27.50.31.177 remote-as 23947 ------> Identitas  AS Neighbour , biasanya ini adalah AS ISP kita
     !
     line vty
     !
     DMZ#
  • Yak beres tinggal lihat status neighbor dgn perintah berikut
  • bgpd# show ip bgp neighbors
     BGP neighbor is 27.50.31.177, remote AS 23947, local AS 56237, external link
     BGP version 4, remote router ID 10.0.1.1
     BGP state = Established, up for 01:40:19
     Last read 08:33:31, hold time is 90, keepalive interval is 30 seconds
     Neighbor capabilities:
     4 Byte AS: advertised and received
     Route refresh: advertised and received(new)
     Address family IPv4 Unicast: advertised and received
     Message statistics:
     Inq depth is 0
     Outq depth is 0
     Sent       Rcvd
     Opens:                  7          0
     Notifications:          0          1
     Updates:                3      77837
     Keepalives:           204        199
     Route Refresh:          0          0
     Capability:             0          0
     Total:                214      78037
     Minimum time between advertisement runs is 30 secondsFor address family: IPv4 Unicast
     Community attribute sent to this neighbor(both)
     356906 accepted prefixesConnections established 2; dropped 1
     Last reset 01:44:46, due to BGP Notification received
     Local host: 27.50.31.178, Local port: 179
     Foreign host: 27.50.31.177, Foreign port: 57299
     Nexthop: 27.50.31.178
     Nexthop global: ::
     Nexthop local: ::
     BGP connection: non shared network
     Read thread: on  Write thread: offbgpd#
  • Dan sekali lagi untuk membuktikan apakah prefix length  sudah masuk bisa menggunakan perintah summary.
  • bgpd# show bgp ipv4 unicast
     statistics  BGP RIB advertisement statistics
     bgpd# show bgp ipv4 unicast s
     bgpd# show bgp ipv4 unicast statistics
     BGP IPv4 Unicast RIB statistics
     Total Advertisements          :       356905
     Total Prefixes                :       356905
     Average prefix length         :        22.32
     Unaggregateable prefixes      :       176756
     Maximum aggregateable prefixes:       180149
     BGP Aggregate advertisements  :        21367
     Address space advertised      :   2432448184
     %% announced :        56.63
     /8 equivalent :       144.99
     /24 equivalent :   9501751.00
     Advertisements with paths     :       356905
     Longest AS-Path (hops)        :           24
     Average AS-Path length (hops) :         4.44
     Largest AS-Path (bytes)       :           98
     Average AS-Path size (bytes)  :        19.77
     Highest public ASN            :     12911193
     bgpd#
  • Indah kan saudara saudara… sudah terima 350 rebu prefix,

Besok lanjut untuk migrasi IPv4 /24 (kelas C) .

Salam Hangat….

  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: