LAB 5: VLAN

#Router 1
  [admin@MikroTik] > system identity set name=IDN_R1  
  [admin@IDN_R1] > interface vlan print                                 
  Flags: X - disabled, R - running, S - slave 
   #    NAME                                                                            MTU ARP        VLAN-ID INTERFACE                                                                         
  [admin@IDN_R1] > interface print      
  Flags: D - dynamic, X - disabled, R - running, S - slave 
   #     NAME                                TYPE         MTU L2MTU  MAX-L2MTU MAC-ADDRESS      
   0  R  ether1                              ether       1500                  52:54:00:12:34:56
   1  R  etheR1                              ether       1500                  00:75:FE:6D:FC:01
   2  R  ether3                              ether       1500                  00:75:FE:6D:FC:02
   3  R  ether4                              ether       1500                  00:75:FE:6D:FC:03
   4  R  ether5                              ether       1500                  00:75:FE:6D:FC:04
   5  R  ether6                              ether       1500                  00:75:FE:6D:FC:05
   6  R  ether7                              ether       1500                  00:75:FE:6D:FC:06
  [admin@IDN_R1] > interface vlan add name=vlan_50 interface=ether5 vlan-id=50
  [admin@IDN_R1] > interface vlan add name=vlan_60 interface=ether5 vlan-id=60  
  [admin@IDN_R1] > ip address add address=192.168.50.1/24 interface=vlan_50 
  [admin@IDN_R1] > ip address add address=192.168.60.1/24 interface=vlan_60   
  [admin@IDN_R1] > 
  certificate  driver  interface  ipv6           log   port  queue   routing  special-login  system  user      beep    import  password  quit  setup
  console      file    ip         isdn-channels  mpls  ppp   radius  snmp     store          tool    wireless  export  led     ping      redo  undo 
  [admin@IDN_R1] > interface vlan print 
  Flags: X - disabled, R - running, S - slave 
   #    NAME                                                                            MTU ARP        VLAN-ID INTERFACE                                                                         
   0 R  vlan_50                                                                        1500 enabled         50 ether5                                                                            
   1 R  vlan_60                                                                        1500 enabled         60 ether5                                                                            
  [admin@IDN_R1] > ip address print     
  Flags: X - disabled, I - invalid, D - dynamic 
   #   ADDRESS            NETWORK         INTERFACE                                                                                                                                              
   0   192.168.50.1/24    192.168.50.0    vlan_50                                                                                                                                                
   1   192.168.60.1/24    192.168.60.0    vlan_60                                                                                                                                                
  [admin@IDN_R1] > 
 
#Router 2
  [admin@MikroTik] > system identity set name=IDN_R2
  [admin@IDN_R2] > interface vlan add name=vlan_50 interface=ether5 vlan-id=50
  [admin@IDN_R2] > interface vlan add name=vlan_60 interface=ether5 vlan-id=60 
  [admin@IDN_R2] > interface bridge add name=bridge-vlan_50
  [admin@IDN_R2] > interface bridge add name=bridge-vlan_60
  [admin@IDN_R2] > interface print 
  Flags: D - dynamic, X - disabled, R - running, S - slave 
   #     NAME                                TYPE         MTU L2MTU  MAX-L2MTU MAC-ADDRESS      
   0  R  ether1                              ether       1500                  52:54:00:12:34:56
   1  R  ether2                              ether       1500                  00:75:FE:8D:8F:01
   2  R  ether3                              ether       1500                  00:75:FE:8D:8F:02
   3  R  ether4                              ether       1500                  00:75:FE:8D:8F:03
   4  R  ether5                              ether       1500                  00:75:FE:8D:8F:04
   5  R  ether6                              ether       1500                  00:75:FE:8D:8F:05
   6  R  ether7                              ether       1500                  00:75:FE:8D:8F:06
   7  R  bridge-vlan_50                      bridge      1500 65535            00:00:00:00:00:00
   8  R  bridge-vlan_60                      bridge      1500 65535            00:00:00:00:00:00
   9  R  vlan_50                             vlan        1500                  00:75:FE:8D:8F:04
  10  R  vlan_60                             vlan        1500                  00:75:FE:8D:8F:04
  [admin@IDN_R2] > interface vlan print 
  Flags: X - disabled, R - running, S - slave 
   #    NAME                                                                            MTU ARP        VLAN-ID INTERFACE                                                                         
   0 R  vlan_50                                                                        1500 enabled         50 ether5                                                                            
   1 R  vlan_60                                                                        1500 enabled         60 ether5                                                                            
  [admin@IDN_R2] > interface bridge port add interface=vlan_50 bridge=bridge-vlan_50
  [admin@IDN_R2] > interface bridge port add interface=ether1 bridge=bridge-vlan_50
  [admin@IDN_R2] > interface bridge port add interface=ether2 bridge=bridge-vlan_50 
  [admin@IDN_R2] > interface bridge port print 
  Flags: X - disabled, I - inactive, D - dynamic 
   #    INTERFACE                                                                      BRIDGE                                                                      PRIORITY  PATH-COST    HORIZON
   0    vlan_50                                                                        bridge-vlan_50                                                                  0x80         10       none
   1    ether1                                                                         bridge-vlan_50                                                                  0x80         10       none
   2    ether2                                                                         bridge-vlan_50                                                                  0x80         10       none
  [admin@IDN_R2] > interface bridge port add interface=vlan_60 bridge=bridge-vlan_60 
  [admin@IDN_R2] > interface bridge port add interface=ether4 bridge=bridge-vlan_60 
  [admin@IDN_R2] > interface bridge port add interface=ether3 bridge=bridge-vlan_60  
  [admin@IDN_R2] > interface bridge port print 
  Flags: X - disabled, I - inactive, D - dynamic 
   #    INTERFACE                                                                      BRIDGE                                                                      PRIORITY  PATH-COST    HORIZON
   0    vlan_50                                                                        bridge-vlan_50                                                                  0x80         10       none
   1    ether1                                                                         bridge-vlan_50                                                                  0x80         10       none
   2    ether2                                                                         bridge-vlan_50                                                                  0x80         10       none
   3    vlan_60                                                                        bridge-vlan_60                                                                  0x80         10       none
   4    ether4                                                                         bridge-vlan_60                                                                  0x80         10       none
   5    ether3                                                                         bridge-vlan_60                                                                  0x80         10       none
  [admin@IDN_R2] > 

 
PC2> ip 192.168.50.3/24 192.168.50.1
Checking for duplicate address...
PC1 : 192.168.50.3 255.255.255.0 gateway 192.168.50.1

PC2> ping 192.168.50.2              
84 bytes from 192.168.50.2 icmp_seq=1 ttl=64 time=0.894 ms
84 bytes from 192.168.50.2 icmp_seq=2 ttl=64 time=0.787 ms
84 bytes from 192.168.50.2 icmp_seq=3 ttl=64 time=3.485 ms
84 bytes from 192.168.50.2 icmp_seq=4 ttl=64 time=1.023 ms
84 bytes from 192.168.50.2 icmp_seq=5 ttl=64 time=1.103 ms

PC2> ping 192.168.60.2
84 bytes from 192.168.60.2 icmp_seq=1 ttl=63 time=10.033 ms
84 bytes from 192.168.60.2 icmp_seq=2 ttl=63 time=2.810 ms
84 bytes from 192.168.60.2 icmp_seq=3 ttl=63 time=3.430 ms
84 bytes from 192.168.60.2 icmp_seq=4 ttl=63 time=2.178 ms
84 bytes from 192.168.60.2 icmp_seq=5 ttl=63 time=3.882 ms

PC2> ping 192.168.60.1 
84 bytes from 192.168.60.1 icmp_seq=1 ttl=64 time=5.617 ms
84 bytes from 192.168.60.1 icmp_seq=2 ttl=64 time=1.365 ms
84 bytes from 192.168.60.1 icmp_seq=3 ttl=64 time=2.262 ms                                                                                                                                      
84 bytes from 192.168.60.1 icmp_seq=4 ttl=64 time=1.644 ms                                                                                                                                      
^C                                                                                                                                                                                              
PC2> ping 192.168.50.1                                                                                                                                                                          
84 bytes from 192.168.50.1 icmp_seq=1 ttl=64 time=4.784 ms
84 bytes from 192.168.50.1 icmp_seq=2 ttl=64 time=1.948 ms
^C
PC2> 

 
PC3> ip 192.168.60.2/24 192.168.60.1 
Checking for duplicate address...
PC1 : 192.168.60.2 255.255.255.0 gateway 192.168.60.1

PC3> ping 192.168.60.1
84 bytes from 192.168.60.1 icmp_seq=1 ttl=64 time=2.614 ms
84 bytes from 192.168.60.1 icmp_seq=2 ttl=64 time=1.518 ms
84 bytes from 192.168.60.1 icmp_seq=3 ttl=64 time=2.037 ms
84 bytes from 192.168.60.1 icmp_seq=4 ttl=64 time=1.284 ms
^C
PC3> ping 192.168.60.3
84 bytes from 192.168.60.3 icmp_seq=1 ttl=64 time=0.953 ms
84 bytes from 192.168.60.3 icmp_seq=2 ttl=64 time=1.118 ms
^C
PC3> ping 192.168.50.1  
84 bytes from 192.168.50.1 icmp_seq=1 ttl=64 time=2.950 ms
84 bytes from 192.168.50.1 icmp_seq=2 ttl=64 time=1.202 ms
^C
PC3> ping 192.168.50.3
192.168.50.3 icmp_seq=1 timeout
192.168.50.3 icmp_seq=2 timeout
84 bytes from 192.168.50.3 icmp_seq=3 ttl=63 time=2.320 ms                                                                                                                                      
84 bytes from 192.168.50.3 icmp_seq=4 ttl=63 time=3.396 ms                                                                                                                                      
84 bytes from 192.168.50.3 icmp_seq=5 ttl=63 time=2.578 ms                                                                                                                                      
                                                                                                                                                                                                
PC3> 

No comments:

Post a Comment

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

Pages