Aan Xi TKJ 1 30

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 10

1.

VLAN 10 VLAN 40

PC6 PC10

-IP 192.168.10.2

-GATEWAY 192.168.10.1 -192.168.40.2

-192.168.40.1

PC7 PC11

-IP 192.168.10.3

-GATEWAY 192.168.10.1 -192.168.40.3

-192.168.40.1

VLAN 20 VLAN 50

PC8

-IP 192.168.20.2 PC12

-GATEWAY 192.168.20.1 -192.168.50.3


-GATEWAY 192.168.50.1

PC9 PC13

-IP192.168.20.3

-GATEWAY 192.168.20.1 -IP192.168.50.2

-GATEWAY 192.168.50.1

VLAN 30

LAPTOP 2

-IP 192.168.30.2

-GATEWAY 192.168.30.1

LAPTOP 3

-IP 192.168.30.3

-GATEWAY 192.168.30.1

Konvigurasi switch

Switch>enable
Switch#
Switch#vlan database
% Warning: It is recommended to configure VLAN from config mode,
as VLAN database mode is being deprecated. Please consult user
documentation for configuring VTP/VLAN in config mode.

Switch(vlan)#vlan 10 name atph


VLAN 10 modified:
Name: atph
Switch(vlan)#vlan 20 name bdp
VLAN 20 modified:
Name: bdp
Switch(vlan)#vlan 30 name tkj
VLAN 30 modified:
Name: tkj
Switch(vlan)#vlan 40 name otkp
VLAN 40 modified:
Name: otkp
Switch(vlan)#vlan 50 name akl
VLAN 50 modified:
Name: akl
Switch(vlan)#
Switch(vlan)#exit
APPLY completed.
Exiting....
Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#interface FastEthernet0/1
Switch(config-if)#
Switch(config-if)#exit
Switch(config)#interface FastEthernet0/1
Switch(config-if)#
Switch(config-if)#exit
Switch(config)#interface FastEthernet0/1
Switch(config-if)#
Switch(config-if)#switchport mode trunk
Switch(config-if)#
Switch(config-if)#exit
Switch(config)#interface FastEthernet0/2
Switch(config-if)#
Switch(config-if)#exit
Switch(config)#interface FastEthernet0/3
Switch(config-if)#
Switch(config-if)#exit

Switch(config)#interface FastEthernet0/2
Switch(config-if)#
Switch(config-if)#
Switch(config-if)#switchport access vlan 10
Switch(config-if)#
Switch(config-if)#exit
Switch(config)#interface FastEthernet0/3
Switch(config-if)#
Switch(config-if)#
Switch(config-if)#
Switch(config-if)#switchport access vlan 10
Switch(config-if)#
Switch(config-if)#exit
Switch(config)#interface FastEthernet0/2
Switch(config-if)#
Switch(config-if)#exit
Switch(config)#interface FastEthernet0/4
Switch(config-if)#
Switch(config-if)#
Switch(config-if)#switchport access vlan 20
Switch(config-if)#
Switch(config-if)#exit
Switch(config)#interface FastEthernet0/5
Switch(config-if)#
Switch(config-if)#
Switch(config-if)#switchport access vlan 20
Switch(config-if)#
Switch(config-if)#exit
Switch(config)#interface FastEthernet0/6
Switch(config-if)#
Switch(config-if)#
Switch(config-if)#switchport access vlan 30
Switch(config-if)#
Switch(config-if)#exit
Switch(config)#interface FastEthernet0/7
Switch(config-if)#
Switch(config-if)#
Switch(config-if)#switchport access vlan 30
Switch(config-if)#
Switch(config-if)#exit
Switch(config)#interface FastEthernet0/8
Switch(config-if)#
Switch(config-if)#
Switch(config-if)#switchport access vlan 40
Switch(config-if)#
Switch(config-if)#exit
Switch(config)#interface FastEthernet0/9
Switch(config-if)#
Switch(config-if)#
Switch(config-if)#switchport access vlan 40
Switch(config-if)#
Switch(config-if)#exit
Switch(config)#interface FastEthernet0/10
Switch(config-if)#
Switch(config-if)#
Switch(config-if)#switchport access vlan 50
Switch(config-if)#
Switch(config-if)#exit
Switch(config)#interface FastEthernet0/11
Switch(config-if)#
Switch(config-if)#
Switch(config-if)#switchport access vlan 50
Switch(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up
KONFIGURASI ROUTER
Router>enable
Router#
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface GigabitEthernet0/0
Router(config-if)#no shutdown
Router(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0, changed state to


up

Router(config-if)#exit
Router(config)#interface GigabitEthernet0/1
Router(config-if)#no shutdown
Router(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/1, changed state to up

Router(config-if)#ex
Router(config)#ex
Router#
%SYS-5-CONFIG_I: Configured from console by console

Router#ex
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int gig0/0.10
Router(config-subif)#
%LINK-5-CHANGED: Interface GigabitEthernet0/0.10, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0.10, changed state


to up

Router(config-subif)#encapsulation dot1q 10
Router(config-subif)#add 192.168.10.1 255.255.255.0
^
% Invalid input detected at '^' marker.
Router(config-subif)#ip add 192.168.10.1 255.255.255.0
Router(config-subif)#ex
Router(config)#ip add 192.168.20.1 255.255.255.0
^
% Invalid input detected at '^' marker.
Router(config)#int gig0/0.20
Router(config-subif)#
%LINK-5-CHANGED: Interface GigabitEthernet0/0.20, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0.20, changed state


to up
Router(config-subif)#encapsulation dot1q 20
Router(config-subif)#ip add 192.168.20.1 255.255.255.0
Router(config-subif)#ex
Router(config)#int gig0/0.30
Router(config-subif)#
%LINK-5-CHANGED: Interface GigabitEthernet0/0.30, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0.30, changed state


to up

Router(config-subif)#encapsulation dot1q 30
Router(config-subif)#ip add 192.168.30.1 255.255.255.0
Router(config-subif)#ex
Router(config)#int gig0/0.40
Router(config-subif)#
%LINK-5-CHANGED: Interface GigabitEthernet0/0.40, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0.40, changed state


to up

Router(config-subif)#encapsulation dot1q 40
Router(config-subif)#ip add 192.168.40.1 255.255.255.0
Router(config-subif)#ex
Router(config)#int gig0/0.50
Router(config-subif)#
%LINK-5-CHANGED: Interface GigabitEthernet0/0.50, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0.50, changed state


to up

Router(config-subif)#encapsulation dot1q 50
Router(config-subif)#ip add 192.168.50.1 255.255.255.0
Router(config-subif)#ex
Router(config)#

PENGUJIAN ANTAR PC
PC0

Packet Tracer PC Command Line 1.0


C:\>ping 192.168.10.2

Pinging 192.168.10.2 with 32 bytes of data:

Reply from 192.168.10.2: bytes=32 time=2ms TTL=128


Reply from 192.168.10.2: bytes=32 time=11ms TTL=128
Reply from 192.168.10.2: bytes=32 time<1ms TTL=128
Reply from 192.168.10.2: bytes=32 time=2ms TTL=128

Ping statistics for 192.168.10.2:


Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 11ms, Average = 3ms

PC1

Packet Tracer PC Command Line 1.0


C:\>ping 192.168.10.3

Pinging 192.168.10.3 with 32 bytes of data:

Reply from 192.168.10.3: bytes=32 time=14ms TTL=128


Reply from 192.168.10.3: bytes=32 time<1ms TTL=128
Reply from 192.168.10.3: bytes=32 time=3ms TTL=128
Reply from 192.168.10.3: bytes=32 time=3ms TTL=128

Ping statistics for 192.168.10.3:


Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 14ms, Average = 5ms

PC2

Packet Tracer PC Command Line 1.0


C:\>ping 192.168.20.2

Pinging 192.168.20.2 with 32 bytes of data:

Reply from 192.168.20.2: bytes=32 time=9ms TTL=128


Reply from 192.168.20.2: bytes=32 time=2ms TTL=128
Reply from 192.168.20.2: bytes=32 time<1ms TTL=128
Reply from 192.168.20.2: bytes=32 time=10ms TTL=128

Ping statistics for 192.168.20.2:


Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 10ms, Average = 5ms

PC3

Packet Tracer PC Command Line 1.0


C:\>192.168.20.3
Invalid Command.

C:\>ping 192.168.20.3

Pinging 192.168.20.3 with 32 bytes of data:

Reply from 192.168.20.3: bytes=32 time=4ms TTL=128


Reply from 192.168.20.3: bytes=32 time=1ms TTL=128
Reply from 192.168.20.3: bytes=32 time=10ms TTL=128
Reply from 192.168.20.3: bytes=32 time=10ms TTL=128

Ping statistics for 192.168.20.3:


Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 1ms, Maximum = 10ms, Average = 6ms

LAPTOP 0-1

Packet Tracer PC Command Line 1.0


C:\>ping 192.168.30.2

Pinging 192.168.30.2 with 32 bytes of data:

Reply from 192.168.30.2: bytes=32 time=8ms TTL=128


Reply from 192.168.30.2: bytes=32 time=10ms TTL=128
Reply from 192.168.30.2: bytes=32 time=10ms TTL=128
Reply from 192.168.30.2: bytes=32 time<1ms TTL=128

Ping statistics for 192.168.30.2:


Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 10ms, Average = 7ms

C:\>ping 192.168.30.3

Pinging 192.168.30.3 with 32 bytes of data:

Reply from 192.168.30.3: bytes=32 time=1ms TTL=128


Reply from 192.168.30.3: bytes=32 time<1ms TTL=128
Reply from 192.168.30.3: bytes=32 time<1ms TTL=128
Reply from 192.168.30.3: bytes=32 time<1ms TTL=128

Ping statistics for 192.168.30.3:


Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 1ms, Average = 0ms

C:\>

PC 8-9

Packet Tracer PC Command Line 1.0


C:\>ping 192.168.40.2

Pinging 192.168.40.2 with 32 bytes of data:

Reply from 192.168.40.2: bytes=32 time<1ms TTL=128


Reply from 192.168.40.2: bytes=32 time<1ms TTL=128
Reply from 192.168.40.2: bytes=32 time<1ms TTL=128
Reply from 192.168.40.2: bytes=32 time<1ms TTL=128

Ping statistics for 192.168.40.2:


Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms

C:\>ping 192.168.40.3

Pinging 192.168.40.3 with 32 bytes of data:

Reply from 192.168.40.3: bytes=32 time=9ms TTL=128


Reply from 192.168.40.3: bytes=32 time=10ms TTL=128
Reply from 192.168.40.3: bytes=32 time=11ms TTL=128
Reply from 192.168.40.3: bytes=32 time=2ms TTL=128

Ping statistics for 192.168.40.3:


Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 2ms, Maximum = 11ms, Average = 8ms

C:\>

PC 10-11

Packet Tracer PC Command Line 1.0


C:\>ping 192.168.50.2

Pinging 192.168.50.2 with 32 bytes of data:

Reply from 192.168.50.2: bytes=32 time=9ms TTL=128


Reply from 192.168.50.2: bytes=32 time=1ms TTL=128
Reply from 192.168.50.2: bytes=32 time=2ms TTL=128
Reply from 192.168.50.2: bytes=32 time=10ms TTL=128

Ping statistics for 192.168.50.2:


Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 1ms, Maximum = 10ms, Average = 5ms

C:\>ping 192.168.50.3

Pinging 192.168.50.3 with 32 bytes of data:

Reply from 192.168.50.3: bytes=32 time=1ms TTL=128


Reply from 192.168.50.3: bytes=32 time=2ms TTL=128
Reply from 192.168.50.3: bytes=32 time<1ms TTL=128
Reply from 192.168.50.3: bytes=32 time<1ms TTL=128

Ping statistics for 192.168.50.3:


Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 2ms, Average = 0ms

C:\>

PEMBLOKIRAN

You might also like