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

Konfigurasi router

Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int fa0/0.10
Router(config-subif)#encap dot1q 10
Router(config-subif)#ip add 192.168.10.1 255.255.255.0
Router(config-subif)#no sh
Router(config-subif)#ex
Router(config)#int fa0/0.20
Router(config-subif)#encap dot1q 20
Router(config-subif)#ip add 192.168.20.1 255.255.255.0
Router(config-subif)#no sh
Router(config-subif)#ex
Router(config)#ex
Router#
%SYS-5-CONFIG_I: Configured from console by console

Router#write
Building configuration...
[OK]
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int fa0/0
Router(config-if)#no sh

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

%LINK-5-CHANGED: Interface FastEthernet0/0.10, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.10, changed state to up

%LINK-5-CHANGED: Interface FastEthernet0/0.20, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.20, changed state to up

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

Konfigurasi switch 0
Switch>en
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#vlan 10
Switch(config-vlan)#vlan 20
Switch(config-vlan)#ex
Switch(config)#int fa0/1
Switch(config-if)#sw mo tr

Switch(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to down

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up

Switch(config-if)#ex
Switch(config)#int fa0/2
Switch(config-if)#sw mo tr

Switch(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to down

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to up

Switch(config-if)#ex
Switch(config)#vlan 10
Switch(config-vlan)#int fa0/2
Switch(config-if)#ex
Switch(config)#

Konfigurasi switch 1

Switch>en
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#vlan 10
Switch(config-vlan)#vlan 20
Switch(config-vlan)#ex
Switch(config)#int fa0/1
Switch(config-if)#sw mo tr

Switch(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to down

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up

Switch(config-if)#ex
Switch(config)#int fa0/2
Switch(config-if)#sw mo tr

Switch(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to down

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to up

Switch(config-if)#ex
Switch(config)#vlan 10
Switch(config-vlan)#int fa0/2
Switch(config-if)#ex
Switch(config)#

Konfigurasi IP server DHCP

Konfigurasi IP server DNS


Konfigurasi switch 0 vlan 20

Switch(config)#vlan 20
Switch(config-vlan)#int range fa0/3-4
Switch(config-if-range)#sw mo acc
Switch(config-if-range)#sw acc vlan 20
Switch(config-if-range)#ex
Switch(config)#

Konfigurasi DHCP relay vlan 20 di router

Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int fa0/0.20
Router(config-subif)#encap dot1q 20
Router(config-subif)#ip add 192.168.20.1 255.255.255.0
Router(config-subif)#ip helper-address 192.168.10.254
Router(config-subif)#ex
Router(config)#ex
Router#
%SYS-5-CONFIG_I: Configured from console by console

Router#

Konfigurasi dhcp vlan 20 di server dhcp


Hasil di PC 0 vlan 20

Konfigurasi router dan MLS

Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int fa0/1
Router(config-if)#ip add 10.10.10.1 255.255.255.0
Router(config-if)#

Switch>en
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#int fa0/1
Switch(config-if)#ip add 10.10.10.2 255.255.255.0
^
% Invalid input detected at '^' marker.
Switch(config-if)#no sw
Switch(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to down

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up

Switch(config-if)#ip add 10.10.10.2 255.255.255.0


Switch(config-if)#do ping 10.10.10.1

Type escape sequence to abort.


Sending 5, 100-byte ICMP Echos to 10.10.10.1, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 0/0/0 ms

Switch(config-if)#

Konfigurasi routing di router dan MLS

Router(config)#ip route 192.168.30.0 255.255.255.0 10.10.10.2


Router(config)#ip route 192.168.40.0 255.255.255.0 10.10.10.2
Router(config)#ip route 192.168.50.0 255.255.255.0 10.10.10.2
Router(config)#

Switch(config)#ip route 10.10.10.0 255.255.255.0 10.10.10.1


Switch(config)#ip route 192.168.10.0 255.255.255.0 10.10.10.1
Switch(config)#ip route 192.168.20.0 255.255.255.0 10.10.10.1
Switch(config)#

Konfigurasi vlan 30 dan dhcp relay di router

Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int fa0/1.30
Router(config-subif)#encap dot1q 30
Router(config-subif)#ip add 192.168.30.1
% Incomplete command.
Router(config-subif)#ip add 192.168.30.1 255.255.255.0
Router(config-subif)#

Server dhcp vlan 30

Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int fa0/1.30
Router(config-subif)#encap dot1q 30
Router(config-subif)#ip add 192.168.30.1
% Incomplete command.
Router(config-subif)#ip add 192.168.30.1 255.255.255.0
Router(config-subif)#ip helper-address 192.168.10.254
Router(config-subif)#

Konfigurasi MLS

Switch>en
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#int fa0/1
Switch(config-if)#sw mo trunk
Command rejected: An interface whose trunk encapsulation is "Auto" can not be configured to
"trunk" mode.
Switch(config-if)#ex
Switch(config)#int fa0/1.30
% Only routers can have sub interfaces in this version.
Switch(config)#int fa0/1
Switch(config-if)#sw trunk encap dot1q
Switch(config-if)#sw mo trunk
Switch(config-if)#ex
Switch(config)#ip routing
Switch(config)#vlan 30
Switch(config-vlan)#int vlan 30
Switch(config-if)#
%LINK-5-CHANGED: Interface Vlan30, changed state to up

Switch(config-if)#ip add 192.168.30.1 255.255.255.0


Switch(config-if)#ex
Switch(config)#ip routing
Switch(config)#vlan 40
Switch(config-vlan)#int vlan 40
Switch(config-if)#
%LINK-5-CHANGED: Interface Vlan40, changed state to up

Switch(config-if)#ip add 192.168.40.1 255.255.255.0


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

Switch#sh vlan

VLAN Name Status Ports


---- -------------------------------- --------- -------------------------------
1 default active Fa0/1, Fa0/2, Fa0/3, Fa0/4
Fa0/5, Fa0/6, Fa0/7, Fa0/8
Fa0/9, Fa0/10, Fa0/11, Fa0/12
Fa0/13, Fa0/14, Fa0/15, Fa0/16
Fa0/17, Fa0/18, Fa0/19, Fa0/20
Fa0/21, Fa0/22, Fa0/23, Fa0/24
Gig0/1, Gig0/2
30 VLAN0030 active
40 VLAN0040 active
1002 fddi-default act/unsup
1003 token-ring-default act/unsup
1004 fddinet-default act/unsup
1005 trnet-default act/unsup

VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
1 enet 100001 1500 - - - - - 0 0
30 enet 100030 1500 - - - - - 0 0
40 enet 100040 1500 - - - - - 0 0

Switch#

Konfigurasi switch 2 vlan 30

Switch>en
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#vlan 30
Switch(config-vlan)#ex
Switch(config)#int fa0/1
Switch(config-if)#sw mo trunk
Switch(config-if)#ex
Switch(config)#int range fa0/2-3
Switch(config-if-range)#sw mo acc
Switch(config-if-range)#sw acc vlan 30
Switch(config-if-range)#ex
Switch(config)#ex
Switch#
%SYS-5-CONFIG_I: Configured from console by console

Switch#write
Building configuration...
[OK]
Switch#

Konfigurasi routing di MLS

Switch(config-if)#ex
Switch(config)#ip routing
Switch(config)#vlan 30
Switch(config-vlan)#int vlan 30
Switch(config-if)#no ip add
Switch(config-if)#ip add 192.168.30.2 255.255.255.0
Switch(config-if)#ex
Switch(config)#int fa0/1
Switch(config-if)#vlan 30
Switch(config-vlan)#ex
Switch(config)#int fa0/1
Switch(config-if)#sw trunk encap dot1
Switch(config-if)#sw trunk encap dot1q
Switch(config-if)#sw mo trunk
Switch(config-if)#ex
Switch(config)#ex
Switch#
%SYS-5-CONFIG_I: Configured from console by console

Switch#sh int trunk


Port Mode Encapsulation Status Native vlan
Fa0/1 on 802.1q trunking 1
Fa0/2 on 802.1q trunking 1

Port Vlans allowed on trunk


Fa0/1 1-1005
Fa0/2 1-1005

Port Vlans allowed and active in management domain


Fa0/1 1,30,40
Fa0/2 1,30,40

Port Vlans in spanning tree forwarding state and not pruned


Fa0/1 1,30,40
Fa0/2 1,30,40
Switch#

Konfigurasi vtp server di switch server

Switch>EN
Switch#CONF T
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#
Switch(config)#int fa0/2
Switch(config-if)#sw mo trunk

Switch(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to down

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to up

Switch(config-if)#ex
Switch(config)#vtp mo server
Device mode already VTP SERVER.
Switch(config)#vtp domain smksragi
Changing VTP domain name from NULL to smksragi
Switch(config)#vtp password smksragi
Setting device VLAN database password to smksragi
Switch(config)#int fa0/2
Switch(config-if)#sw mo tr
Switch(config-if)#ex
Switch(config)#ex
Switch#
%SYS-5-CONFIG_I: Configured from console by console

Switch#sh vtp status


VTP Version : 2
Configuration Revision : 7
Maximum VLANs supported locally : 255
Number of existing VLANs : 8
VTP Operating Mode : Server
VTP Domain Name : smksragi
VTP Pruning Mode : Disabled
VTP V2 Mode : Disabled
VTP Traps Generation : Disabled
MD5 digest : 0x15 0xAA 0x9D 0xA3 0x84 0xE6 0x30 0xC1
Configuration last modified by 192.168.30.1 at 3-1-93 01:10:31
Local updater ID is 0.0.0.0 (no valid interface found)
Switch#

Konfigurasi vtp client switch client

Switch>en
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#int fa0/1
Switch(config-if)#sw mo trunk
Switch(config-if)#ex
Switch(config)#int range fa0/2-3
Switch(config-if-range)#sw mo acc
Switch(config-if-range)#sw acc vlan 40
% Access VLAN does not exist. Creating vlan 40
Switch(config-if-range)#ex
Switch(config)#ex
Switch#
%SYS-5-CONFIG_I: Configured from console by console

Switch#sh vlan

VLAN Name Status Ports


---- -------------------------------- --------- -------------------------------
1 default active Fa0/4, Fa0/5, Fa0/6, Fa0/7
Fa0/8, Fa0/9, Fa0/10, Fa0/11
Fa0/12, Fa0/13, Fa0/14, Fa0/15
Fa0/16, Fa0/17, Fa0/18, Fa0/19
Fa0/20, Fa0/21, Fa0/22, Fa0/23
Fa0/24
40 VLAN0040 active Fa0/2, Fa0/3
1002 fddi-default act/unsup
1003 token-ring-default act/unsup
1004 fddinet-default act/unsup
1005 trnet-default act/unsup

VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
1 enet 100001 1500 - - - - - 0 0
40 enet 100040 1500 - - - - - 0 0
1002 fddi 101002 1500 - - - - - 0 0
1003 tr 101003 1500 - - - - - 0 0
1004 fdnet 101004 1500 - - - ieee - 0 0
1005 trnet 101005 1500 - - - ibm - 0 0

Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#vtp mo client
Setting device to VTP CLIENT mode.
Switch(config)#vtp domain smksragi
Domain name already set to smksragi.
Switch(config)#vtp password smksragi
Setting device VLAN database password to smksragi
Switch(config)#ex
Switch#
%SYS-5-CONFIG_I: Configured from console by console

Switch#sh vtp status


VTP Version : 2
Configuration Revision : 7
Maximum VLANs supported locally : 255
Number of existing VLANs : 8
VTP Operating Mode : Client
VTP Domain Name : smksragi
VTP Pruning Mode : Disabled
VTP V2 Mode : Disabled
VTP Traps Generation : Disabled
MD5 digest : 0x15 0xAA 0x9D 0xA3 0x84 0xE6 0x30 0xC1
Configuration last modified by 192.168.30.1 at 3-1-93 01:10:31
Switch#
Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#ex
Switch#
%SYS-5-CONFIG_I: Configured from console by console

Switch#sh vlan

VLAN Name Status Ports


---- -------------------------------- --------- -------------------------------
1 default active Fa0/4, Fa0/5, Fa0/6, Fa0/7
Fa0/8, Fa0/9, Fa0/10, Fa0/11
Fa0/12, Fa0/13, Fa0/14, Fa0/15
Fa0/16, Fa0/17, Fa0/18, Fa0/19
Fa0/20, Fa0/21, Fa0/22, Fa0/23
Fa0/24
30 VLAN0030 active
40 VLAN0040 active Fa0/2, Fa0/3
50 VLAN0050 active
1002 fddi-default act/unsup
1003 token-ring-default act/unsup
1004 fddinet-default act/unsup
1005 trnet-default act/unsup

VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
1 enet 100001 1500 - - - - - 0 0
30 enet 100030 1500 - - - - - 0 0
40 enet 100040 1500 - - - - - 0 0

Switch#

Semua client memperoleh ip dari DHCP server

You might also like