Hari yang mudah untuk orang yang hebatt

Post Page Advertisement [Top]

Inter VLAN Routing





















Apa tujuan dari inter vlan routing?
Inter VLAN routing merupakan proses mem-forward lalu lintas dari satu jaringan VLAN ke VLAN lain atau dengan kata lain mengubungkan host-host yang berada pada VLAN yang berbeda. Komputer dalam sebuah VLAN tidak dapat terhubung dengan komputer lain yang berbeda VLAN karena berada pada broadcast domain yang berbeda. Nah untuk menghubungkan VlAN yang berbeda di butuhkan router.


Case
  • Konfigurasi inter vlan
  • Antar swicth di mode  trunk dan hanya vlan 20 yang boleh lewat

Konfigurasi


Swicth 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)#vlan 30

Switch(config-vlan)#int f0/1

Switch(config-if)#switchport mode access

Switch(config-if)#switchport access vlan 10

Switch(config-if)#ex

Switch(config)#do wr

Building configuration...

[OK]

Switch(config)#

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


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

%SPANTREE-2-RECV_PVID_ERR: Received 802.1Q BPDU on non trunk FastEthernet0/3 VLAN1.


%SPANTREE-2-BLOCK_PVID_LOCAL: Blocking FastEthernet0/3 on VLAN0001. Inconsistent port type.



Switch(config)#int f0/2

Switch(config-if)#sw mode 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


Nah tadi kan case nya hanya vlan 20 yang boleh lewat jadi tinggal  tambahkan command  switchport trunk allowed 20 di interfacce f0/2 yang mengarah ke router jadi nanti yang bisa lewat hanya vlan 20 saja



Switch(config-if)#sw trunk allowed vlan 20

Switch(config-if)#ex

Switch(config)#do wr

Building configuration...

[OK]

Switch(config)#


Swicth 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)#vlan 30
Switch(config-vlan)#int f0/1
Switch(config-if)#switchport mode access 
Switch(config-if)#switchport access vlan 20
Switch(config-if)#ex
Switch(config)#vlan 30
Switch(config-vlan)#int f0/2
Switch(config-if)#sw
Switch(config-if)#switchport mode access 
Switch(config-if)#switchport access vlan 30
Switch(config-if)#ex
Switch(config)#do wr
Building configuration...
[OK]
Switch(config)#ex
Switch#

%SYS-5-CONFIG_I: Configured from console by console


Switch#

Switch#conf t

Enter configuration commands, one per line.  End with CNTL/Z.

Switch(config)#int f0/3

Switch(config-if)#switchport mode trunk 


Switch(config-if)#

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


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





Konfigurasi di Router


Router>en
Router#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#int g0/0/0
Router(config-if)#ip add 192.168.1.1 255.255.255.0
Router(config-if)#no sh

Router(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/0/0, changed state to up

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


 (Gateway vlan 20)

Router(config-if)#ex
Router(config)#int g0/0/0.20
Router(config-subif)#
%LINK-5-CHANGED: Interface GigabitEthernet0/0/0.20, changed state to up

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

Router(config-subif)#encapsulation dot1Q 20
Router(config-subif)#ip add 20.20.20.1 255.255.255.0
Router(config-subif)#
Router(config-subif)#

Kita cek apakah berhasil






Yeaayyy berhasil ternyata silhkan bisa di coba


Referensi

Workbook CCNA v127 .1.1.3






Tidak ada komentar:

Posting Komentar