Lab27. BGP Attribute (Community)

bgpattributecommunityObjective

  • Mempelajari salah satu attribut pada BGP yakni community
  • Attribute community terbagi menjadi 4 yakni no-export, no advertise, internet dan local-as

Metode Lab

  • Gunakan pengalamatan alamat IP sesuai topologi diatas
  • Gunakan EIGRP pada R1, R2 dan R3 agar ip loopback0 nya reachable dari ketiga router tersebut
  • Konfigurasikan iBGP peers dengan IP loopback antara R1, R2 dan R3 dimana R2 dijadikan sebagai RRnya
  • Buat IP loopbac1 kemudian advertise ke BGP
  • Konfigurasikan eBGP peers dengan IP Physical antara R2 dan R4

Verifikasi

  • Konfigurasikan NO-EXPORT di R1, cek BGP route di R4 baik sebeum maupun sesudah NO-EXPORT dikonfigurasikan
  • Konfigurasi NO-ADVERTISE di R3, cek BGP route di R1 dan R4 baik sebelum maupun sesudah NO-EXPORT dikonfigurasikan
  • Buat BGP Confederation antara R1 dan R2 dan R3, konfigurasikan local-as di R1, cek BGP route di R2 dan R3

Konfigurasi Router

Konfigurasi R1
R1(config)#router eigrp 1
R1(config-router)#net 1.1.1.1 0.0.0.0
R1(config-router)#net 11.11.11.1 0.0.0.0
R1(config-router)#router bgp 123
R1(config-router)#neigh 2.2.2.2 remote-as 123
R1(config-router)#neigh 2.2.2.2 up lo0
R1(config-router)#net 10.10.10.10 mask 255.255.255.255

Konfigurasi R2
R2(config-if)#router eigrp 1
R2(config-router)#net 11.11.11.2 0.0.0.0
R2(config-router)#net 13.13.13.2 0.0.0.0
R2(config-router)#net 2.2.2.2 0.0.0.0
R2(config-router)#router bgp 123
R2(config-router)#neigh 12.12.12.4 remote-as 4
R2(config-router)#neigh 1.1.1.1 remote-as 123
R2(config-router)#neigh 1.1.1.1 up lo0
R2(config-router)#neigh 1.1.1.1 next-hop-self
R2(config-router)#neigh 1.1.1.1 route-reflector-client
R2(config-router)#neigh 3.3.3.3 remote-as 123
R2(config-router)#neigh 3.3.3.3 up lo0
R2(config-router)#neigh 3.3.3.3 next-hop-self
R2(config-router)#neigh 3.3.3.3 route-reflector-client
R2(config-router)#net 20.20.20.20 mask 255.255.255.255

Konfigurasi R3
R3(config-if)#router eigrp 1
R3(config-router)#net 13.13.13.3 0.0.0.0
R3(config-router)#net 3.3.3.3 0.0.0.0
R3(config-router)#router bgp 123
R3(config-router)#neigh 2.2.2.2 remote-as 123
R3(config-router)#neigh 2.2.2.2 up lo0
R3(config-router)#net 33.33.33.33 mask 255.255.255.255

Konfigurasi R4
R4(config-if)#router bgp 4
R4(config-router)#neigh 12.12.12.2 remote-as 123
R4(config-router)#net 4.4.4.4 mask 255.255.255.255

Cek bgp route di R1 dan R4

12Set community “no-export” di R1 (no-export tidak diadvertise ke eBGP)
R1(config)#access-list 1 permit host 10.10.10.10
R1(config)#route-map NO-EXPORT
R1(config-route-map)#match ip addr 1
R1(config-route-map)#set community no-export
R1(config-route-map)#router bgp 123
R1(config-router)#neigh 2.2.2.2 route-map NO-EXPORT out
R1(config-router)#neigh 2.2.2.2 send-community

Cek bgp route di R4 pastikan network 10.10.10.10/32 sudah tidak ada
4
3
5Set comunity “no-advertise” di R3 (no-export tidak diadvertise ke iBGP/eBGP)
R3(config)#access-list 1 permit host 33.33.33.33
R3(config)#route-map NO-ADVERTISE
R3(config-route-map)#match ip address
R3(config-route-map)#set community no-advertise
R3(config-router)#neigh 2.2.2.2 route-map NO-ADVERTISE out
R3(config-router)#neigh 2.2.2.2 send-community

Cek bgp route di R1 dan pada R4 pastikan network 33.33.33.33/32 sudah tidak ada
678Set community “local-AS” di R1 (diadvertise hanya di confederation iBGP saja). Artinya konfigurasi iBGP (R1, R2, & R3) harus dirubah dari Route Reflector menjadi Confederation.

R1(config)#no router bgp 123
R1(config)#router bgp 12
R1(config-router)#bgp confederation identifier 123
R1(config-router)#network 10.10.10.10 mask 255.255.255.255
R1(config-router)#neighbor 11.11.11.2 remote-as 12
R1(config-router)#exit
R1(config)#access-list 2 permit host 10.10.10.10
R1(config)#route-map LOCAL-AS
R1(config-route-map)#match ip address 2
R1(config-route-map)#set community local-AS
R1(config-route-map)#router bgp 12
R1(config-router)#neigh 11.11.11.2 route-map LOCAL-AS out
R1(config-router)#neigh 11.11.11.2 send-community

R2(config)#no router bgp 123
R2(config)#router bgp 12
R2(config-router)#bgp confederation identifier 123
R2(config-router)#bgp confederation peers 3
R2(config-router)#neigh 12.12.12.4 remote-as 4
R2(config-router)#neigh 11.11.11.1 remote-as 12
R2(config-router)#neigh 11.11.11.1 next-hop-self
R2(config-router)#neigh 13.13.13.3 remote-as 3
R2(config-router)#neigh 13.13.13.3 next-hop-self
R2(config-router)#net 20.20.20.20 mask 255.255.255.255

R3(config)#no router bgp 123
R3(config)#router bgp 3
R3(config-router)#bgp confederation identifier 123
R3(config-router)#bgp confederation peers 12
R3(config-router)#neigh 13.13.13.2 remote-as 12
R3(config-router)#network 33.33.33.33 mask 255.255.255.255

Cek bgp route di R2 dan pada R3 pastikan network 10.10.10.10/32 sudah tidak ada
91011donwnload file http://adf.ly/Sfd8K

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s