Assalamu'alaikum..
Kali ini kita akan melakukan labing Bridging namun dengan menggunakan mode protocol rstp.
Pada topologi diatas, antara MikroTik-2 dan MikroTik-3 menggunakan dua interface sebagai penghubung, jika kita melakukan bridging pada network di topologi diatas, maka akan membuat network kita tersebut menjadi "kurang baik", hal ini dikarenakan terjadinya looping. Maka kita perlu untuk memblock salah satu interface tersebut.
Langkah pertama tentu saja kita buat interface bridge dan tambahkan interface yang akan kita bridge ke bridge port.
[admin@IDN_R2] > interface bridge add name=bridge1
[admin@IDN_R2] > interface bridge port add interface=ether1 bridge=bridge1
[admin@IDN_R2] > interface bridge port add interface=ether2 bridge=bridge1
[admin@IDN_R2] > interface bridge port add interface=ether3 bridge=bridge1
[admin@IDN_R2] > ip address add address=192.168.1.2/24 interface=bridge1
[admin@IDN_R2] > ip address print
Flags: X - disabled, I - invalid, D - dynamic
# ADDRESS NETWORK INTERFACE
0 192.168.1.2/24 192.168.1.0 bridge1
[admin@IDN_R2] > interface bridge print
Flags: X - disabled, R - running
0 R name="bridge1" mtu=1500 l2mtu=65535 arp=enabled mac-address=00:68:28:4B:B3:02 protocol-mode=rstp priority=0x8000 auto-mac=yes admin-mac=00:00:00:00:00:00 max-message-age=20s
forward-delay=15s transmit-hold-count=6 ageing-time=5m
[admin@IDN_R2] > interface bridge set bridge1 protocol-mode=none
Pada konfigurasi diatas, perhatikan protocol-mode pada interface bridge tersebut.
Untuk router MikroTik-3, Lakukan hal yang sama seperti pada MikroTik-2 diatas.
[admin@IDN_R3] > interface bridge add name=bridge1
[admin@IDN_R3] > interface bridge port add interface=ether1 bridge=bridge1
[admin@IDN_R3] > interface bridge port add interface=ether2 bridge=bridge1
[admin@IDN_R3] > interface bridge port add interface=ether3 bridge=bridge1
[admin@IDN_R3] > ip address add address=192.168.1.3/24 interface=bridge1
[admin@IDN_R3] > ip address print
Flags: X - disabled, I - invalid, D - dynamic
# ADDRESS NETWORK INTERFACE
0 192.168.1.3/24 192.168.1.0 bridge1
[admin@IDN_R3] > interface bridge print
Flags: X - disabled, R - running
0 R name="bridge1" mtu=1500 l2mtu=65535 arp=enabled mac-address=00:68:28:6B:D2:02 protocol-mode=none priority=0x8000 auto-mac=yes admin-mac=00:00:00:00:00:00 max-message-age=20s
forward-delay=15s transmit-hold-count=6 ageing-time=5m
Berikan IP pada PC1 dan PC2
PC1> ip 192.168.1.4/24 Checking for duplicate address... PC1 : 192.168.1.4 255.255.255.0
PC2> ip 192.168.1.5/24 Checking for duplicate address... PC1 : 192.168.1.5 255.255.255.0
Lakukan testing dengan ping.
PC1> ping 192.168.1.5 192.168.1.5 icmp_seq=1 timeout 192.168.1.5 icmp_seq=2 timeout 192.168.1.5 icmp_seq=3 timeout
*Loh ... Kok timeout.. Gagal, ah nggak bener nih ngasih tutorialnya.. |PC2> ping 192.168.1.4 192.168.1.4 icmp_seq=1 timeout 192.168.1.4 icmp_seq=2 timeout 192.168.1.4 icmp_seq=3 timeout 192.168.1.4 icmp_seq=4 timeout 192.168.1.4 icmp_seq=5 timeout
Tenang dulu, itu terjadi karena terjadi looping, kalau kita make real device bakalan ada kedipan led yang menunjukkan bahwa terjadi sesuatu yang kurang baik.
Langkah selanjutnya, set protocol-mode pada interface bridge pada masing-masing router tersebut menjadi rstp.. RSTP Ini akan melakukan blocking salah satu interface yang telah kita bridge tadi.
[admin@IDN_R2] > interface bridge set bridge1 protocol-mode=rstp [admin@IDN_R2] >
[admin@IDN_R3] > interface bridge set bridge1 protocol-mode=rstp [admin@IDN_R3] >
Lakukan testing ping ulang..
PC1> ping 192.168.1.5 84 bytes from 192.168.1.5 icmp_seq=1 ttl=64 time=1.706 ms 84 bytes from 192.168.1.5 icmp_seq=2 ttl=64 time=1.416 ms 84 bytes from 192.168.1.5 icmp_seq=3 ttl=64 time=1.414 ms 84 bytes from 192.168.1.5 icmp_seq=4 ttl=64 time=2.424 ms 84 bytes from 192.168.1.5 icmp_seq=5 ttl=64 time=1.976 ms PC2> ping 192.168.1.4 84 bytes from 192.168.1.4 icmp_seq=1 ttl=64 time=1.480 ms 84 bytes from 192.168.1.4 icmp_seq=2 ttl=64 time=3.329 ms 84 bytes from 192.168.1.4 icmp_seq=3 ttl=64 time=3.076 ms 84 bytes from 192.168.1.4 icmp_seq=4 ttl=64 time=1.324 ms 84 bytes from 192.168.1.4 icmp_seq=5 ttl=64 time=2.301 ms
Noh..., berhasil kaan.
Lanjut..
Tadi kita telah mengatur protocol-mode dari interface bridge tersebut, maka diantara router-router tersebut akan dilakukan pemilu *eh, pemilihan root bridge. Untuk mengetahui router manakan yang terpilih dalam pemilu, *eh yang terpilih sebagai root-bridge bisa dengan menggunakan konfigurasi dibawah ini.
Perhatikan status root-bridgenya.
[admin@IDN_R2] > interface bridge monitor bridge1 state: enabled current-mac-address: 00:68:28:4B:B3:02 root-bridge: yes root-bridge-id: 0x8000.00:68:28:4B:B3:02 root-path-cost: 0 root-port: none port-count: 3 designated-port-count: 3
[admin@IDN_R3] > interface bridge monitor bridge1 state: enabled current-mac-address: 00:68:28:6B:D2:02 root-bridge: no root-bridge-id: 0x8000.00:68:28:4B:B3:02 root-path-cost: 10 root-port: ether2 port-count: 3 designated-port-count: 1
Seperti yang sudah dijelaskan sebelumnya, rstp akan memblock salah satu interface yang kita masukkan ke bridge port tadi guna mengatasi looping.
Interface yang diblock bisa dilihat pada konfigurasi dibawah ini, yaitu pada status role:alternate-port.
[admin@IDN_R2] > interface bridge port print [admin@IDN_R2] > interface bridge port print Flags: X - disabled, I - inactive, D - dynamic # INTERFACE BRIDGE PRIORITY PATH-COST HORIZON 0 ether1 bridge1 0x80 10 none 1 ether2 bridge1 0x80 10 none 2 ether3 bridge1 0x80 10 none [admin@IDN_R2] > interface bridge port monitor 0 status: in-bridge port-number: 3 role: designated-port edge-port: no edge-port-discovery: yes point-to-point-port: no external-fdb: no sending-rstp: yes learning: yes forwarding: yes [admin@IDN_R2] > interface bridge port monitor 1 status: in-bridge port-number: 2 role: designated-port edge-port: no edge-port-discovery: yes point-to-point-port: no external-fdb: no sending-rstp: yes learning: yes forwarding: yes [admin@IDN_R2] > interface bridge port monitor 2 status: in-bridge port-number: 1 role: designated-port edge-port: yes edge-port-discovery: yes point-to-point-port: no external-fdb: no sending-rstp: yes learning: yes forwarding: yes
[admin@IDN_R3] > interface bridge port print
Flags: X - disabled, I - inactive, D - dynamic
# INTERFACE BRIDGE PRIORITY PATH-COST HORIZON
0 ether1 bridge1 0x80 10 none
1 ether2 bridge1 0x80 10 none
2 ether3 bridge1 0x80 10 none
[admin@IDN_R3] > interface bridge port monitor
numbers: 1
status: in-bridge
port-number: 2
role: root-port
edge-port: no
edge-port-discovery: yes
point-to-point-port: no
external-fdb: no
sending-rstp: yes
learning: yes
forwarding: yes
root-path-cost: 10
designated-bridge: 0x8000.00:68:28:4B:B3:02
designated-cost: 0
designated-port-number: 2
[admin@IDN_R3] > interface bridge port monitor 2
status: in-bridge
port-number: 1
role: designated-port
edge-port: yes
edge-port-discovery: yes
point-to-point-port: no
external-fdb: no
sending-rstp: yes
learning: yes
forwarding: yes
[admin@IDN_R3] > interface bridge port monitor 0
status: in-bridge
port-number: 3
role: alternate-port
edge-port: no
edge-port-discovery: yes
point-to-point-port: no
external-fdb: no
sending-rstp: yes
learning: no
forwarding: no
root-path-cost: 10
designated-bridge: 0x8000.00:68:28:4B:B3:02
designated-cost: 0
designated-port-number: 3
No comments:
Post a Comment
Tak ada gading yang tak retak!!
Komentar dan masukan yang bersifat membangun selalu kami harapkan, demi kebaikan bersama.