Interface ether1 dan Ether4 pada router MikroTik-5 dan MikroTik-6 kita bridging, sehingga kedua interface tersebut berada dalam satu network yang sama. Jika interface tersebut berada dalam network yang sama, maka kita cukup memasukkan ip pada PC1 dan PC2 dengan yang masih dalam range network tersebut, sehingga tidak diperlukan fungsi routing agar kedua pc tersebut dapat berkomunikasi.
Namun, jika PC-PC tersebut pengen berkomunikasi dengan router MikroTik-4 maka diperlukan fungsi routing. Untuk konfigurasinya bisa ikuti langkah-langkah dibawah inii
#R5
[admin@IDN_R5] > interface bridge add name=bridge1
[admin@IDN_R5] > interface bridge print
Flags: X - disabled, R - running
0 R name="bridge1" mtu=1500 l2mtu=65535 arp=enabled mac-address=00:00:00:00:00:00 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_R5] > interface bridge port add interface=ether1 bridge=bridge1
[admin@IDN_R5] > interface bridge port add interface=ether4 bridge=bridge1
[admin@IDN_R5] > interface bridge port print
[admin@IDN_R5] > interface bridge port print
Flags: X - disabled, I - inactive, D - dynamic
[admin@IDN_R5] > interface bridge port print
Flags: X - disabled, I - inactive, D - dynamic
# INTERFACE BRIDGE PRIORITY PATH-COST HORIZON
0 ether1 bridge1 0x80 10 none
1 ether4 bridge1 0x80 10 none
[admin@IDN_R5] > ip address add address=192.168.1.1/24 interface=bridge1
[admin@IDN_R5] > ip address add address=192.168.1.5/24 interface=bridge1
[admin@IDN_R5] > ip address add address=45.45.45.5/24 interface=ether2
[admin@IDN_R5] > ip address print
Flags: X - disabled, I - invalid, D - dynamic
# ADDRESS NETWORK INTERFACE
0 192.168.1.5/24 192.168.1.0 bridge1
1 45.45.45.5/24 45.45.45.0 ether2
[admin@IDN_R5] > ip route add dst-address=46.46.46.0/24 gateway=192.168.1.6
[admin@IDN_R5] > 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 45.45.45.0/24 45.45.45.5 ether2 0
1 A S 46.46.46.0/24 192.168.1.6 1
2 ADC 192.168.1.0/24 192.168.1.5 bridge1 0
admin@MikroTik] > system identity set name=IDN_R6 [admin@IDN_R6] > interface bridge add name=bridge1 [admin@IDN_R6] > interface bridge port add interface=ether1 bridge=bridge1 [admin@IDN_R6] > interface bridge port add interface=ether4 bridge=bridge1 [admin@IDN_R6] > interface bridge port print Flags: X - disabled, I - inactive, D - dynamic # INTERFACE BRIDGE PRIORITY PATH-COST HORIZON 0 ether1 bridge1 0x80 10 none 1 ether4 bridge1 0x80 10 none [admin@IDN_R6] > ip address add address=192.168.1.6/24 interface=bridge1 [admin@IDN_R6] > ip address print Flags: X - disabled, I - invalid, D - dynamic # ADDRESS NETWORK INTERFACE 0 192.168.1.6/24 192.168.1.0 bridge1 [admin@IDN_R6] > ip address add address=46.46.46.6/24 interface=ether3 [admin@IDN_R6] > ip address print Flags: X - disabled, I - invalid, D - dynamic # ADDRESS NETWORK INTERFACE 0 192.168.1.6/24 192.168.1.0 bridge1 1 46.46.46.6/24 46.46.46.0 ether3 [admin@IDN_R6] > ip route add dst-address=45.45.45.0/24 gateway=192.168.1.5 [admin@IDN_R6] > 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 A S 45.45.45.0/24 192.168.1.5 1 1 ADC 46.46.46.0/24 46.46.46.6 ether3 0 2 ADC 192.168.1.0/24 192.168.1.6 bridge1 0 [admin@IDN_R6] >
[admin@MikroTik] > system identity set name=IDN_R4
[admin@IDN_R4] > ip address add address=45.45.45.4/24 interface=ether2
[admin@IDN_R4] > ip address add address=46.46.46.4/24 interface=ether3
[admin@IDN_R4] > ip address print
Flags: X - disabled, I - invalid, D - dynamic
# ADDRESS NETWORK INTERFACE
0 45.45.45.4/24 45.45.45.0 ether2
1 46.46.46.4/24 46.46.46.0 ether3
[admin@IDN_R4] > ip route add dst-address=192.168.1.0/24 gateway=45.45.45.5,46.46.46.6
[admin@IDN_R4] > 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 45.45.45.0/24 45.45.45.4 ether2 0
1 ADC 46.46.46.0/24 46.46.46.4 ether3 0
2 A S 192.168.1.0/24 45.45.45.5 1
46.46.46.6
PC1> ping 192.168.1.2
84 bytes from 192.168.1.2 icmp_seq=1 ttl=64 time=2.056 ms
PC1> ping 192.168.1.5
84 bytes from 192.168.1.5 icmp_seq=1 ttl=64 time=5.925 ms
84 bytes from 192.168.1.5 icmp_seq=2 ttl=64 time=0.737 ms
84 bytes from 192.168.1.5 icmp_seq=3 ttl=64 time=0.877 ms
^C
PC1> ping 192.168.1.6
84 bytes from 192.168.1.6 icmp_seq=1 ttl=64 time=6.198 ms
84 bytes from 192.168.1.6 icmp_seq=2 ttl=64 time=2.642 ms
84 bytes from 192.168.1.6 icmp_seq=3 ttl=64 time=1.414 ms
84 bytes from 192.168.1.6 icmp_seq=4 ttl=64 time=1.182 ms
^C
PC1> ping 192.168.1.6
84 bytes from 192.168.1.6 icmp_seq=1 ttl=64 time=5.658 ms
84 bytes from 192.168.1.6 icmp_seq=2 ttl=64 time=1.629 ms
84 bytes from 192.168.1.6 icmp_seq=3 ttl=64 time=2.066 ms
^C
PC1> ping 192.168.1.6
84 bytes from 192.168.1.6 icmp_seq=1 ttl=64 time=1.498 ms
84 bytes from 192.168.1.6 icmp_seq=2 ttl=64 time=1.930 ms
^C
PC1> ping 192.168.1.5
84 bytes from 192.168.1.5 icmp_seq=1 ttl=64 time=0.711 ms
84 bytes from 192.168.1.5 icmp_seq=2 ttl=64 time=0.722 ms
^C
PC1> ping 192.168.1.6
84 bytes from 192.168.1.6 icmp_seq=1 ttl=64 time=2.593 ms
84 bytes from 192.168.1.6 icmp_seq=2 ttl=64 time=1.844 ms
^C
PC1> ping 192.168.1.2
84 bytes from 192.168.1.2 icmp_seq=1 ttl=64 time=1.848 ms
84 bytes from 192.168.1.2 icmp_seq=2 ttl=64 time=1.297 ms
^C
PC1> ping 45.45.45.4
84 bytes from 45.45.45.4 icmp_seq=1 ttl=63 time=10.080 ms
^C
PC1> ping 45.45.45.5
84 bytes from 45.45.45.5 icmp_seq=1 ttl=64 time=1.152 ms
84 bytes from 45.45.45.5 icmp_seq=2 ttl=64 time=0.715 ms
^C
PC1> ping 46.46.46.4
84 bytes from 46.46.46.4 icmp_seq=1 ttl=63 time=8.777 ms
84 bytes from 46.46.46.4 icmp_seq=2 ttl=63 time=3.168 ms
^C
PC1> ping 46.46.46.6
84 bytes from 46.46.46.6 icmp_seq=1 ttl=64 time=3.362 ms
84 bytes from 46.46.46.6 icmp_seq=2 ttl=64 time=1.557 ms
^C
PC1>
PC2> ping 192.168.1.6
84 bytes from 192.168.1.6 icmp_seq=1 ttl=64 time=2.724 ms
84 bytes from 192.168.1.6 icmp_seq=2 ttl=64 time=0.587 ms
^C
PC2> ping 192.168.1.5
84 bytes from 192.168.1.5 icmp_seq=1 ttl=64 time=1.956 ms
84 bytes from 192.168.1.5 icmp_seq=2 ttl=64 time=1.223 ms
^C
PC2> ping 192.168.1.1
84 bytes from 192.168.1.1 icmp_seq=1 ttl=64 time=1.915 ms
84 bytes from 192.168.1.1 icmp_seq=2 ttl=64 time=2.516 ms
^C
PC2> ping 46.46.46.6
84 bytes from 46.46.46.6 icmp_seq=1 ttl=64 time=0.801 ms
84 bytes from 46.46.46.6 icmp_seq=2 ttl=64 time=0.964 ms
^C
PC2> ping 46.46.46.4
84 bytes from 46.46.46.4 icmp_seq=1 ttl=63 time=2.663 ms
84 bytes from 46.46.46.4 icmp_seq=2 ttl=63 time=1.277 ms
^C
PC2> ping 45.45.45.4
84 bytes from 45.45.45.4 icmp_seq=1 ttl=63 time=6.423 ms
84 bytes from 45.45.45.4 icmp_seq=2 ttl=63 time=2.866 ms
^C
PC2> ping 45.45.45.5
84 bytes from 45.45.45.5 icmp_seq=1 ttl=64 time=2.939 ms
84 bytes from 45.45.45.5 icmp_seq=2 ttl=64 time=7.227 ms
^C
PC2>
[admin@IDN_R4] > ping 45.45.45.5
HOST SIZE TTL TIME STATUS
45.45.45.5 56 64 6ms
45.45.45.5 56 64 3ms
sent=2 received=2 packet-loss=0% min-rtt=3ms avg-rtt=4ms max-rtt=6ms
[admin@IDN_R4] > ping 46.46.46.6
HOST SIZE TTL TIME STATUS
46.46.46.6 56 64 2ms
46.46.46.6 56 64 1ms
sent=2 received=2 packet-loss=0% min-rtt=1ms avg-rtt=1ms max-rtt=2ms
[admin@IDN_R4] > ping 192.168.1.5
HOST SIZE TTL TIME STATUS
192.168.1.5 56 63 2ms
192.168.1.5 56 63 3ms
sent=2 received=2 packet-loss=0% min-rtt=2ms avg-rtt=2ms max-rtt=3ms
[admin@IDN_R4] > ping 192.168.1.6
HOST SIZE TTL TIME STATUS
192.168.1.6 56 63 6ms
192.168.1.6 56 63 3ms
sent=2 received=2 packet-loss=0% min-rtt=3ms avg-rtt=4ms max-rtt=6ms
[admin@IDN_R4] > ping 192.168.1.1
HOST SIZE TTL TIME STATUS
192.168.1.1 timeout
192.168.1.1 timeout
192.168.1.1 56 62 973ms
192.168.1.1 56 62 6ms
sent=4 received=2 packet-loss=50% min-rtt=6ms avg-rtt=489ms max-rtt=973ms
[admin@IDN_R4] > ping 192.168.1.2
HOST SIZE TTL TIME STATUS
192.168.1.2 56 62 3ms
192.168.1.2 56 62 4ms
sent=2 received=2 packet-loss=0% min-rtt=3ms avg-rtt=3ms max-rtt=4ms
[admin@IDN_R4] >

No comments:
Post a Comment
Tak ada gading yang tak retak!!
Komentar dan masukan yang bersifat membangun selalu kami harapkan, demi kebaikan bersama.