Lompat ke konten Lompat ke sidebar Lompat ke footer

VLAN

VLAN adalah pasrtisi secara logical buat jaringan layer 2 (switch)

Multilayer switch bisa beroperasi di layer 2 dan 3

Trunk adalah port yang disetting diswitch agar bisa membawa vlan2, berguna untuk mengoper informasi vlan.

Native vlan adl vlan yg dikirim ttpi tdk ditag

Router > user mode
Router# Privileged Mode
Router(config)# Global configuration

Router(config)# hostname xxxx

Router(config)# enable secret xxxx

Router(config)# interface fa 0/0
Router(config-if)# ip add switch+subnet
Router(config-if)# no sh

Router(config)# interface fa 0/1
Router(config-if)# ip add switch+subnet
Router(config-if)# no sh

How to create a vlan?
Switch(config)# vlan _____
Switch(config-vlan)# name _______

How to assign van to a port
Switch(config)#interface______
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan_________

Switch(config)# show vlan brief

RTR_STPI(config)#int fa0/0.30
RTR_STPI(config-subif)#encapsulation dot1Q 30
RTR_STPI(config-subif)#ip add 192.168.30.1 255.255.255.0
RTR_STPI(config-subif)#exit
RTR_STPI(config)#ex
RTR_STPI#

Router(config)#int se0/3/0
Router(config-if)#ip add 10.1.1.1 255.255.255.0

Router(config)#ip route 192.168.100.0 255.255.255.0 se0/3/0
Router(config)#ip route 192.168.10.0 255.255.255.0 se0/3/0
BINUS(config)#ip route 192.168.20.0 255.255.255.0 se0/3/0

Switch(config)#int vlan 10
Switch(config-if)#ip add 192.168.100.50 255.255.255.0
Switch(config-if)#ex
Switch(config)#ip default-gateway 192.168.100.1
Switch(config)#

TUGAS !!!
192.168.11.X/24 (100) VLAN 11
192.168.21.X/24 (100) VLAN 21
192.168.160.X/24 (100) VLAN 16
192.168.160.X/24 (200) VLAN 16
10.1.1.X/24 (1/2)

RTR_STPI>
RTR_STPI>show ip route
10.0.0.0/24 is subnetted, 1 subnets
C 10.1.1.0 is directly connected, Serial0/3/0
C 192.168.11.0/24 is directly connected, FastEthernet0/0.11
C 192.168.21.0/24 is directly connected, FastEthernet0/0.21
S 192.168.100.0/24 is directly connected, Serial0/3/0
S 192.168.160.0/24 is directly connected, Serial0/3/0
RTR_STPI(config)#no ip route 192.168.100.0 255.255.255.0 se0/3/0
RTR_STPI(config)#no ip route 192.168.160.0 255.255.255.0 se0/3/0
RTR_STPI(config)#exit
RTR_STPI#show ip route
10.0.0.0/24 is subnetted, 1 subnets
C 10.1.1.0 is directly connected, Serial0/3/0
C 192.168.11.0/24 is directly connected, FastEthernet0/0.11
C 192.168.21.0/24 is directly connected, FastEthernet0/0.21
RTR_STPI(config)#router ?
bgp Border Gateway Protocol (BGP)
eigrp Enhanced Interior Gateway Routing Protocol (EIGRP)
ospf Open Shortest Path First (OSPF)
rip Routing Information Protocol (RIP)
RTR_STPI(config)#router rip
RTR_STPI(config-router)#version 2
RTR_STPI(config-router)#no auto-summary
RTR_STPI(config-router)#network ?
A.B.C.D Network number
RTR_STPI(config-router)#network 192.168.11.0
RTR_STPI(config-router)#network 192.168.21.0
RTR_STPI(config-router)#network 10.1.1.0
RTR_STPI(config-router)#

RTR_UNSRI#show ip route
RTR_UNSRI#config t
RTR_UNSRI(config)#no ip route 192.168.1
RTR_UNSRI(config)#no ip route 192.168.11.0 255.255.255.0 se0/3/0
RTR_UNSRI(config)#no ip route 192.168.21.0 255.255.255.0 se0/3/0
RTR_UNSRI#show ip route
10.0.0.0/24 is subnetted, 1 subnets
C 10.1.1.0 is directly connected, Serial0/3/0
C 192.168.160.0/24 is directly connected, FastEthernet0/0.16
RTR_UNSRI#
RTR_UNSRI(config)#router rip
RTR_UNSRI(config-router)#version 2
RTR_UNSRI(config-router)#no auto-summary
RTR_UNSRI(config-router)#network 192.168.160.0
RTR_UNSRI(config-router)#network 10.1.1.0

Posting Komentar untuk "VLAN"