LAB BGP : eBGP Topologi Mesh

LAB BGP :  eBGP Topologi Mesh
Topologi

R1 - IP ADDRESS
===============
[admin@MikroTik] > sy ide se na IDN_R1
[admin@IDN_R1] > int br ad na loopback
[admin@IDN_R1] > ip ad ad ad 12.12.12.1/24 int ether2 
[admin@IDN_R1] > ip ad ad ad 1.1.1.1 int loopback 
[admin@IDN_R1] > ip rou ad ds 23.23.23.0/24 gat 12.12.12.2


R2 - IP ADDRESS
===========================================================================
admin@MikroTik] > sy ide se na IDN_R2
[admin@IDN_R2] > int br ad na IDN_R2
[admin@IDN_R2] > ip ad ad ad 12.12.12.2/24 int ether1 
[admin@IDN_R2] > ip ad ad ad 2.2.2.2 int loopback 

R1 - IP ADDRESS
===========================================================================
[admin@MikroTik] > sy ide s na IDN_R3
[admin@IDN_R3] > int br ad na loopback
[admin@IDN_R3] > ip ad ad ad 23.23.23.3/24 int ether2 
[admin@IDN_R3] > ip ad ad ad 3.3.3.3 int loopback 

Set AS R1
===========================================================
[admin@IDN_R1] > rou bg ins set as=100
numbers: 0

Set AS R2
===========================================================
[admin@IDN_R2] > rou bg ins set as=200 
numbers: 0

Set AS R3
===========================================================
[admin@IDN_R3] > rou bg ins set as=300 0

R1 BGP Peeering
===========================================================
[admin@IDN_R1] > rou bg peer ad nam peer1 remote-address=12.12.12.2 remote-as=200

R2 BGP Peeering
===========================================================
[admin@IDN_R2] > rou bg pee ad na peer1 remote-address=12.12.12.1 remote-as=100 
[admin@IDN_R2] > rou bg pee add nam peer_R3 remote-address=23.23.23.3 remote-as=300

R3 BGP Peeering
===========================================================
[admin@IDN_R3] > rou bg pee ad nam peer_R2 remote-address=23.23.23.2 remote-as=200

CEK STATUS PEERING
===========================================================
R1
====
[admin@IDN_R1] > rou bg peer prin sta
Flags: X - disabled, E - established 
 0 E name="peer1" instance=default remote-address=12.12.12.2 remote-as=200 tcp-md5-key="" 
     nexthop-choice=default multihop=no route-reflect=no hold-time=3m ttl=255 in-filter="" 
     out-filter="" address-families=ip default-originate=never remove-private-as=no 
     as-override=no passive=no use-bfd=no remote-id=2.2.2.2 local-address=12.12.12.1 
     uptime=0s prefix-count=0 updates-sent=1 updates-received=0 withdrawn-sent=0 
     withdrawn-received=0 remote-hold-time=3m used-hold-time=3m used-keepalive-time=1m 
     refresh-capability=yes as4-capability=yes state=established 

R2
====
[admin@IDN_R2] > rou bg pee pr sta
Flags: X - disabled, E - established 
 0 E name="peer1" instance=default remote-address=12.12.12.1 remote-as=100 tcp-md5-key="" 
     nexthop-choice=default multihop=no route-reflect=no hold-time=3m ttl=255 in-filter="" 
     out-filter="" address-families=ip default-originate=never remove-private-as=no 
     as-override=no passive=no use-bfd=no remote-id=1.1.1.1 local-address=12.12.12.2 
     uptime=4h14m29s prefix-count=1 updates-sent=0 updates-received=1 withdrawn-sent=0 
     withdrawn-received=0 remote-hold-time=3m used-hold-time=3m used-keepalive-time=1m 
     refresh-capability=yes as4-capability=yes state=established 

 1 E name="peer_R3" instance=default remote-address=23.23.23.3 remote-as=300 tcp-md5-key="" 
     nexthop-choice=default multihop=no route-reflect=no hold-time=3m ttl=255 in-filter="" 
     out-filter="" address-families=ip default-originate=never remove-private-as=no 
     as-override=no passive=no use-bfd=no remote-id=3.3.3.3 local-address=23.23.23.2 
     uptime=1h4m7s prefix-count=0 updates-sent=1 updates-received=0 withdrawn-sent=0 
     withdrawn-received=0 remote-hold-time=3m used-hold-time=3m used-keepalive-time=1m 
     refresh-capability=yes as4-capability=yes state=established 

R3
===
[admin@IDN_R3] > rou bg pee pr sta    
Flags: X - disabled, E - established 
 0 E name="peer_R2" instance=default remote-address=23.23.23.2 remote-as=200 tcp-md5-key="" 
     nexthop-choice=default multihop=no route-reflect=no hold-time=3m ttl=255 in-filter="" 
     out-filter="" address-families=ip default-originate=never remove-private-as=no 
     as-override=no passive=no use-bfd=no remote-id=2.2.2.2 local-address=23.23.23.3 
     uptime=3s prefix-count=1 updates-sent=0 updates-received=1 withdrawn-sent=0 
     withdrawn-received=0 remote-hold-time=3m used-hold-time=3m used-keepalive-time=1m 
     refresh-capability=yes as4-capability=yes state=established 

TAMBAHKAN KONFIGURASI ROUTING
=============================
R1
======
[admin@IDN_R1] > ip rou ad ds 23.23.23.0/24 gat 12.12.12.2
R3
======
[admin@IDN_R3] > ip ro ad ds 12.12.12.0/24 gat 23.23.23.2

R1 CEK TABEL ROUTING
=============================
[admin@IDN_R1] > ip ro pr 
Flags: X - disabled, A - active, D - dynamic, 
C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme, 
B - blackhole, U - unreachable, P - prohibit 
 #      DST-ADDRESS        PREF-SRC        GATEWAY            DISTANCE
 0 ADC  1.1.1.1/32         1.1.1.1         loopback                  0
 1 ADb  2.2.2.2/32                         12.12.12.2               20
 2 ADb  3.3.3.3/32                         12.12.12.2               20
 3 ADC  12.12.12.0/24      12.12.12.1      ether2                    0
 4 A S  23.23.23.0/24                      12.12.12.2                1
[admin@IDN_R1] > 

R2 CEK TABEL ROUTING
=============================
[admin@IDN_R2] > ip ro pr
Flags: X - disabled, A - active, D - dynamic, 
C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme, 
B - blackhole, U - unreachable, P - prohibit 
 #      DST-ADDRESS        PREF-SRC        GATEWAY            DISTANCE
 0 ADb  1.1.1.1/32                         12.12.12.1               20
 1 ADC  2.2.2.2/32         2.2.2.2         loopback                  0
 2 ADb  3.3.3.3/32                         23.23.23.3               20
 3 ADC  12.12.12.0/24      12.12.12.2      ether1                    0
 4 ADC  23.23.23.0/24      23.23.23.2      ether3                    0
[admin@IDN_R2] > 

R3 CEK TABEL ROUTING
=============================
[admin@IDN_R3] > ip ro pr
Flags: X - disabled, A - active, D - dynamic, 
C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme, 
B - blackhole, U - unreachable, P - prohibit 
 #      DST-ADDRESS        PREF-SRC        GATEWAY            DISTANCE
 0 ADb  1.1.1.1/32                         23.23.23.2               20
 1 ADb  2.2.2.2/32                         23.23.23.2               20
 2 ADC  3.3.3.3/32         3.3.3.3         loopback                  0
 3 A S  12.12.12.0/24                      23.23.23.2                1
 4 ADC  23.23.23.0/24      23.23.23.3      ether2                    0
[admin@IDN_R3] >  
TEST PING DARI R1 Ke semua IP Loopback
TEST PING 
================================
[admin@IDN_R1] > ping 1.1.1.1
  SEQ HOST                                     SIZE TTL TIME  STATUS                          
    0 1.1.1.1                                    56  64 2ms  
    1 1.1.1.1                                    56  64 1ms  
    sent=2 received=2 packet-loss=0% min-rtt=1ms avg-rtt=1ms max-rtt=2ms 

[admin@IDN_R1] > ping 2.2.2.2
  SEQ HOST                                     SIZE TTL TIME  STATUS                          
    0 2.2.2.2                                    56  64 1ms  
    1 2.2.2.2                                    56  64 2ms  
    2 2.2.2.2                                    56  64 1ms  
    sent=3 received=3 packet-loss=0% min-rtt=1ms avg-rtt=1ms max-rtt=2ms 

[admin@IDN_R1] > ping 3.3.3.3
  SEQ HOST                                     SIZE TTL TIME  STATUS                          
    0 3.3.3.3                                    56  63 9ms  
    1 3.3.3.3                                    56  63 2ms  
    2 3.3.3.3                                    56  63 2ms  
    sent=3 received=3 packet-loss=0% min-rtt=2ms avg-rtt=4ms max-rtt=9ms 

[admin@IDN_R1] > ping 23.23.23.3
  SEQ HOST                                     SIZE TTL TIME  STATUS                          
    0 23.23.23.3                                 56  63 4ms  
    1 23.23.23.3                                 56  63 2ms  
    2 23.23.23.3                                 56  63 2ms  
    sent=3 received=3 packet-loss=0% min-rtt=2ms avg-rtt=2ms max-rtt=4ms 

[admin@IDN_R1] >  

No comments:

Post a Comment

Tak ada gading yang tak retak!!
Komentar dan masukan yang bersifat membangun selalu kami harapkan, demi kebaikan bersama.

Pages