LAB: Static Rute - Load Balance


12 Agustus
#R1
[admin@MikroTik] > system identity set name=IDN_R1
[admin@IDN_R1] > ip neighbor print 
 # INTERFACE ADDRESS                                                                                MAC-ADDRESS       IDENTITY   VERSION    BOARD                                              
 0 ether2    fe80::210:cdff:fea7:b101                                                               00:10:CD:A7:B1:01 IDN_R3     6.12       x86                                                
 1 ether1    fe80::5054:ff:fe12:3456                                                                52:54:00:12:34:56 IDN_R2     6.12       x86                                                
 2 ether3    fe80::210:cdff:fedc:d702                                                               00:10:CD:DC:D7:02 IDN_R4     6.12       x86                            
[admin@IDN_R1] > ip address add address=12.12.12.1/29 interface=ether1 
[admin@IDN_R1] > ip address add address=13.13.13.1/29 interface=ether2  
[admin@IDN_R1] > ip address set address=14.14.14.1/29 interface=ether3   
numbers: 2
[admin@IDN_R1] > ip address add address=192.168.1.1/30 interface=ether4
[admin@IDN_R1] > ip address print 
Flags: X - disabled, I - invalid, D - dynamic 
 #   ADDRESS            NETWORK         INTERFACE                                                                                                                                              
 0   12.12.12.1/29      12.12.12.0      ether1                                                                                                                                                 
 1   13.13.13.1/29      13.13.13.0      ether2                                                                                                                                                 
 2   14.14.14.1/29      14.14.14.0      ether3                                                                                                                                                 
 3   192.168.1.1/30     192.168.1.0     ether4  
[admin@IDN_R1] > ip route add dst-address=24.24.24.0/29 gateway=12.12.12.2,14.14.14.4,13.13.13.3
[admin@IDN_R1] > ip route add dst-address=34.34.34.0/29 gateway=12.12.12.2,14.14.14.4,13.13.13.3  
[admin@IDN_R1] > ip route add dst-address=192.168.2.0/30 gateway=12.12.12.2,14.14.14.4,13.13.13.3               
[admin@IDN_R1] > ip route add dst-address=192.168.3.0/30 gateway=12.12.12.2,14.14.14.4,13.13.13.3 
[admin@IDN_R1] > ip route add dst-address=192.168.4.0/30 gateway=12.12.12.2,14.14.14.4,13.13.13.3 
[admin@IDN_R1] > ip route 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  12.12.12.0/29      12.12.12.1      ether1                    0
 1 ADC  13.13.13.0/29      13.13.13.1      ether2                    0
 2 ADC  14.14.14.0/29      14.14.14.1      ether3                    0
 3 A S  24.24.24.0/29                      12.12.12.2                1
                                           14.14.14.4        
                                           13.13.13.3        
 4 A S  34.34.34.0/29                      12.12.12.2                1
                                           14.14.14.4        
                                           13.13.13.3        
 5 ADC  192.168.1.0/30     192.168.1.1     ether4                    0
 6 A S  192.168.2.0/30                     12.12.12.2                1
                                           14.14.14.4        
                                           13.13.13.3        
 7 A S  192.168.3.0/30                     12.12.12.2                1
                                           14.14.14.4        
                                           13.13.13.3        
 8 A S  192.168.4.0/30                     12.12.12.2                1
                                           14.14.14.4        
                                           13.13.13.3        
[admin@IDN_R1] > 


#R2
[admin@IDN_R2] > ip address add address=24.24.24.2/29 interface=ether2     
[admin@IDN_R2] > ip address add address=23.23.23.2/29 interface=ether3         
[admin@IDN_R2] > ip address add address=12.12.12.2/29 interface=ether1     
[admin@IDN_R2] > ip address print 
Flags: X - disabled, I - invalid, D - dynamic 
 #   ADDRESS            NETWORK         INTERFACE                                                                                                                                              
 0   192.168.2.1/30     192.168.2.0     ether4                                                                                                                                                 
 1   24.24.24.2/29      24.24.24.0      ether2                                                                                                                                                 
 2   23.23.23.2/29      23.23.23.0      ether3                                                                                                                                                 
 3   12.12.12.2/29      12.12.12.0      ether1           


[admin@IDN_R2] > ip route add dst-address=14.14.14.0/29 gateway=24.24.24.4,12.12.12.1
[admin@IDN_R2] > ip route add dst-address=13.13.13.0/29 gateway=24.24.24.4,12.12.12.1,23.23.23.3           
[admin@IDN_R2] > ip route add dst-address=34.34.34.0/29 gateway=24.24.24.4,12.12.12.1,23.23.23.3        
[admin@IDN_R2] > ip route add dst-address=192.168.1.0/30 gateway=24.24.24.4,12.12.12.1,23.23.23.3              
[admin@IDN_R2] > ip route add dst-address=192.168.3.0/30 gateway=24.24.24.4,12.12.12.1,23.23.23.3 
[admin@IDN_R2] > ip route add dst-address=192.168.4.0/30 gateway=24.24.24.4,12.12.12.1,23.23.23.3 
[admin@IDN_R2] > 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  12.12.12.0/29      12.12.12.2      ether1                    0
 1 A S  13.13.13.0/29                      24.24.24.4                1
                                           12.12.12.1        
                                           23.23.23.3        
 2 A S  14.14.14.0/29                      24.24.24.4                1
                                           12.12.12.1        
 3 ADC  23.23.23.0/29      23.23.23.2      ether3                    0
 4 ADC  24.24.24.0/29      24.24.24.2      ether2                    0
 5 A S  34.34.34.0/29                      24.24.24.4                1
                                           12.12.12.1        
                                           23.23.23.3        
 6 A S  192.168.1.0/30                     24.24.24.4                1
                                           12.12.12.1        
                                           23.23.23.3        
 7 ADC  192.168.2.0/30     192.168.2.1     ether4                    0
 8 A S  192.168.3.0/30                     24.24.24.4                1
                                           12.12.12.1        
                                           23.23.23.3        
 9 A S  192.168.4.0/30                     24.24.24.4                1
                                           12.12.12.1        
                                           23.23.23.3        

 



#R3
[admin@MikroTik] > system identity set name=IDN_R3
[admin@IDN_R3] > ip address add address=13.13.13.3/29 interface=ether2 
[admin@IDN_R3] > ip address add address=23.23.23.3/29 interface=ether3 
[admin@IDN_R3] > ip address add address=34.34.34.3/29 interface=ether1 
[admin@IDN_R3] > ip address add address=192.168.3.1/30 interface=ether4  
[admin@IDN_R3] > ip address print 
Flags: X - disabled, I - invalid, D - dynamic 
 #   ADDRESS            NETWORK         INTERFACE                                                                                                                                              
 0   13.13.13.3/29      13.13.13.0      ether2                                                                                                                                                 
 1   23.23.23.3/29      23.23.23.0      ether3                                                                                                                                                 
 2   34.34.34.3/29      34.34.34.0      ether1                                                                                                                                                 
 3   192.168.3.1/30     192.168.3.0     ether4        

[admin@IDN_R3] > ip route add dst-address=12.12.12.0/29 gateway=13.13.13.1,34.34.34.4,23.23.3.2
[admin@IDN_R3] > ip route add dst-address=24.24.24.0/29 gateway=13.13.13.1,34.34.34.4,23.23.3.2           
[admin@IDN_R3] > ip route add dst-address=14.14.14.0/29 gateway=13.13.13.1,34.34.34.4,23.23.3.2    
[admin@IDN_R3] > ip route add dst-address=192.168.1.0/30 gateway=13.13.13.1,34.34.34.4,23.23.3.2            
[admin@IDN_R3] > ip route add dst-address=192.168.2.0/30 gateway=13.13.13.1,34.34.34.4,23.23.3.2 
[admin@IDN_R3] > ip route add dst-address=192.168.4.0/30 gateway=13.13.13.1,34.34.34.4,23.23.3.2 
[admin@IDN_R3] > 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  12.12.12.0/29                      13.13.13.1                1
                                           34.34.34.4        
                                           23.23.3.2         
 1 ADC  13.13.13.0/29      13.13.13.3      ether2                    0
 2 A S  14.14.14.0/29                      13.13.13.1                1
                                           34.34.34.4        
                                           23.23.3.2         
 3 ADC  23.23.23.0/29      23.23.23.3      ether3                    0
 4 A S  24.24.24.0/29                      13.13.13.1                1
                                           34.34.34.4        
                                           23.23.3.2         
 5 ADC  34.34.34.0/29      34.34.34.3      ether1                    0
 6 A S  192.168.1.0/30                     13.13.13.1                1
                                           34.34.34.4        
                                           23.23.3.2         
 7 A S  192.168.2.0/30                     13.13.13.1                1
                                           34.34.34.4        
                                           23.23.3.2         
 8 ADC  192.168.3.0/30     192.168.3.1     ether4                    0
 9 A S  192.168.4.0/30                     13.13.13.1                1
                                           34.34.34.4        
                                           23.23.3.2         

 


#R4
[admin@MikroTik] > system identity set name=IDN_R4
[admin@IDN_R4] > ip address add address=14.14.14.4/29 interface=ether3 
[admin@IDN_R4] > ip address add address=34.34.34.4/29 interface=ether1 
[admin@IDN_R4] > ip address add address=24.24.24.4/29 interface=ether2 
[admin@IDN_R4] > ip address add address=192.168.4.1/29 interface=ether4
[admin@IDN_R4] > ip route add dst-address=12.12.12.0/29 gateway=34.34.34.3,24.24.24.2,14.14.14.1   
[admin@IDN_R4] > ip route add dst-address=23.23.23.0/29 gateway=34.34.34.3,24.24.24.2,14.14.14.1        
[admin@IDN_R4] > ip route add dst-address=192.168.1.0/30 gateway=34.34.34.3,24.24.24.2,14.14.14.1             
[admin@IDN_R4] > ip route add dst-address=192.168.2.0/30 gateway=34.34.34.3,24.24.24.2,14.14.14.1 
[admin@IDN_R4] > ip route add dst-address=192.168.3.0/30 gateway=34.34.34.3,24.24.24.2,14.14.14.1 
[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 A S  12.12.12.0/29                      34.34.34.3                1
                                           24.24.24.2        
                                           14.14.14.1        
 1 A S  13.13.13.0/29                      34.34.34.3                1
                                           24.24.24.2        
                                           14.14.14.1        
 2 ADC  14.14.14.0/29      14.14.14.4      ether3                    0
 3 A S  23.23.23.0/29                      34.34.34.3                1
                                           24.24.24.2        
                                           14.14.14.1        
 4 ADC  24.24.24.0/29      24.24.24.4      ether2                    0
 5 ADC  34.34.34.0/29      34.34.34.4      ether1                    0
 6 A S  192.168.1.0/30                     34.34.34.3                1
                                           24.24.24.2        
                                           14.14.14.1        
 7 A S  192.168.2.0/30                     34.34.34.3                1
                                           24.24.24.2        
                                           14.14.14.1        
 8 A S  192.168.3.0/30                     34.34.34.3                1
                                           24.24.24.2        
                                           14.14.14.1        
 9 ADC  192.168.4.0/29     192.168.4.1     ether4                    0
[admin@IDN_R4] > ping 192.168.1.1


Berikan IP pada masing-masing PC

PC1> ip 192.168.1.2/30 192.168.1.1
Checking for duplicate address...
PC1 : 192.168.1.2 255.255.255.252 gateway 192.168.1.1



PC4> ip 192.168.4.2/30 192.168.4.1
Checking for duplicate address...
PC1 : 192.168.4.2 255.255.255.252 gateway 192.168.4.1


PC2> ip 192.168.2.2/30 192.168.2.1
Checking for duplicate address...
PC1 : 192.168.2.2 255.255.255.252 gateway 192.168.2.1


PC3> ip 192.168.3.2/30 192.168.3.1
Checking for duplicate address...
PC1 : 192.168.3.2 255.255.255.252 gateway 192.168.3.1


Lakukan pengetesan dengan melakukan ping.

PC1> ping 192.168.4.2
84 bytes from 192.168.4.2 icmp_seq=1 ttl=61 time=31.728 ms
84 bytes from 192.168.4.2 icmp_seq=2 ttl=61 time=3.680 ms
^C
PC1> ping 192.168.2.2
84 bytes from 192.168.2.2 icmp_seq=1 ttl=60 time=33.652 ms
84 bytes from 192.168.2.2 icmp_seq=2 ttl=60 time=2.956 ms
84 bytes from 192.168.3.2 icmp_seq=1 ttl=61 time=2.417 ms
84 bytes from 192.168.3.2 icmp_seq=2 ttl=61 time=2.098 ms
84 bytes from 192.168.3.2 icmp_seq=3 ttl=61 time=1.793 ms
^C
PC1> ping 192.168.4.2
84 bytes from 192.168.4.2 icmp_seq=1 ttl=61 time=25.713 ms
84 bytes from 192.168.4.2 icmp_seq=2 ttl=61 time=3.276 ms

PC4> ping 192.168.1.2
84 bytes from 192.168.1.2 icmp_seq=1 ttl=62 time=33.208 ms
84 bytes from 192.168.1.2 icmp_seq=2 ttl=62 time=4.736 ms
84 bytes from 192.168.1.2 icmp_seq=3 ttl=62 time=2.475 ms
^C
PC4> ping 192.168.2.2
84 bytes from 192.168.2.2 icmp_seq=1 ttl=61 time=4.436 ms
84 bytes from 192.168.2.2 icmp_seq=2 ttl=61 time=8.294 ms
84 bytes from 192.168.2.2 icmp_seq=3 ttl=61 time=6.637 ms
^C
PC4> ping 192.168.3.2
84 bytes from 192.168.3.2 icmp_seq=1 ttl=61 time=3.691 ms
84 bytes from 192.168.3.2 icmp_seq=2 ttl=61 time=2.753 ms
84 bytes from 192.168.3.2 icmp_seq=3 ttl=61 time=6.247 ms
84 bytes from 192.168.3.2 icmp_seq=4 ttl=61 time=3.997 ms
^C
PC4> 

No comments:

Post a Comment

Tak ada gading yang tak retak!!
Komentar dan masukan yang bersifat membangun selalu kami harapkan, demi kebaikan bersama.

Pages