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] >

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] >

LAB BGP : iBGP Topologi Mesh

LAB BGP : iBGP 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 ad pr
Flags: X - disabled, I - invalid, D - dynamic
# ADDRESS NETWORK INTERFACE
0 12.12.12.1/24 12.12.12.0 ether2
1 1.1.1.1/32 1.1.1.1 loopback
[admin@IDN_R1] >

R2 – IP ADDRESS
===============

[admin@MikroTik] > sy ide se na=IDN_R2
[admin@IDN_R2] > int br ad na loopback
[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
[admin@IDN_R2] > ip ad ad ad 23.23.23.2/24 int ether3
[admin@IDN_R2] > ip ad pr
Flags: X - disabled, I - invalid, D - dynamic
# ADDRESS NETWORK INTERFACE
0 12.12.12.2/24 12.12.12.0 ether1
1 2.2.2.2/32 2.2.2.2 loopback
2 23.23.23.2/24 23.23.23.0 ether3
[admin@IDN_R2] >

R3 – IP ADDRESS
===============

[admin@MikroTik] > sy ide se na IDN_R3
[admin@IDN_R3] > int br ad na loopback
[admin@IDN_R3] > ip ad ad ad 23.23.23.2/24 int ether2
[admin@IDN_R3] > ip ad ad add 3.3.3.3 int loopback
[admin@IDN_R3] > ip ad pr
Flags: X - disabled, I - invalid, D - dynamic
# ADDRESS NETWORK INTERFACE
0 23.23.23.2/24 23.23.23.0 ether2
1 3.3.3.3/32 3.3.3.3 loopback
[admin@IDN_R3] >

TAMBAHKAN KONFIGURASI ROUTING R1
===========================

[admin@IDN_R1] > ip ro add dst-address=23.23.23.0/24 gateway=12.12.12.2

TAMBAHKAN KONFIGURASI ROUTING R3
===========================

[admin@IDN_R3] > ip ro add dst-address=12.12.12.0/24 gateway=23.23.23.2

PEERING ANTAR ROUTER BGP
=======================
Set AS R1
=========

[admin@IDN_R1] > ro bgp ins se as=100 0

Set AS R2
=========

[admin@IDN_R2] > ro bgp ins se as=100 0

Set AS R3
=========

[admin@IDN_R3] > ro bgp ins se as=100 0

Set BGP PEER R1
===============

[admin@IDN_R1] > rou bgp peer ad na peer_R2 remote-address=12.12.12.2 remote-as=100

Set BGP PEER R2
===============

[admin@IDN_R2] > rou bgp peer ad na peer_R1 remote-address=12.12.12.1 remote-as=100
[admin@IDN_R2] > rou bgp peer ad na peer_R3 remote-address=23.23.23.3 remote-as=100

Set BGP PEER R3
===============

[admin@IDN_R3] > ro bg peer ad na peer_R2 remote-address=23.23.23.2 remote-as=100

CEK STATUS BGP PEER R1
======================

[admin@IDN_R1] > ro bg peer pr stat
Flags: X - disabled, E - established
0 E name="peer_R2" instance=default remote-address=12.12.12.2 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=2.2.2.2 local-address=12.12.12.1
uptime=1s prefix-count=0 updates-sent=0 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

Statusnya sudah Established.. berarti.. OKEE Lanjutkan.

CEK STATUS BGP PEER R2
======================

[admin@IDN_R2] > rou bgp peer pr stat 
Flags: X - disabled, E - established
0 E name="peer_R1" 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=4m26s prefix-count=0 updates-sent=0 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

1 E name="peer_R3" instance=default remote-address=23.23.23.3 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=3.3.3.3 local-address=23.23.23.2
uptime=1m18s prefix-count=0 updates-sent=0 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
[admin@IDN_R2] >

R2 juga Statusnya sudah Established.. berarti.. OKEE Lanjutkan.

CEK STATUS BGP PEER R3
======================

[admin@IDN_R3] > ro bgp peer pr sta 
Flags: X - disabled, E - established
0 E name="peer_R2" instance=default remote-address=23.23.23.2 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=2.2.2.2 local-address=23.23.23.3
uptime=9s prefix-count=0 updates-sent=0 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 juga Statusnya sudah Established.. berarti.. OKEE Lanjutkan.

PING KE 2.2.2.2 (LOOPBACK R2)
==============================

[admin@IDN_R1] > ping 2.2.2.2
SEQ HOST SIZE TTL TIME STATUS
0 no route to host
1 no route to host
2 no route to host
sent=3 received=0 packet-loss=100%

Dari test PING tersebut masih gagal, eh bukan gagal tapi beluk berhasil.. maka selanjutnya kita ADVERTISE NETWORK IP LOOPBACK R1
===========================================

[admin@IDN_R1] > rou bgp net ad net 1.1.1.1/32

ADVERTISE NETWORK IP LOOPBACK R2 ================================

[admin@IDN_R2] > rou bgp net add net 2.2.2.2/32

PING ULANG KE 2.2.2.2 (LOOPBACK R2) ===================================

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

[admin@IDN_R1] >
Maka agar R2 juga bisa PING Ke 3.3.3.3 (LOOPBACK R3), advertise network ip loopback tersebut di routing BGP. ADVERTISE NETWORK IP LOOPBACK R2 ================================
[admin@IDN_R3] > rou bgp net ad net 3.3.3.3/32
Namun kendala saat ini adalah router R1 belum mengetahui rute untuk menuju ke 1.1.1.1 (IP LOOPBACK R1) dan sebaliknya karena routing tabelnya belum lengkap. Semua router BGP Speaker harus peering dengan router lainnya. Maka lakukan peering antar kedua router tersebut. BGP PEERING R1 TO R3 =============================================================
[admin@IDN_R1] /routing bgp peer> add remote-address=23.23.23.3 remote-as=100

BGP PEERING R3 TO R1 =============================================================

[admin@IDN_R3] > rou bgp peer add remote-address=12.12.12.1 remote-as=100

TEST PING DARI R1 =============================================================

[admin@IDN_R1] > ping 1.1.1.1
SEQ HOST SIZE TTL TIME STATUS
0 1.1.1.1 56 64 1ms
1 1.1.1.1 56 64 2ms
2 1.1.1.1 56 64 0ms
sent=3 received=3 packet-loss=0% min-rtt=0ms 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 12ms
1 2.2.2.2 56 64 2ms
2 2.2.2.2 56 64 2ms
sent=3 received=3 packet-loss=0% min-rtt=2ms avg-rtt=5ms max-rtt=12ms

[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 3ms
2 3.3.3.3 56 63 7ms
sent=3 received=3 packet-loss=0% min-rtt=3ms avg-rtt=6ms max-rtt=9ms

[admin@IDN_R1] > ping 23.23.23.3
SEQ HOST SIZE TTL TIME STATUS
0 23.23.23.3 56 63 7ms
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=3ms max-rtt=7ms

[admin@IDN_R1] >

LAB BGP : iBGP Topologi Mesh

LAB BGP : iBGP 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 ad pr
Flags: X - disabled, I - invalid, D - dynamic
# ADDRESS NETWORK INTERFACE
0 12.12.12.1/24 12.12.12.0 ether2
1 1.1.1.1/32 1.1.1.1 loopback
[admin@IDN_R1] >

R2 – IP ADDRESS
===============

[admin@MikroTik] > sy ide se na=IDN_R2
[admin@IDN_R2] > int br ad na loopback
[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
[admin@IDN_R2] > ip ad ad ad 23.23.23.2/24 int ether3
[admin@IDN_R2] > ip ad pr
Flags: X - disabled, I - invalid, D - dynamic
# ADDRESS NETWORK INTERFACE
0 12.12.12.2/24 12.12.12.0 ether1
1 2.2.2.2/32 2.2.2.2 loopback
2 23.23.23.2/24 23.23.23.0 ether3
[admin@IDN_R2] >

R3 – IP ADDRESS
===============

[admin@MikroTik] > sy ide se na IDN_R3
[admin@IDN_R3] > int br ad na loopback
[admin@IDN_R3] > ip ad ad ad 23.23.23.2/24 int ether2
[admin@IDN_R3] > ip ad ad add 3.3.3.3 int loopback
[admin@IDN_R3] > ip ad pr
Flags: X - disabled, I - invalid, D - dynamic
# ADDRESS NETWORK INTERFACE
0 23.23.23.2/24 23.23.23.0 ether2
1 3.3.3.3/32 3.3.3.3 loopback
[admin@IDN_R3] >

TAMBAHKAN KONFIGURASI ROUTING R1
===========================

[admin@IDN_R1] > ip ro add dst-address=23.23.23.0/24 gateway=12.12.12.2

TAMBAHKAN KONFIGURASI ROUTING R3
===========================

[admin@IDN_R3] > ip ro add dst-address=12.12.12.0/24 gateway=23.23.23.2

PEERING ANTAR ROUTER BGP
=======================
Set AS R1
=========

[admin@IDN_R1] > ro bgp ins se as=100 0

Set AS R2
=========

[admin@IDN_R2] > ro bgp ins se as=100 0

Set AS R3
=========

[admin@IDN_R3] > ro bgp ins se as=100 0

Set BGP PEER R1
===============

[admin@IDN_R1] > rou bgp peer ad na peer_R2 remote-address=12.12.12.2 remote-as=100

Set BGP PEER R2
===============

[admin@IDN_R2] > rou bgp peer ad na peer_R1 remote-address=12.12.12.1 remote-as=100
[admin@IDN_R2] > rou bgp peer ad na peer_R3 remote-address=23.23.23.3 remote-as=100

Set BGP PEER R3
===============

[admin@IDN_R3] > ro bg peer ad na peer_R2 remote-address=23.23.23.2 remote-as=100

CEK STATUS BGP PEER R1
======================

[admin@IDN_R1] > ro bg peer pr stat
Flags: X - disabled, E - established
0 E name="peer_R2" instance=default remote-address=12.12.12.2 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=2.2.2.2 local-address=12.12.12.1
uptime=1s prefix-count=0 updates-sent=0 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

Statusnya sudah Established.. berarti.. OKEE Lanjutkan.

CEK STATUS BGP PEER R2
======================

[admin@IDN_R2] > rou bgp peer pr stat 
Flags: X - disabled, E - established
0 E name="peer_R1" 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=4m26s prefix-count=0 updates-sent=0 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

1 E name="peer_R3" instance=default remote-address=23.23.23.3 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=3.3.3.3 local-address=23.23.23.2
uptime=1m18s prefix-count=0 updates-sent=0 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
[admin@IDN_R2] >

R2 juga Statusnya sudah Established.. berarti.. OKEE Lanjutkan.

CEK STATUS BGP PEER R3
======================

[admin@IDN_R3] > ro bgp peer pr sta 
Flags: X - disabled, E - established
0 E name="peer_R2" instance=default remote-address=23.23.23.2 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=2.2.2.2 local-address=23.23.23.3
uptime=9s prefix-count=0 updates-sent=0 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 juga Statusnya sudah Established.. berarti.. OKEE Lanjutkan.

PING KE 2.2.2.2 (LOOPBACK R2)
==============================

[admin@IDN_R1] > ping 2.2.2.2
SEQ HOST SIZE TTL TIME STATUS
0 no route to host
1 no route to host
2 no route to host
sent=3 received=0 packet-loss=100%

Dari test PING tersebut masih gagal, eh bukan gagal tapi beluk berhasil.. maka selanjutnya kita ADVERTISE NETWORK IP LOOPBACK R1
===========================================

[admin@IDN_R1] > rou bgp net ad net 1.1.1.1/32

ADVERTISE NETWORK IP LOOPBACK R2 ================================

[admin@IDN_R2] > rou bgp net add net 2.2.2.2/32

PING ULANG KE 2.2.2.2 (LOOPBACK R2) ===================================

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

[admin@IDN_R1] >
Maka agar R2 juga bisa PING Ke 3.3.3.3 (LOOPBACK R3), advertise network ip loopback tersebut di routing BGP. ADVERTISE NETWORK IP LOOPBACK R2 ================================
[admin@IDN_R3] > rou bgp net ad net 3.3.3.3/32
Namun kendala saat ini adalah router R1 belum mengetahui rute untuk menuju ke 1.1.1.1 (IP LOOPBACK R1) dan sebaliknya karena routing tabelnya belum lengkap. Semua router BGP Speaker harus peering dengan router lainnya. Maka lakukan peering antar kedua router tersebut. BGP PEERING R1 TO R3 =============================================================
[admin@IDN_R1] /routing bgp peer> add remote-address=23.23.23.3 remote-as=100

BGP PEERING R3 TO R1 =============================================================

[admin@IDN_R3] > rou bgp peer add remote-address=12.12.12.1 remote-as=100

TEST PING DARI R1 =============================================================

[admin@IDN_R1] > ping 1.1.1.1
SEQ HOST SIZE TTL TIME STATUS
0 1.1.1.1 56 64 1ms
1 1.1.1.1 56 64 2ms
2 1.1.1.1 56 64 0ms
sent=3 received=3 packet-loss=0% min-rtt=0ms 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 12ms
1 2.2.2.2 56 64 2ms
2 2.2.2.2 56 64 2ms
sent=3 received=3 packet-loss=0% min-rtt=2ms avg-rtt=5ms max-rtt=12ms

[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 3ms
2 3.3.3.3 56 63 7ms
sent=3 received=3 packet-loss=0% min-rtt=3ms avg-rtt=6ms max-rtt=9ms

[admin@IDN_R1] > ping 23.23.23.3
SEQ HOST SIZE TTL TIME STATUS
0 23.23.23.3 56 63 7ms
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=3ms max-rtt=7ms

[admin@IDN_R1] >

LAB 26: Hotspot Via Wireless

LAB 26: Hotspot Via Wireless
Pernah berlangganan wifi.id atau semacamnya? Wifi.id tersebut biasanya berupa hotspot yang mana memerlukan authentikasi username dan password agar bisa browsing. Kali ini kita akan labkan. Namun tentu hotspot sederhana.

Langsung saja untuk labnya.

  1. Langkah awal, buatlah wireless mode ap bridge.
  2. Berikan IP Address pada interface wlan1
  3. Selanjutnya, buatlah hotspot setup via interface wlan1.
  4. Lalu ikuti gambar berikut.
  5. Keterangan: 

    1. Local address network : Network untuk hotspot tersebut. 
    2. Address Pool : IP Address yang akan disiapkan untuk client yang terhubung.
    3. Sertificate
    4. Smtp Server
    5. DNS server
    6. DNS Name
    7. Local hotspot User. 
    8. Setup Complete.
  6. lalu konekkan Perangkat kita (PC/Mobile) ke SSID yang kita buat sebelumnya>
  7. Cobalah untuk mengakses IP Address dari wirelsss untuk mengakses hotspot tersebut.
  8. Maka halaman login akan terbuka. Selanjunya login dengan menggunakan username dan password yang telah kita buat sebelumnya.
  9. Jika kogin berhasil, maka webpage kita akan seperti pada gambar dibawah ini.

LAB 26: Hotspot Via Wireless

LAB 26: Hotspot Via Wireless
Pernah berlangganan wifi.id atau semacamnya? Wifi.id tersebut biasanya berupa hotspot yang mana memerlukan authentikasi username dan password agar bisa browsing. Kali ini kita akan labkan. Namun tentu hotspot sederhana.

Langsung saja untuk labnya.

  1. Langkah awal, buatlah wireless mode ap bridge.
  2. Berikan IP Address pada interface wlan1
  3. Selanjutnya, buatlah hotspot setup via interface wlan1.
  4. Lalu ikuti gambar berikut.
  5. Keterangan: 

    1. Local address network : Network untuk hotspot tersebut. 
    2. Address Pool : IP Address yang akan disiapkan untuk client yang terhubung.
    3. Sertificate
    4. Smtp Server
    5. DNS server
    6. DNS Name
    7. Local hotspot User. 
    8. Setup Complete.
  6. lalu konekkan Perangkat kita (PC/Mobile) ke SSID yang kita buat sebelumnya>
  7. Cobalah untuk mengakses IP Address dari wirelsss untuk mengakses hotspot tersebut.
  8. Maka halaman login akan terbuka. Selanjunya login dengan menggunakan username dan password yang telah kita buat sebelumnya.
  9. Jika kogin berhasil, maka webpage kita akan seperti pada gambar dibawah ini.

LAB 25 : Menghubungkan Router ke Internet via Wireless

LAB 25 : Menghubungkan Router ke Internet via Wireless

Pada lab menghubungkan router ke internet via ethernet  telah kita labkan pada lab-lab sebelumnya. Adapun untuk menghubungkan router kita ke internet via wireless maka prinsipnya pun sebenarnya sama. Langsung saja labnya.
  1. Pastikan router kita telah terhubung ke akses point, tentu saja wireless mode dari router kita adalah mode station atau station bridge seperti yang telah kita labkan sebelumnya, dan pastikan statusnya R.
  2. Selanjutnya tambahkan konfigurasi DHCP Client pada interface wlan1.
Selanjutnya kita tambahkan konfigurasi default route. Namun untuk mengetahui IP Address gatewaynya maka kita guna fitur Neighbours beperti berikut

  • Dari pengecekan IP Neighbours tersebut maka kita mengetahu IP Address dari Akses Point (AP) yang terhubung dengan router kita. Dimana pada lab ini IP Address dari AP adalah 192.168.95.1. Maka selanjutnya kita tambahkan konfigurasi Default Route.
  • Selanjutnya test Ping ke 8.8.8.8

    Pada test Ping diatas terlihat bahwasanya router tersebut telah terhubung dengan internet. Adapun untuk menghubung Client dari router kita ke internet, maka kita tunggal menambahkan konfigurasi Firewall NAT pada router kita seperti yang telah dijelaskan pada LAB-LAB sebelumnya.

    LAB 25 : Menghubungkan Router ke Internet via Wireless

    LAB 25 : Menghubungkan Router ke Internet via Wireless

    Pada lab menghubungkan router ke internet via ethernet  telah kita labkan pada lab-lab sebelumnya. Adapun untuk menghubungkan router kita ke internet via wireless maka prinsipnya pun sebenarnya sama. Langsung saja labnya.
    1. Pastikan router kita telah terhubung ke akses point, tentu saja wireless mode dari router kita adalah mode station atau station bridge seperti yang telah kita labkan sebelumnya, dan pastikan statusnya R.
    2. Selanjutnya tambahkan konfigurasi DHCP Client pada interface wlan1.
    Selanjutnya kita tambahkan konfigurasi default route. Namun untuk mengetahui IP Address gatewaynya maka kita guna fitur Neighbours beperti berikut

  • Dari pengecekan IP Neighbours tersebut maka kita mengetahu IP Address dari Akses Point (AP) yang terhubung dengan router kita. Dimana pada lab ini IP Address dari AP adalah 192.168.95.1. Maka selanjutnya kita tambahkan konfigurasi Default Route.
  • Selanjutnya test Ping ke 8.8.8.8

    Pada test Ping diatas terlihat bahwasanya router tersebut telah terhubung dengan internet. Adapun untuk menghubung Client dari router kita ke internet, maka kita tunggal menambahkan konfigurasi Firewall NAT pada router kita seperti yang telah dijelaskan pada LAB-LAB sebelumnya.