1. Topologi Lab
2. Metode Lab
- Konfigurasikan iBGP antara IDN-R1 dan IDN-R2
- Konfigurasikan eBGP antara IDN-R2 dan IDN-R3
- Advertise masing - masing loopback ke BGP
- Gunakan pengalamatan IP standrad IDN or klik disini
- Pastikan BGP adjacency terbentuk, ketik show ip bgp summary
- Pastikan ada route yang diadvertise, ketik show ip bgp
- Periksa nilai next-hop sebelum dan sesudah dikonfigurasi next-hop-self
IDN-R1(config)#router bgp 12
IDN-R1(config-router)#nei 12.12.12.2 remote-as 12*Mar 1 00:01:56.491: %BGP-5-ADJCHANGE: neighbor 12.12.12.2 Up
IDN-R1(config-router)#net 1.1.1.1 mask 255.255.255.255
IDN-R2(config)#router bgp 12
IDN-R2(config-router)#nei 12.12.12.1 remote-as 12
*Mar 1 00:01:44.671: %BGP-5-ADJCHANGE: neighbor 12.12.12.1 Up
IDN-R2(config-router)#net 2.2.2.2 mask 255.255.255.255
IDN-R2(config-router)#nei 23.23.23.3 remote-as 3*Mar 1 00:03:20.939: %BGP-5-ADJCHANGE: neighbor 23.23.23.3 Up
IDN-R3(config)#router bgp 3
IDN-R3(config-router)#nei 23.23.23.2 remote-as 12
IDN-R3(config-router)#net 3.3.3.3 mask 255.255.255.255*Mar 1 00:03:29.935: %BGP-5-ADJCHANGE: neighbor 23.23.23.2 Up
Kita cek ip bgp di IDN-R1
IDN-R1#sh ip bgp
BGP table version is 3, local router ID is 1.1.1.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
* i3.3.3.3/32 23.23.23.3 0 100 0 3 i
Tidak ada tanda ">" pada network 3.3.3.3 karena nexthop nya unreachable. Solusinya adalah dengan menjadikan IDN-R2 sebagai nexthop menuju IDN-R3
IDN-R2(config)#router bgp 12
IDN-R2(config-router)#nei 12.12.12.1 next-hop-self
Perhatikan lagi ip bgp di IDN-R1, perhatikan juga nexthop nya
IDN-R1#sh ip bgp
BGP table version is 4, local router ID is 1.1.1.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
*>i3.3.3.3/32 12.12.12.2 0 100 0 3 i
Oke, sekarang network 3.3.3.3 sudah menjadi best dengan 12.12.12.2 sebagai next hop nya. Sekarang coba ping dari IDN-R1 ke IDN-R3
IDN-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)
Ternyata masih gagal, coba kita lihat dulu route tabel di R3
IDN-R3#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
B 1.1.1.1 [20/0] via 23.23.23.2, 00:14:37
2.0.0.0/32 is subnetted, 1 subnets
B 2.2.2.2 [20/0] via 23.23.23.2, 00:14:37
3.0.0.0/32 is subnetted, 1 subnets
C 3.3.3.3 is directly connected, Loopback0
23.0.0.0/24 is subnetted, 1 subnets
C 23.23.23.0 is directly connected, FastEthernet0/0
Ternyata di IDN-R3 cuma mengenali ip loopback dari IDN-R1 yaitu 1.1.1.1 , maka kita bisa melakukan ping dari IDN-R1 dengan menggunakan source ip yang dikenali tersebut.
IDN-R1#ping 3.3.3.3 source 1.1.1.1
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 = 36/74/116 ms
Dan hasilnya langsung repply.
0 komentar:
Posting Komentar