Lab 30. eBGP Peering
Sebelumnya sudah dibahas tentang iBGP peering next eBGP peer. External BGP digunakan untuk menghubungkan AS yang berbeda, ingat pada eBGP peer tidak bisa menggunakan IP loopback jadi gunakanlah IP fisik interface..
R1
Buat interface loopback untuk peering iBGP dan advertise menggunakan ospf
interface Loopback0
ip address 1.1.1.1 255.255.255.255
ip ospf 1 area 0
Set IP interface dan advertise juga ke ospf
interface FastEthernet0/0
ip address 12.12.12.1 255.255.255.0
ip ospf 1 area 0
Buat routing OSPF untuk menghubungkan IP loopback
router ospf 1
log-adjacency-changes
Buat routing BGPnya, peer neighbor ke R2 (iBGP) menggunakan IP loopback dan tambahkan update sourcenya biar matching
router bgp 1
network 12.12.12.0 mask 255.255.255.0
neighbor 2.2.2.2 remote-as 1
neighbor 2.2.2.2 update-source Loopback0
R2
interface Loopback0
ip address 2.2.2.2 255.255.255.255
ip ospf 1 area 0
!
interface FastEthernet0/0
ip address 12.12.12.2 255.255.255.0
ip ospf 1 area 0
!
interface FastEthernet0/1
ip address 23.23.23.2 255.255.255.0
!
router ospf 1
log-adjacency-changes
Peer neighbour ke R3 (eBGP) menggunakan IP interface fisik
router bgp 1
neighbor 1.1.1.1 remote-as 1
neighbor 1.1.1.1 update-source Loopback0
neighbor 23.23.23.3 remote-as 2
R3
interface Loopback0
ip address 3.3.3.3 255.255.255.255
!
interface FastEthernet0/1
ip address 23.23.23.3 255.255.255.0
!
router bgp 2
network 3.3.3.3 mask 255.255.255.255
neighbor 23.23.23.2 remote-as 1
Untuk pengecekan cek routing tabel pada R1
Disini belum nampak IP loopback R3 lalu cek BGP tabel
Lihat route IP loopback R3 sudah didapat tetapi belum muncul di tabel routing... Lihat lebih jelas tanda * = valid namun belum ada tanda > = best, lihat juga next hopnya itu kan IPnya R3. Jadi begini pada saat R2 menerima update dari R3, R2 akan meneruskan update tanpa mengganti next hopnya kecuali update ke eBGP lainnya. "Internal BGP tidak mengganti next hop IP address". Maka dari itu perlu ditambahkan " neighbor 1.1.1.1 next-hop-self" pada R2 untuk mengubah next hop R1..
Lihat sekarang route ke 3.3.3.3 sudah valid & best..
Tes ping ke 3.3.3.3 lancar sentosa 100 %...
Jadi intinya
Pada iBGP dibuat IP loopback dan routing IGP untuk menghubungkan loopback ke router iBGP lainnya
Setelah itu untuk peer to peer ke router iBGP lainnya guna membangun adjacency neighbor pada iBGP.
Sedangkan pada eBGP menggunakan IP interface fisik, kalo pake loopback terus pake OSPF nah OSPF kan routing protocol dalam satu AS jelas ga bisa..
0 komentar :
Posting Komentar