1. Tujuan Lab
- Mempelajari bagaimana mengkonfigurasikan Peers iBGP menggunakan IP interface loopback
- Untuk mengingat kembali konfigurasi dari IGP maupun static route
3. Metode Lab :
- Konfigurasikan IP address standard IDN, klik disini
- Konfigurasikan routing IGP atau static route agar loopbacknya reachable
- Konfigurasikan iBGP Peers menggunakan IP loopbacknya
- Buat IP loopback baru untuk di advertise ke BGP
Setelah kita konfigurasi IP nya, kita konfig IGP nya, saya menggunakan RIPv2
R1#conf t
R1(config)#router rip
R1(config-router)#ver 2
R1(config-router)#net 12.12.12.0
R1(config-router)#net 1.1.1.1
R1(config-router)#
R2#conf t
R2(config)#router rip
R2(config-router)#ver 2
R2(config-router)#net 12.12.12.0
R2(config-router)#net 23.23.23.0
R2(config-router)#net 2.2.2.2
R3#conf t
R3(config)#router rip
R3(config-router)#ver 2
R3(config-router)#net 23.23.23.0
R3(config-router)#net 3.3.3.3
Pastikan antar loopback saling reachable
R1(config-router)#do ping 2.2.2.2 so lo0
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2.2.2.2, timeout is 2 seconds:
Packet sent with a source address of 1.1.1.1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 40/64/96 ms
R1(config-router)#do ping 3.3.3.3 so lo0
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 3.3.3.3, timeout is 2 seconds:
Packet sent with a source address of 1.1.1.1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 52/71/80 ms
Oke, sekarang kita masuk ke konfig BGP nya. Nah, sesuai rencana, kita menggunakan loopback untuk peers nya.
R1(config-router)#router bgp 12
R1(config-router)#nei 2.2.2.2 remote-as 12
R1(config-router)#nei 2.2.2.2 update-source lo0
R2(config-router)#net 2.2.2.2
R2(config-router)#router bgp 12
R2(config-router)#nei 1.1.1.1 remote-as 12
R2(config-router)#nei 1.1.1.1 update-source lo0*Jun 27 15:51:08.667: %BGP-5-ADJCHANGE: neighbor 1.1.1.1 Up
R2(config-router)#nei 1.1.1.1 update-source lo0
R2(config-router)#nei 3.3.3.3 remote-as 12
R2(config-router)#nei 3.3.3.3 update-source lo0
R3(config-router)#router bgp 12
R3(config-router)#nei 2.2.2.2 remote-as 12*Jun 27 15:52:34.587: %BGP-5-ADJCHANGE: neighbor 2.2.2.2 Up
R3(config-router)#nei 2.2.2.2 update-source lo0
Kita cek konfigurasi BGP
R2(config-router)#do sh ip bgp sum
BGP router identifier 22.22.22.22, local AS number 12
BGP table version is 1, main routing table version 1
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
1.1.1.1 4 12 5 5 1 0 0 00:02:30 0
3.3.3.3 4 12 4 3 1 0 0 00:01:14 0
Kita advertise network ke BGP
R1(config-router)#router bgp 12
R1(config-router)#net 11.11.11.11 mask 255.255.255.255
R2(config-router)#router bgp 12
R2(config-router)#net 22.22.22.22 mask 255.255.255.255
R3(config-router)#router bgp 12
R3(config-router)#net 33.33.33.33 mask 255.255.255.255
Verifikasi :
R2(config-router)#do sh ip bgp sum
BGP router identifier 22.22.22.22, local AS number 12
BGP table version is 4, main routing table version 4
3 network entries using 432 bytes of memory
3 path entries using 240 bytes of memory
2/2 BGP path/bestpath attribute entries using 272 bytes of memory
0 BGP route-map cache entries using 0 bytes of memory
0 BGP filter-list cache entries using 0 bytes of memory
BGP using 944 total bytes of memory
BGP activity 3/0 prefixes, 3/0 paths, scan interval 60 secs
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
1.1.1.1 4 12 12 11 4 0 0 00:07:38 1
3.3.3.3 4 12 10 9 4 0 0 00:06:22 1
Nah, sekarang pada kolom State/PfxRcd sudah berganti menjadi angka 1 yang berarti sudah menerima update route yang di advertise dari router tetangga.
0 komentar:
Posting Komentar