LAB 5 Cisco : InterVlan Router ON Stick
Topologi yang kita gunakan seperti pada gambar dibawah ini.
Pada Switch1 tambahkan konfigurasi berikut.
Pada Switch2 tambahkan konfigurasi berikut.Switch>
Switch>en
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#hostna SW1
SW1(config)#vlan 10
SW1(config-vlan)#name vlan10
SW1(config-vlan)#vlan 20
SW1(config-vlan)#name vlan20
SW1(config-vlan)#int fa0/1
SW1(config-if)#sw mode acc
SW1(config-if)#sw acc vlan 10
SW1(config-if)#int fa0/2
SW1(config-if)#swi mode acc
SW1(config-if)#swi acc vlan 20
SW1(config-if)#do sh vlan br
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active 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
10 vlan10 active Fa0/1
20 vlan20 active Fa0/2
1002 fddi-default active
1003 token-ring-default active
1004 fddinet-default active
1005 trnet-default active
SW1(config-if)#int fa0/3
SW1(config-if)#swi mode trunk
SW1(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
%LINK-5-CHANGED: Interface FastEthernet0/4, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/4, changed state to up
SW1(config-if)#
SW1(config-if)#int fa0/4
SW1(config-if)#sw mode trunk
SW1(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/4, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/4, changed state to up
SW1(config-if)#
Tambahkan konfigurasi berikut pada Router untuk encapsulation.Switch>
Switch>en
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#hostname SW2
SW2(config)#vlan 10
SW2(config-vlan)#name vlan10
SW2(config-vlan)#vlan 20
SW2(config-vlan)#name vlan20
SW2(config-vlan)#int fa0/1
SW2(config-if)#swi mode acc
SW2(config-if)#sw acc vlan 10
SW2(config-if)#int fa0/2
SW2(config-if)#swi mode acc
SW2(config-if)#swi acc vlan 20
SW2(config-if)#do sh vlan br
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active 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
10 vlan10 active Fa0/1
20 vlan20 active Fa0/2
1002 fddi-default active
1003 token-ring-default active
1004 fddinet-default active
1005 trnet-default active
SW2(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
SW2(config-if)#int fa0/3
SW2(config-if)#swi mode trunk
SW2(config-if)#int
Router (config)#interface FastEthernet0/1.10
Router(config-subif)#encapsulation dot1Q 10
Router(config-subif)#ip address 10.10.10.1 255.255.255.0
Router(config-subif)#interface FastEthernet0/1.20
Router(config-subif)#encapsulation dot1Q 20
Router(config-subif)#ip address 20.20.20.1 255.255.255.0
Berikan IP Address pada PC Client tersebut
IP Address PC0 (Anggota Vlan10)
IP Address PC1 (Anggota Vlan20)
IP address PC3 (Anggota Vlan10)
IP Address PC4 (Anggota Vlan20)
Sukses ping lintas vlan, yakni dari PC Client vlan10 ke PC Client vlan20
0 comments:
Post a Comment