0% found this document useful (0 votes)
50 views3 pages

Vlan Lanjutan

The document describes the configuration of a router and two switches to segment a network into two VLANs (VLAN 100 and 200) and provide DHCP services. It provides the configuration commands to enable interfaces and subinterfaces on the router, assign IP addresses, configure DHCP pools, and exclude addresses. It also shows configuring the switches to define and name the VLANs, set trunking between devices, and assign access ports to each VLAN. An alternative "curang" or cheating method is also provided using configuration mode instead of configuration terminal mode.

Uploaded by

EL Putra Omega
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
50 views3 pages

Vlan Lanjutan

The document describes the configuration of a router and two switches to segment a network into two VLANs (VLAN 100 and 200) and provide DHCP services. It provides the configuration commands to enable interfaces and subinterfaces on the router, assign IP addresses, configure DHCP pools, and exclude addresses. It also shows configuring the switches to define and name the VLANs, set trunking between devices, and assign access ports to each VLAN. An alternative "curang" or cheating method is also provided using configuration mode instead of configuration terminal mode.

Uploaded by

EL Putra Omega
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 3

Router :

Aktifkan interface fisik port 1


interface GigabitEthernet0/0
no shut
!
Daftarkan vlan pada interface fisik dan berikan ip address
interface GigabitEthernet0/0.100
encapsulation dot1Q 100
ip address 192.168.1.1 255.255.255.0
!
interface GigabitEthernet0/0.200
encapsulation dot1Q 200
ip address 192.168.2.1 255.255.255.0
!
Aktifkan interface fisik menuju server dan berikan ip address
!
interface GigabitEthernet0/1
ip address 192.168.3.1 255.255.255.252
no shut
!
Berikan service DHCP pada vlan
ip dhcp pool vlan100
network 192.168.1.0 255.255.255.0
default-router 192.168.1.1
dns-server 192.168.3.2
!
ip dhcp pool vlan200
network 192.168.2.0 255.255.255.0
default-router 192.168.2.1
dns-server 192.168.3.2
!
Exclude ip dhcp pada port interface router dan sever
ip dhcp excluded-address 192.168.1.1
ip dhcp excluded-address 192.168.2.1

switch 1:

Ubah hostname
vlan 100
name vlan100
!
vlan 200
name vlan200
Aktifkan mode trunk pada interface yang terhubung secara fisik antara router-switch
dan switch-switch
Interface ra fa0/1-2
switchport mode trunk
!
Masukkan interface ke vlan-id dengan mode acces
interface ra fa0/3-10
switchport access vlan 100
switchport mode access
!
interface ra fa0/11-20
switchport access vlan 200 switchport mode access

switch 2 :
Ubah hostname
vlan 100
name vlan100
!
vlan 200
name vlan200
Aktifkan mode trunk pada interface yang terhubung secara fisik antara router-switch
dan switch-switch
Interface fa0/1
switchport mode trunk
!
Masukkan interface ke vlan-id dengan mode acces
interface ra fa0/3-10
switchport access vlan 100
switchport mode access
!
interface ra fa0/11-20
switchport access vlan 200 switchport mode access

Cara Curang

Router :

en
conf t
interface GigabitEthernet0/0
no shut
ex
interface GigabitEthernet0/0.100
encapsulation dot1Q 100
ip address 192.168.1.1 255.255.255.0
ex
interface GigabitEthernet0/0.200
encapsulation dot1Q 200
ip address 192.168.2.1 255.255.255.0
ex
interface GigabitEthernet0/1
ip address 192.168.3.1 255.255.255.252
no shut
ex
ip dhcp pool vlan100
network 192.168.1.0 255.255.255.0
default-router 192.168.1.1
dns-server 192.168.3.2
ex
ip dhcp pool vlan200
network 192.168.2.0 255.255.255.0
default-router 192.168.2.1
dns-server 192.168.3.2
ex
ip dhcp excluded-address 192.168.1.1
ip dhcp excluded-address 192.168.2.1

switch 1:

en
conf t
vlan 100
name vlan100
ex
vlan 200
name vlan200
ex
Interface ra fa0/1-2
switchport mode trunk
ex
interface ra fa0/3-10
switchport access vlan 100
switchport mode access
ex
interface ra fa0/11-20
switchport access vlan 200
switchport mode access
ex

switch 2 :

en
conf t
vlan 100
name vlan100
ex
vlan 200
name vlan200
ex
Interface fa0/1
switchport mode trunk
ex
interface ra fa0/3-10
switchport access vlan 100
switchport mode access
ex
interface ra fa0/11-20
switchport access vlan 200
switchport mode access

You might also like