Setting VLAN Switch 3 dan 2 Router
Switch 1
Switch>en
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#vlan 10
Switch(config-vlan)#name Agus
Switch(config-vlan)#exit
Switch(config)#int fa0/1
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 10
Switch(config-if)#exit
Switch(config)#int fa0/2
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 10
Switch(config-if)#exit
Switch(config)#vlan 20
Switch(config-vlan)#name Riyan
Switch(config-vlan)#exit
Switch(config)#int fa0/3
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 20
Switch(config-if)#exit
Switch(config)#int fa0/4
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 20
Switch(config-if)#exit
Di Fast Foward Time Dulu
Switch(config)#int fa0/5
Switch(config-if)#switchport mode trunk
Switch(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface
FastEthernet0/5, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface
FastEthernet0/5, changed state to up
Switch(config-if)#exit
Switch(config)#exit
Switch#
%SYS-5-CONFIG_I: Configured from console by console
Switch 0
Switch>en
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#vlan 30
Switch(config-vlan)#name Pak_Eko
Switch(config-vlan)#exit
Switch(config)#int fa0/1
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 30
Switch(config-if)#exit
Switch(config)#int fa0/2
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 30
Switch(config-if)#exit
Switch(config)#vlan 40
Switch(config-vlan)#name Pak_Heru
Switch(config-vlan)#exit
Switch(config)#int fa0/3
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 40
Switch(config-if)#exit
Switch(config)#int fa0/4
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 40
Switch(config-if)#exit
Di Fast Foward Time Dulu
Switch(config)#int fa0/5
Switch(config-if)#switchport mode trunk
Switch(config-if)#exit
Switch(config)#exit
Switch#
%SYS-5-CONFIG_I: Configured from console by console
Switch 3
Switch>en
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#vlan 10
Switch(config-vlan)#name Agus
Switch(config-vlan)#exit
Switch(config)#vlan 20
Switch(config-vlan)#name Riyan
Switch(config-vlan)#exit
Di Fast Foward Time Dulu
Switch(config)#int fa0/3
Switch(config-if)#switchport mode trunk
Switch(config-if)#exit
Switch(config)#exit
Switch#
%SYS-5-CONFIG_I: Configured from console by console
Switch#
%LINK-5-CHANGED: Interface FastEthernet0/2, changed state to
up
%LINEPROTO-5-UPDOWN: Line protocol on Interface
FastEthernet0/2, changed state to up
Router 0
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 192.168.5.5 255.255.255.192
Router(config-if)#no shut
Router(config-if)#exit
Router(config)#int fa0/0
Router(config-if)#ip add 192.168.10.10 255.255.255.0
Router(config-if)#no shut
Router(config-if)#exit
Router(config)#int fa0/0.30
Router(config-subif)#encapsulation dot1Q 30
Router(config-subif)#ip add 192.168.30.35 255.255.255.240
Router(config-subif)#no shut
Router(config-subif)#exit
Router(config)#int fa0/0.40
Router(config-subif)#encapsulation dot1Q 40
Router(config-subif)#ip add 192.168.40.49 255.255.255.240
Router(config-subif)#no shut
Setting IP Route
Di Fast Foward Time Dulu
Router(config)#ip route 192.168.70.64 255.255.255.192
192.168.5.6
Router(config)#ip route 192.168.10.32 255.255.255.224
192.168.5.6
Router(config)#ip route 192.168.20.64 255.255.255.224
192.168.5.6
Router(config)#exit
Router#
%SYS-5-CONFIG_I: Configured from console by console
Router 1
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int fa0/0
Router(config-if)#ip add 192.168.70.65 255.255.255.192
Router(config-if)#no shut
Router(config-if)#exit
Router(config)#int fa0/0.10
Router(config-subif)#encapsulation dot1Q 10
Router(config-subif)#ip add 192.168.10.35 255.255.255.224
Router(config-subif)#no shut
Router(config-subif)#exit
Router(config)#int fa0/1.20
Router(config-subif)#encapsulation dot1Q 20
Router(config-subif)#ip add 192.168.20.65 255.255.255.224
Router(config-subif)#no shut
Router(config-subif)#exit
Setting IP Route
Di Fast Foward Time Dulu
Router(config)#ip route 192.168.10.0 255.255.255.0
192.168.5.5
Router(config)#ip route 192.168.30.32 255.255.255.240
192.168.5.5
Router(config)#ip route 192.168.40.48 255.255.255.240
192.168.5.5
Bagikan
Setting VLAN Switch 3 dan 2 Router
4/
5
Oleh
Unknown