Cisco | Dasar iBGP dan eBGP Peering
Mapping IP Address Tabel
Device |
Interface |
IP |
Gateway |
R1 |
Fa0/0 |
12.12.12.1/24 |
|
Fa0/1 |
192.168.10.1/24 |
||
Loopback1 |
1.1.1.1/32 |
||
R2 |
Fa0/0 |
12.12.12.2/24 |
|
Fa0/1 |
13.13.13.2/24 |
||
Loopback1 |
2.2.2.2/32 |
||
R3 |
Fa0/0 |
13.13.13.3/24 |
|
Fa0/1 |
192.168.20.1/24 |
||
Loopback1 |
3.3.3.3/32 |
||
PC-1 |
192.168.10.2 |
192.168.10.1 |
|
PC-2 |
|
192.168.20.2 |
192.168.20.1 |
Router R1 dan R2 dalam dalam number yang sama yakni AS 12, sdangkan R3 number AS 3.
Konfigurasi R1
R1#configure
R1(config)#interface t
R1(config)#interface fa0/0
R1(config-if)#ip address 12.12.12.1 255.255.255.0
R1(config-if)#no sh
R1(config)#interface fa0/1
R1(config-if)#ip address 192.168.10.1 255.255.255.0
R1(config-if)#no shu
R1(config)#interface lo2
R1(config-if)#ip address 1.1.1.1 255.255.255.255
R1(config-if)#exit
Lakukan advertise network ke BGP
R1(config)#router bgp 12
R1(config-router)#neighbor 12.12.12.2 remote-as 12
R1(config-router)#network 2.2.2.2 mask 255.255.255.255
R1(config-router)#network 192.168.10.0 mask 255.255.255.0
Konfigurasi R2
R2#configure
R2(config)#interface fa0/0
R2(config-if)#ip address 12.12.12.2 255.255.255.0
R2(config-if)#no sh
R2(config)#interface fa0/1
R2(config-if)#ip address 13.13.13.2 255.255.255.0
R2(config-if)#no sh
R2(config)#interface lo1
R2(config-if)#ip address 2.2.2.2 255.255.255.255
Advertise network ke BGP
R2(config)#router bgp 12
R2(config-router)#neighbor 12.12.12.1 remote-as 12
R2(config-router)#network 2.2.2.2 mask 255.255.255.255
Advesrtise network 13.13.13.0/24 di R2 supaya network pada R3 bisa muncul di route table di R1, sehingga R3 bisa ping ke IP loopback R1.
R2(config-router)#neighbor 13.13.13.3 remote-as 3
R2(config-router)#network 13.13.13.0 mask 255.255.255.0
Konfigurasi R3
R3(config)#interface fa0/1
R3(config-if)#ip address 13.13.13.3 255.255.255.0
R3(config-if)#no sh
R3(config)#interface fa0/0
R3(config-if)#ip address 192.168.20.1 255.255.255.0
R3(config-if)#no sh
R3(config)#interface lo1
R3(config-if)#ip address 3.3.3.3 255.255.255.255
Lakukan advertise network ke BGP
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
R3(config-router)#network 192.168.20.0 mask 255.255.255.0
R3(config-router)#do wr
Verifikasi dari R1 dan R3
Perhatikan bahwa State/PfxRcd nilainya 5 artinya ada 5 network yg di masuk pada routing table R3. Lanjutkan cek dengan perintah show ip route, namapak bahwa ada 5 network yang masuk.
Verfikasi dengan testing (PING) dari R1 ke R3 dan dari PC-1 ke PC-2 dan sebaliknya.
Test PING dari PC-1 ke PC-2
Succsess...!!!,
Lakukan PING dari PC-2 ke PC-1, seharunsya berhasil. Jika gagal, kemungkinan ada konfigurasi yang salah.
Verifikasi or TSHOOT
show ip bgp
show ip bgp sum
show ip rou
show run | s router bgp
Posting Komentar untuk "Cisco | Dasar iBGP dan eBGP Peering"