LAB 6: LAB - DHCP, VLAN, Simple Queue



Pada PC 2 Set sebagai DHCP Server.

#R2
[admin@IDN_R2] > ip address print 
Flags: X - disabled, I - invalid, D - dynamic 
 #   ADDRESS            NETWORK         INTERFACE                                                                                                                                              
 0   192.168.1.1/29     192.168.1.0     ether2 
 [admin@IDN_R2] > ip dhcp-server setup 
Select interface to run DHCP server on 

dhcp server interface: ether2
Select network for DHCP addresses 

dhcp address space: 192.168.1.0/29
Select gateway for given network 

gateway for dhcp network: 192.168.1.1
Select pool of ip addresses given out by DHCP server 

addresses to give out: 192.168.1.2-192.168.1.6
Select DNS servers 

dns servers: 8.8.8.8
Select lease time 

lease time: 3d
[admin@IDN_R2] > 


PC1 dan PC2 set sebagai DHCP Client.
PC1> dhcp
DORA IP 192.168.1.4/29 GW 192.168.1.1
PC1> ping 192.168.1.3
84 bytes from 192.168.1.3 icmp_seq=1 ttl=63 time=1.912 ms
PC2> dhcp
DORA IP 192.168.1.3/30 GW 192.168.1.1

PC2> ping 192.168.1.4
84 bytes from 192.168.1.4 icmp_seq=1 ttl=63 time=2.193 ms


Set Router 5 Sebagai Router Switch.
#R5
[admin@MikroTik] > system identity set name=IDN_R5Switch
[admin@IDN_R5Switch] > ip neighbor print                    
 # INTERFACE ADDRESS                                                                                MAC-ADDRESS       IDENTITY   VERSION    BOARD                                              
 0 ether1    fe80::2c0:79ff:fed5:b800                                                               00:C0:79:D5:B8:00 IDN_R3     6.12       x86                                                
[admin@IDN_R5Switch] > interface vlan add name=vlan10 interface=ether1 
vlan-id: 10
[admin@IDN_R5Switch] > interface vlan add name=vlan20 interface=ether1 vlan-id=20 
[admin@IDN_R5Switch] > interface bridge add name=br-vlan10 
[admin@IDN_R5Switch] > interface bridge add name=br-vlan20 
[admin@IDN_R5Switch] > interface bridge port add interface=vlan10 bridge=br-vlan10 
[admin@IDN_R5Switch] > interface bridge port add interface=vlan20 bridge=br-vlan20   
[admin@IDN_R5Switch] > interface bridge port add interface=1 bridge=br-vlan10       
ether1  vlan10
[admin@IDN_R5Switch] > interface bridge port add interface=ether2  bridge=br-vlan10  
[admin@IDN_R5Switch] > interface bridge port add interface=ether3  bridge=br-vlan10   
[admin@IDN_R5Switch] > interface bridge port add interface=ether4  bridge=br-vlan20   
[admin@IDN_R5Switch] > interface bridge port add interface=ether5  bridge=br-vlan20  
[admin@IDN_R5Switch] > 


Pada Router 3, buatlah sebuah interface baru seperti berikut.
[admin@MikroTik] > system identity set name=IDN_R3
[admin@IDN_R3] > ip neighbor print 
 # INTERFACE ADDRESS                                                                                MAC-ADDRESS       IDENTITY   VERSION    BOARD                                              
 0 ether1    fe80::2c0:79ff:fe38:900                                                                00:C0:79:38:09:00 IDN_R5S... 6.12       x86                                                
[admin@IDN_R3] > interface vlan add name=vlan10 interface=ether1 vlan-id=10
[admin@IDN_R3] > interface vlan add name=vlan20 interface=ether1 vlan-id=20  
[admin@IDN_R3] > ip address add address=192.168.10.1/28 interface=vlan10 
[admin@IDN_R3] > ip address add address=192.168.20.1/28 interface=vlan20   
[admin@IDN_R3] > 


#PCVLAN10
PC6> ip 192.168.20.3/28 192.168.20.1
Checking for duplicate address...
PC1 : 192.168.20.3 255.255.255.240 gateway 192.168.20.1 

PC5> ip 192.168.20.2/28 192.168.20.1  
Checking for duplicate address...
PC1 : 192.168.20.2 255.255.255.240 gateway 192.168.20.1
PC5> ping 192.168.20.1              
84 bytes from 192.168.20.1 icmp_seq=1 ttl=64 time=23.477 ms
#PCVLAN20
PC3> ip 192.168.10.2/28 192.168.10.1
Checking for duplicate address...
PC1 : 192.168.10.2 255.255.255.240 gateway 192.168.10.1
PC4> ip 192.168.10.3/28 192.168.10.1
Checking for duplicate address...
PC1 : 192.168.10.3 255.255.255.240 gateway 192.168.10.1

PC4> ping 192.168.10.2              
84 bytes from 192.168.10.2 icmp_seq=1 ttl=64 time=3.833 ms
84 bytes from 192.168.10.2 icmp_seq=2 ttl=64 time=1.475 ms
^C
PC4> ping 192.168.10.1
84 bytes from 192.168.10.1 ic

Pada router 4 kita akan memainkan Simple Queue
#R4
[admin@MikroTik] > system identity set name=IDN_R4
[admin@IDN_R4] > ip address add address=192.168.77.1/30 
broadcast  comment  copy-from  disabled  netmask  network  interface
[admin@IDN_R4] > ip address add address=192.168.77.1/30 interface=ether2 
[admin@IDN_R4] > ip address add address=192.168.88.1/29 interface=ether1
[admin@IDN_R4] > queue simple add target=192.168.77.2 total-max-limit=4k max-limit=2k/2k name=BwTamu disabled=no 

PC7> sh ip

NAME        : PC7[1]
IP/MASK     : 192.168.77.2/30
GATEWAY     : 192.168.77.1
DNS         : 
MAC         : 00:50:79:66:68:06
LPORT       : 10007
RHOST:PORT  : 127.0.0.1:10006
MTU:        : 1500

PC7> ping 192.168.77.1 -l 1000 -t
1028 bytes from 192.168.77.1 icmp_seq=1 ttl=64 time=12.607 ms
1028 bytes from 192.168.77.1 icmp_seq=2 ttl=64 time=1.854 ms
1028 bytes from 192.168.77.1 icmp_seq=3 ttl=64 time=1.592 ms
1028 bytes from 192.168.77.1 icmp_seq=4 ttl=64 time=599.852 ms
1028 bytes from 192.168.77.1 icmp_seq=5 ttl=64 time=948.424 ms
1028 bytes from 192.168.77.1 icmp_seq=6 ttl=64 time=946.797 ms


Untuk melakukan pengetesan dari queue, bisa dengan menggunakan perintah seperti berikut:

[admin@IDN_R4] > tool torch interface=ether2 src-address=192.168.77.2

No comments:

Post a Comment

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

Pages