LAB 3. eBGP Peering
Metode Lab
- Konfigurasi pengalamatan IP sesuai topologi diatas
- Konfigurasikan iBGP Peers antara R1 dan R2
- BGP Peersnya menggunakan IP Interface Physycalnya
- Interface Loopback untuk diadvertise ke BGP
Peering BGP bisa menggunakan IP Interface physycal ataupun IP Loopback, umumnya pada iBGP menggunakan IP Loopback, sedangkan eBGP IP Interface Physical. Berikut kita belajar melakukan peering dari IP interface physical. Router R1 dan R2
Kita konfigurasi terlebih dahulu IP address pada f1/0 di Router 2
R2
R2(config)#int f1/0
R2(config-if)#ip add 23.23.23.2 255.255.255.0
R2(config-if)#no shutdown
Sekarang kita mengkonfigurasi IP Address pada router 3
R3
R3(config)#int f0/0
R3(config-if)#ip add 23.23.23.3 255.255.255.0
R3(config-if)#no shutdown
R3(config-if)#exit
R3(config)#int loopback0
R3(config-if)#ip add 3.3.3.3 255.255.255.255
R3(config-if)#exit
Nah.. sekarang konfigurasi BGP
R2
R2(config)#router bgp 12
R2(config-router)#neighbor 23.23.23.3 remote-as 3
R3
R3(config)#router bgp 3
R3(config-router)#neighbor 23.23.23.2 remote-as 12
R3(config-router)#network 3.3.3.3 mask 255.255.255.255
Lalu cek BGP Peernya...
R3
R3#sh ip bgp summary
BGP router identifier 3.3.3.3, local AS number 3
BGP table version is 4, main routing table version 4
3 network entries using 396 bytes of memory
3 path entries using 156 bytes of memory
4/3 BGP path/bestpath attribute entries using 672 bytes of memory
1 BGP AS-PATH entries using 24 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
Bitfield cache entries: current 1 (at peak 1) using 32 bytes of memory
BGP using 1280 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
23.23.23.2 4 12 7 5 4 0 0 00:02:15 2
Sekarang terlihat sudah ada 2 route
R3
R3#sh ip bgp
BGP table version is 4, local router ID is 3.3.3.3
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale '
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
*> 3.3.3.3/32 0.0.0.0 0 32768 i
*> 11.11.11.11/32 23.23.23.2 0 12 i
*> 22.22.22.22/32 23.23.23.2 0 0 12 i
Sekarang kita cek dengan melakukan tes ping
R3
R3#ping 11.11.11.11
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 11.11.11.11, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5)
Tidak bisa di ping
R1
R1#sh ip bgp
BGP table version is 3, local router ID is 11.11.11.11
Status codes: s \uppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
* i3.3.3.3/32 23.23.23.3 0 100 0 3 i
*> 11.11.11.11/32 0.0.0.0 0 32768 i
*>i22.22.22.22/32 2.2.2.2 0 100 0 i
Sekarang kita cek routing table di R1
R1
R1#sh ip route bgp
22.0.0.0/32 is subnetted, 1 subnets
B 22.22.22.22 [200/0] via 2.2.2.2, 03:05:04
Sekarang kita bisa melihat bahwa tidak ada satupun route yang berasal dari R3 .
Ada beberapa cara yang bisa kita lakukan, salah satunya yaitu mengadvertise
network
23.23.23.0 ke BGP pada R2.
R2
R2(config)#router bgp 12
R2(config-router)#network 23.23.23.0 mask 255.255.255.0
Sekarang kita cek lagi di R1
R1
R1#sh ip bgp
BGP table version is 5, local router ID is 11.11.11.11
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
*>i3.3.3.3/32 23.23.23.3 0 100 0 3 i
*> 11.11.11.11/32 0.0.0.0 0 32768 i
*>i22.22.22.22/32 2.2.2.2 0 100 0 i
*>i23.23.23.0/24 2.2.2.2 0 100 0 i
Kita coba lakukan tes ping kembali dari R3
R3
R3#ping 11.11.11.11
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 11.11.11.11, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 28/36/44 ms
Akhirnya berhasil reply. Sekarang kita melakukan ping dari R1.
R1
R1#ping 3.3.3.3
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 3.3.3.3, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5)
R3
R3#show ip route
3.0.0.0/32 is subnetted, 1 subnets
C 3.3.3.3 is directly connected, Loopback0
11.0.0.0/32 is subnetted, 1 subnets
B 11.11.11.11 [20/0] via 23.23.23.2, 00:10:51
22.0.0.0/32 is subnetted, 1 subnets
B 22.22.22.22 [20/0] via 23.23.23.2, 00:10:51
23.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 23.23.23.0/24 is directly connected, FastEthernet0/0
L 23.23.23.3/32 is directly connected, FastEthernet0/0
Setelah kita cek ternyata hanya ip 11.11.11.11 saja, maka gunakan sebagai sourcenya.
R1
R1#ping 3.3.3.3 source 11.11.11.11
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 11.11.11.11
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 32/40/44 ms
Sekarang kita lakukan ping dengan cara yang sama,bisa
dilakukan yaitu mengadvertise network 12.12.12.0 ke BGP pada R1.
R1
R1(config)#router bgp 12
R1(config-router)#network 12.12.12.0 mask 255.255.255.0
Cek R3 dahulu, pastikan network 12.12.12.0 terkenali
R3
R3#sh ip route bgp
22.0.0.0/32 is subnetted, 1 subnets
B 22.22.22.22 [20/0] via 23.23.23.2, 02:28:19
11.0.0.0/32 is subnetted, 1 subnets
B 11.11.11.11 [20/0] via 23.23.23.2, 02:28:19
12.0.0.0/24 is subnetted, 1 subnets
B 12.12.12.0 [20/0] via 23.23.23.2, 00:01:51
Setelah itu kita lakukan tes ping kembali pada R1 tanpa menggunakan source
R1
R1(config)#do ping 3.3.3.3
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 3.3.3.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 28/35/40 ms
Tidak ada komentar:
Posting Komentar