Cara Menghubungkan Network Berbeda AS menggunakan eBGP di Mikrotik
Friday, December 20, 2019
Edit
AS=64522
1. Mempunyai network 180.251.20.0/24
AS=64523
2. Mempunyai network 181.251.20.0/24
Katakan lah kita ingin menghubungkan network kedua nya agar bisa saling berkomunikasi
Langsung saja ya ke praktek
-------Core-Distribusi-64522
/interface ethernet
set [ find default-name=ether2 ] name=ether2-SwitchCore
set [ find default-name=ether3 ] name=ether3-peer-beda-as
/interface vlan
add interface=ether2-SwitchCore name=vlan22 vlan-id=22
add interface=ether2-SwitchCore name=vlan99-manajemen vlan-id=99
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip pool
add name=pool-ip-public-vlan-22 ranges=180.251.20.111-180.251.20.112
/ppp profile
add local-address=180.251.20.0 name=profile-ppp-vlan-22 rate-limit=1M/2M remote-address=pool-ip-public-vlan-22
/routing bgp instance
add as=64522 client-to-client-reflection=no comment=ebgp name=Suneo-AS-64522-ebgp router-id=182.251.20.1
/interface pppoe-server server
add default-profile=default-encryption disabled=no interface=vlan22 service-name=pppoe-server-vlan-22
/ip address
add address=180.251.20.3 interface=vlan99-manajemen network=180.251.20.4
add address=180.251.20.2 interface=ether1 network=180.251.20.1
add address=182.251.20.1 interface=ether3-peer-beda-as network=182.251.20.2
/ppp secret
add name=sdn-sehapi password=sdn-sehapi profile=profile-ppp-vlan-22 service=pppoe
add local-address=180.251.20.0 name=sdn-sei2 password=sdn-sei2 profile=default-encryption remote-address=180.251.20.11 service=pppoe
add name=sdn-serongga password=sdn-serongga profile=profile-ppp-vlan-22 service=pppoe
/routing bgp network
add network=180.251.20.0/24 synchronize=no
/routing bgp peer
add comment=ebgp instance=Suneo-AS-64522-ebgp name=Peer-Suneo-Distribusi-64523 remote-address=182.251.20.2 remote-as=64523 ttl=default
/system identity
set name=Core-Distribusi-64522
/tool romon
set enabled=yes
-------Core-Distribusi-64523
/interface ethernet
set [ find default-name=ether2 ] name=ether2-Switch-Core
set [ find default-name=ether3 ] name=ether3-peer-beda-as
/interface vlan
add interface=ether2-Switch-Core name=vlan23 vlan-id=23
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/routing bgp instance
add as=64523 client-to-client-reflection=no comment=ebgp name=Suneo-AS-64523-ebgp router-id=182.251.20.2
/ip address
add address=181.251.20.254 interface=vlan23 network=181.251.20.11
add address=181.251.20.254 interface=vlan23 network=181.251.20.12
add address=181.251.20.254 interface=vlan23 network=181.251.20.13
add address=182.251.20.2 interface=ether3-peer-beda-as network=182.251.20.1
/ip dhcp-client
add disabled=no interface=ether2-Switch-Core
/routing bgp network
add network=181.251.20.0/24 synchronize=no
/routing bgp peer
add comment=ebgp instance=Suneo-AS-64523-ebgp name=Peer-Suneo-Distribusi-64522 remote-address=182.251.20.1 remote-as=64522 ttl=default
/system identity
set name=Core-Distribusi-64523
/tool romon
set enabled=yes
Semoga Bermanfaat
Penulis : Een Pahlefi,S.Kom