TUJUAN :
- Mempelajari bagaimana mengkonfigurasikan peers BGP Internal yakni antar router yang memiliki AS number yang sama (AS 12), antara R1 dan R2.
- Gunakan topologi diatas, kemudian konfigurasikan alamat IP addressnya.
- Konfigurasikan iBGP Peers antara R1 dan R2 menggunakan AS12
- BGP Peers nya menggunakan IP interface Physicalnya
- Buat interface Loopback untuk diadvertise ke BGP
- Pastikan BGP adjacency terbentuk dengan mengetik "show ip bgp summary"
- Pastikan ada route yang di advertise ke BGP, ketik "show ip bgp"
- Pastikan route yang diadvertise ke BGP masuk dalam routing tabelnya, ketik "show ip route bgp"
- Pastikan ip loopback R1 dan R2 bisa saling diping oleh keduanya
Router 1
R1(config)#int fa0/0
R1(config-if)#ip add 12.12.12.1 255.255.255.0
R1(config-if)#no shut
R1(config-if)#router bgp 12
R1(config-router)#neighbor 12.12.12.2 remote-as 12
Router 2
R2(config)#int fa0/0
R2(config-if)#ip add 12.12.12.2 255.255.255.0
R2(config-if)#no shut
R2(config)#router bgp 12
R2(config-router)#neighbor 12.12.12.1 remote-as 12
tunggu beberapa saat hingga muncul
R1#
*Mar 1 00:03:30.567: %BGP-5-ADJCHANGE: neighbor 12.12.12.2 Up
R2#
*Mar 1 00:03:43.703: %BGP-5-ADJCHANGE: neighbor 12.12.12.1 Up
VERIFIKASI
R1#sh ip bgp summary
BGP router identifier 12.12.12.1, 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
12.12.12.2 4 12 5 5 1 0 0 00:02:05 0
Lakukan advertise suatu route ke BGP
R1(config)#int lo1
R1(config-if)#ip add 1.1.1.1 255.255.255.255
R1(config)#router bgp 12
R1(config-router)#net 1.1.1.1 mask 255.255.255.255
R2(config)#int lo1
R2(config-if)#ip add 2.2.2.2 255.255.255.255
R2(config-if)#router bgp 12
R2(config-router)#net 2.2.2.2 mask 255.255.255.255
verifikasi
R1#sh ip bgp summary
BGP router identifier 12.12.12.1, local AS number 12
BGP table version is 3, main routing table version 3
2 network entries using 240 bytes of memory
2 path entries using 104 bytes of memory
3/2 BGP path/bestpath attribute entries using 372 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 748 total bytes of memory
BGP activity 2/0 prefixes, 2/0 paths, scan interval 60 secs
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
12.12.12.2 4 12 12 12 3 0 0 00:08:10 1
untuk mengecek route apa saja yang diadvertise ke BGP, gunakan perintah "sh ip bgp"
R1#sh ip bgp
BGP table version is 3, local router ID is 12.12.12.1
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
*> 1.1.1.1/32 0.0.0.0 0 32768 i
*>i2.2.2.2/32 12.12.12.2 0 100 0 i
cek routing tabel
R1#show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Gateway of last resort is not set
1.0.0.0/32 is subnetted, 1 subnets
C 1.1.1.1 is directly connected, Loopback1
2.0.0.0/32 is subnetted, 1 subnets
B 2.2.2.2 [200/0] via 12.12.12.2, 00:03:11
12.0.0.0/24 is subnetted, 1 subnets
C 12.12.12.0 is directly connected, FastEthernet0/0
R1#ping 2.2.2.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2.2.2.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 16/42/80 ms
0 komentar:
Posting Komentar