Melanjutkan materi kemarin tentang BGP, kali ini masih materi masih sama yaitu internal BGP tapi menggunakan interface loopback. Lab kali ini tidak jauh beda dengan materi kemarin karena masih sama-sama routing internal BGP, tapi yang membedakan hanyalah interface yang digunakan.
Topologi seperti ini (cuma contoh)
langsung play router GNS3nya
Tambahkan ip address di setiap routernya
Jangan lupa tambahkan juga interface loopback beserta ip loopbacknya
Tambah lagi routing IGP (interior gateway protocol)
Sekarang set AS dan tambah router ID
Lakukan peering ke router lain
Cek status routing BGPnya
Sekarang tambahkan komputer di masing-masing router
Dan sekarang lihat tabel routing
Jika dilihat dari tabel routing pada routing bgp, routing yang menuju ke jaringan local setiap router pasti (gateway) melewati ip loopback router tersebut
Selamat mencoba dan semoga bermanfaat
*Sorry telat update, ane lupa :D
Topologi seperti ini (cuma contoh)
langsung play router GNS3nya
You have 23h45m to configure the router to be remotely accessible,
and to enter the key by pasting it in a Telnet window or in Winbox.
See www.mikrotik.com/key for more details.
Current installation "software ID": AGXU-K1TR
Please press "Enter" to continue!
and to enter the key by pasting it in a Telnet window or in Winbox.
See www.mikrotik.com/key for more details.
Current installation "software ID": AGXU-K1TR
Please press "Enter" to continue!
Tambahkan ip address di setiap routernya
[admin@MikroTik] > system identity set name=R1
[admin@R1] > ip address add address=12.12.12.1/24 interface=ether1
[admin@R1] > ip address add address=13.13.13.1/24 interface=ether2
[admin@MikroTik] > system identity set name=R2
[admin@R2] > ip address add address=12.12.12.2/24 interface=ether1
[admin@R2] > ip address add address=23.23.23.2/24 interface=ether2
[admin@MikroTik] > system identity set name=R3
[admin@R3] > ip address add address=23.23.23.3/24 interface=ether1
[admin@R3] > ip address add address=13.13.13.3/24 interface=ether2
*perharikan interface/ether yang dikasih IP, sesuaikan dengan topologi anda
[admin@R1] > ip address add address=12.12.12.1/24 interface=ether1
[admin@R1] > ip address add address=13.13.13.1/24 interface=ether2
[admin@MikroTik] > system identity set name=R2
[admin@R2] > ip address add address=12.12.12.2/24 interface=ether1
[admin@R2] > ip address add address=23.23.23.2/24 interface=ether2
[admin@MikroTik] > system identity set name=R3
[admin@R3] > ip address add address=23.23.23.3/24 interface=ether1
[admin@R3] > ip address add address=13.13.13.3/24 interface=ether2
Jangan lupa tambahkan juga interface loopback beserta ip loopbacknya
[admin@R1] > interface bridge add name=loopback
[admin@R1] > ip address add address=1.1.1.1/32 interface=loopback
[admin@R2] > interface bridge add name=loopback
[admin@R2] > ip address add address=2.2.2.2/32 interface=loopback
[admin@R3] > interface bridge add name=loopback
[admin@R3] > ip address add address=3.3.3.3/32 interface=loopback
[admin@R1] > ip address add address=1.1.1.1/32 interface=loopback
[admin@R2] > interface bridge add name=loopback
[admin@R2] > ip address add address=2.2.2.2/32 interface=loopback
[admin@R3] > interface bridge add name=loopback
[admin@R3] > ip address add address=3.3.3.3/32 interface=loopback
Tambah lagi routing IGP (interior gateway protocol)
[admin@R1] > routing rip network add network=12.12.12.0/24
[admin@R1] > routing rip network add network=13.13.13.0/24
[admin@R1] > routing rip network add network=1.1.1.1/32
[admin@R2] > routing rip network add network=12.12.12.0/24
[admin@R2] > routing rip network add network=23.23.23.0/24
[admin@R2] > routing rip network add network=2.2.2.2/32
[admin@R3] > routing rip network add network=23.23.23.0/24
[admin@R3] > routing rip network add network=13.13.13.0/24
[admin@R3] > routing rip network add network=3.3.3.3/32
*sesuaikan dengan kebutuhan, menggunakan OSPF/Static juga tidak masalah. dan pastikan ping antar loopback sudah bisa[admin@R1] > routing rip network add network=13.13.13.0/24
[admin@R1] > routing rip network add network=1.1.1.1/32
[admin@R2] > routing rip network add network=12.12.12.0/24
[admin@R2] > routing rip network add network=23.23.23.0/24
[admin@R2] > routing rip network add network=2.2.2.2/32
[admin@R3] > routing rip network add network=23.23.23.0/24
[admin@R3] > routing rip network add network=13.13.13.0/24
[admin@R3] > routing rip network add network=3.3.3.3/32
Sekarang set AS dan tambah router ID
[admin@R1] > routing bgp instance set default as=100 router-id=1.1.1.1
[admin@R2] > routing bgp instance set default as=100 router-id=2.2.2.2
[admin@R3] > routing bgp instance set default as=100 router-id=3.3.3.3
[admin@R2] > routing bgp instance set default as=100 router-id=2.2.2.2
[admin@R3] > routing bgp instance set default as=100 router-id=3.3.3.3
Lakukan peering ke router lain
[admin@R1] > routing bgp peer add name=peer1 remote-address=2.2.2.2 remote-as=100 update-source=loopback
[admin@R1] > routing bgp peer add name=peer2 remote-address=3.3.3.3 remote-as=100 update-source=loopback
[admin@R2] > routing bgp peer add name=peer1 remote-address=1.1.1.1 remote-as=100 update-source=loopback
[admin@R2] > routing bgp peer add name=peer2 remote-address=3.3.3.3 remote-as=100 update-source=loopback
[admin@R3] > routing bgp peer add name=peer1 remote-address=2.2.2.2 remote-as=100 update-source=loopback
[admin@R3] > routing bgp peer add name=peer2 remote-address=1.1.1.1 remote-as=100 update-source=loopback
*perhatikan remote address dan as nya[admin@R1] > routing bgp peer add name=peer2 remote-address=3.3.3.3 remote-as=100 update-source=loopback
[admin@R2] > routing bgp peer add name=peer1 remote-address=1.1.1.1 remote-as=100 update-source=loopback
[admin@R2] > routing bgp peer add name=peer2 remote-address=3.3.3.3 remote-as=100 update-source=loopback
[admin@R3] > routing bgp peer add name=peer1 remote-address=2.2.2.2 remote-as=100 update-source=loopback
[admin@R3] > routing bgp peer add name=peer2 remote-address=1.1.1.1 remote-as=100 update-source=loopback
Cek status routing BGPnya
[admin@R1] > routing bgp peer print status
Flags: X - disabled, E - established
0 E name="peer1" instance=default remote-address=2.2.2.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 update-source=loopback default-originate=never remove-private-as=no as-override=no passive=no use-bfd=no remote-id=2.2.2.2 local-address=1.1.1.1 uptime=1m21s 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="peer2" instance=default remote-address=3.3.3.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 update-source=loopback default-originate=never remove-private-as=no as-override=no passive=no use-bfd=no remote-id=3.3.3.3 local-address=1.1.1.1 uptime=11s 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
*pastikan state=established Flags: X - disabled, E - established
0 E name="peer1" instance=default remote-address=2.2.2.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 update-source=loopback default-originate=never remove-private-as=no as-override=no passive=no use-bfd=no remote-id=2.2.2.2 local-address=1.1.1.1 uptime=1m21s 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="peer2" instance=default remote-address=3.3.3.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 update-source=loopback default-originate=never remove-private-as=no as-override=no passive=no use-bfd=no remote-id=3.3.3.3 local-address=1.1.1.1 uptime=11s 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
Sekarang tambahkan komputer di masing-masing router
[admin@R1] > ip address add address=11.11.11.1/24 interface=ether3
[admin@R1] > routing bgp network add network=11.11.11.0/24
[admin@R2] > ip address add address=22.22.22.2/24 interface=ether3
[admin@R2] > routing bgp network add network=22.22.22.0/24
[admin@R3] > ip address add address=33.33.33.3/24 interface=ether3
[admin@R3] > routing bgp network add network=33.33.33.0/24
*seakan-akan ini jaringan lokal di setiap router [admin@R1] > routing bgp network add network=11.11.11.0/24
[admin@R2] > ip address add address=22.22.22.2/24 interface=ether3
[admin@R2] > routing bgp network add network=22.22.22.0/24
[admin@R3] > ip address add address=33.33.33.3/24 interface=ether3
[admin@R3] > routing bgp network add network=33.33.33.0/24
Dan sekarang lihat tabel routing
[admin@R1] > ip route print
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 ADr 2.2.2.2/32 12.12.12.2 120
2 ADr 3.3.3.3/32 13.13.13.3 120
3 ADC 11.11.11.0/24 11.11.11.1 ether3 0
4 ADC 12.12.12.0/24 12.12.12.1 ether1 0
5 ADC 13.13.13.0/24 13.13.13.1 ether2 0
6 ADb 22.22.22.0/24 2.2.2.2 200
7 ADr 23.23.23.0/24 12.12.12.2 120
8 ADb 33.33.33.0/24 3.3.3.3 200
*ADb (active dymanic bgp) 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 ADr 2.2.2.2/32 12.12.12.2 120
2 ADr 3.3.3.3/32 13.13.13.3 120
3 ADC 11.11.11.0/24 11.11.11.1 ether3 0
4 ADC 12.12.12.0/24 12.12.12.1 ether1 0
5 ADC 13.13.13.0/24 13.13.13.1 ether2 0
6 ADb 22.22.22.0/24 2.2.2.2 200
7 ADr 23.23.23.0/24 12.12.12.2 120
8 ADb 33.33.33.0/24 3.3.3.3 200
Jika dilihat dari tabel routing pada routing bgp, routing yang menuju ke jaringan local setiap router pasti (gateway) melewati ip loopback router tersebut
Selamat mencoba dan semoga bermanfaat
*Sorry telat update, ane lupa :D
wow this theme a very amazing success for your site, thanks a
ReplyDeleteobat keloid bismilah http://acemaxs31.com/obat-keloid/
thank you
ReplyDelete