1. Setting IP Configuration pada PC 1 dan 2
IP Address : 172.17.0.21
Subnet Mask : 255.255.255.0
Default Gateway : 172.17.0.1
PC 2
IP Address : 172.17.30.23
Subnet Mask : 255.255.255.0
Default Gateway : 172.17.30.1
2. Lalu Klik pada Router dan buka tampilan CLI ketik perintah berikut :
Router>en
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface fastEthernet 0/0
Router(config-if)#ip address 172.17.0.1 255.255.255.0
Router(config-if)#no shut
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface fastEthernet 0/0
Router(config-if)#ip address 172.17.0.1 255.255.255.0
Router(config-if)#no shut
Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
Router(config-if)#ex
Router(config)#interface fastEthernet 0/1
Router(config-if)#ip address 172.17.30.1 255.255.255.0
Router(config-if)#no shut
Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up
Router(config-if)#ex
Router(config)#ex
Router#
%SYS-5-CONFIG_I: Configured from console by console
Router#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
Router(config)#interface fastEthernet 0/1
Router(config-if)#ip address 172.17.30.1 255.255.255.0
Router(config-if)#no shut
%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up
Router(config)#ex
Router#
%SYS-5-CONFIG_I: Configured from console by console
3. Buat VLAN 10 dan 30 pada switch dengan menggunakan perintah :
Switch>en
Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#vlan 10
Switch(config-vlan)#name A
Switch(config-vlan)#vlan 30
Switch(config-vlan)#name B
Switch(config-vlan)#exit
Switch(config)#interface range fastEthernet 0/1, fastEthernet 0/11
Switch(config-if-range)#switchport mode access
Switch(config-if-range)#switchport access vlan 10
Switch(config-if-range)#ex
Switch(config)#
Switch(config)#interface range fastEthernet 0/2, fastEthernet 0/6
Switch(config-if-range)#switchport mode access
Switch(config-if-range)#switchport access vlan 30
Switch(config-if-range)#ex
Switch(config)#ex
Switch#
%SYS-5-CONFIG_I: Configured from console by console
Switch#
Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#vlan 10
Switch(config-vlan)#name A
Switch(config-vlan)#vlan 30
Switch(config-vlan)#name B
Switch(config-vlan)#exit
Switch(config)#interface range fastEthernet 0/1, fastEthernet 0/11
Switch(config-if-range)#switchport mode access
Switch(config-if-range)#switchport access vlan 10
Switch(config-if-range)#ex
Switch(config)#
Switch(config)#interface range fastEthernet 0/2, fastEthernet 0/6
Switch(config-if-range)#switchport mode access
Switch(config-if-range)#switchport access vlan 30
Switch(config-if-range)#ex
Switch(config)#ex
Switch#
%SYS-5-CONFIG_I: Configured from console by console
4. Ping ke pc 1 dan 2
Packet Tracer PC Command Line 1.0
C:\>ping 172.17.0.21
Pinging 172.17.0.21 with 32 bytes of data:
Reply from 172.17.0.21: bytes=32 time=3ms TTL=128
Reply from 172.17.0.21: bytes=32 time=6ms TTL=128
Reply from 172.17.0.21: bytes=32 time=7ms TTL=128
Reply from 172.17.0.21: bytes=32 time=7ms TTL=128
Ping statistics for 172.17.0.21:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 3ms, Maximum = 7ms, Average = 5ms
C:\>ping 172.17.30.23
Pinging 172.17.30.23 with 32 bytes of data:
Request timed out.
Reply from 172.17.30.23: bytes=32 time<1ms TTL=127
Reply from 172.17.30.23: bytes=32 time<1ms TTL=127
Reply from 172.17.30.23: bytes=32 time<1ms TTL=127
Ping statistics for 172.17.30.23:
Packets: Sent = 4, Received = 3, Lost = 1 (25% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
C:\>ping 172.17.0.21
Reply from 172.17.0.21: bytes=32 time=6ms TTL=128
Reply from 172.17.0.21: bytes=32 time=7ms TTL=128
Reply from 172.17.0.21: bytes=32 time=7ms TTL=128
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 3ms, Maximum = 7ms, Average = 5ms
Reply from 172.17.30.23: bytes=32 time<1ms TTL=127
Reply from 172.17.30.23: bytes=32 time<1ms TTL=127
Reply from 172.17.30.23: bytes=32 time<1ms TTL=127
Packets: Sent = 4, Received = 3, Lost = 1 (25% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
Tidak ada komentar:
Posting Komentar