BGP COMMUNITY LIST - BGP #9
BGP COMMUNITY LIST - BGP
Alat dan Bahan :
- Laptop / PC
- EVE NG
nah untuk lab ini membahas lab BGP community list berfungsi untuk, agar path pada tiap router menjadi jauh saat pengiriman paket nya ibarat perputaran paket, dengan metode yang digunakan yaitu tiap router menggunakan AS yang berbeda sehingga lab kali ini full EBGP.
perhatikan topologi berikut,
yang pertama dilakukan yaitu konfigurasi neighbor pada tiap router yang berbeda AS nya,
R-1(config)#router bgp 1
R-1(config-router)#neighbor 10.10.10.2 remote-as 2
R-2(config)#router bgp 2
R-2(config-router)#neighbor 10.10.10.1 remote-as 1
R-2(config-router)#neighbor 30.30.30.2 remote-as 4
R-2(config-router)#neighbor 20.20.20.2 remote-as 3
R-3(config)#router bgp 3
R-3(config-router)#neighbor 20.20.20.1 remote-as 2
R-4(config)#router bgp 4
R-4(config-router)#neighbor 30.30.30.1 remote-as 2
R-4(config-router)#net 4.4.4.4 mask 255.255.255.255
kemudian dilanjutkan dengan membuat konfigurasi community list nya pada router tengah yaitu router-2,
R-2(config)#ip community-list 1 permit 2:24
R-2(config)#route-map prepend permit 20
R-2(config-route-map)#match community 1
R-2(config-route-map)#set as prepend 2 2 2 2
R-2(config)#router bgp 2
R-2(config-router)#neighbor 20.20.20.2 route-map prepend out --> Kunci utama Community list
kemudian selanjutnya ke konfigurasi pembuatan prefix-list pada loopback pada router-4 agar masih bisa teradvertise pada router-2
R-4(config)#ip prefix-list loopback permit 4.4.4.4/32
R-4(config)#route-map prepend_community permit 10
R-4(config-route-map)#match ip address prefix-list loopback
R-4(config-route-map)#set community 2:24
R-4(config)#router bgp 4
R-4(config-router)#neighbor 30.30.30.1 route-map prepend_community out --> kunci utama community list
R-4(config-router)#neighbor 30.30.30.1 send-community
R-4(config)#do clear ip bgp * --> Clear IP
Komentar
Posting Komentar