You are on page 1of 5

LAB CHAPTER 4 - CCNA3 (VTP)

1. Cu hnh c bn
Switch S1 Switch>enable Switch#configure t Switch#configure terminal Switch(config)#hostname S1 S1(config)#enable secret haiphong S1(config)#line console 0 S1(config-line)#password thainguyen S1(config-line)#login S1(config-line)#exit S1(config)#line vty 0 S1(config-line)#password hanoi S1(config-line)#login S1(config-line)#exit S1(config)#interface range fastEthernet 0/1-24 S1(config-if-range)#shutdown S1(config-if-range)#exit S1(config)#interface range gigaethernet1/1-2 S1(config-if-range)#shutdown S1(config-if-range)#exit Switch S2 Switch>enable Switch#configure t Switch#configure terminal Switch(config)#hostname S2 S2(config)#enable secret haiphong S2(config)#line console 0 S2(config-line)#password thainguyen S2(config-line)#login S2(config-line)#exit S2(config)#line vty 0 S2(config-line)#password hanoi S2(config-line)#login S2(config-line)#exit S2(config)#interface range fastEthernet 0/1-24 S2(config-if-range)#shutdown S2(config-if-range)#exit S2(config)#interface range gigaethernet1/1-2 S2(config-if-range)#shutdown S2(config-if-range)#exit Switch S3 Switch>enable Switch#configure t Switch#configure terminal Switch(config)#hostname S3 S3(config)#enable secret haiphong S3(config)#line console 0 S3(config-line)#password thainguyen
All contents are Copyright 19922007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 1 of 5

CCNA Exploration LAN Switching and Wireless: Inter-VLAN Routing

Compose Lab

S3(config-line)#login S3(config-line)#exit S3(config)#line vty 0 S3(config-line)#password hanoi S3(config-line)#login S3(config-line)#exit S3(config)#interface range fastEthernet 0/1-24 S3(config-if-range)#shutdown S3(config-if-range)#exit S3(config)#interface range gigaethernet1/1-2 S3(config-if-range)#shutdown S3(config-if-range)#exit Switch S4 Switch>enable Switch#configure t Switch#configure terminal Switch(config)#hostname S4 S4(config)#enable secret haiphong S4(config)#line console 0 S4(config-line)#password thainguyen S4(config-line)#login S4(config-line)#exit S4(config)#line vty 0 S4(config-line)#password hanoi S4(config-line)#login S4(config-line)#exit S4(config)#interface range fastEthernet 0/1-24 S4(config-if-range)#shutdown S4(config-if-range)#exit S4(config)#interface range gigaethernet1/1-2 S4(config-if-range)#shutdown S4(config-if-range)#exit

3. Cu hnh VTP
Switch S1 S1(config)#vtp domain cisco S1(config)#vtp version 2 S1(config)#vtp password class S1(config)#vtp mode server Switch S2 S2(config)#vtp domain cisco S2(config)#vtp password class S2(config)#vtp version 2 S2(config)#vtp mode client Switch S3 S3(config)#vtp domain cisco S3(config)#vtp password class S3(config)#vtp version 2
All contents are Copyright 19922007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 2 of 5

CCNA Exploration LAN Switching and Wireless: Inter-VLAN Routing

Compose Lab

S3(config)#vtp mode transparent Switch S4 S4(config)#vtp domain cisco S4(config)#vtp password class S4(config)#vtp version 2 S4(config)#vtp mode client

4. Cu hnh cc cng Trunk


Switch S1 S1(config)#interface range gigabitEthernet 1/1-2 S1(config-if-range)#switchport mode trunk S1(config-if-range)#switchport trunk native vlan 50 S1(config-if-range)#no shutdown S1(config-if-range)#exit Switch S2 S2(config)#interface gigabitEthernet 1/1 S2(config-if)#switchport mode trunk S2(config-if)#switchport trunk native vlan 50 S2(config-if)#no shutdown S2(config-if)#exit Switch S3 S3(config)#interface range gigabitEthernet 1/1-2 S3(config-if-range)#switchport mode trunk S3(config-if-range)#switchport trunk native vlan 50 S3(config-if-range)#no shutdown S3(config-if-range)#exit Switch S4 S4(config)#interface gigabitEthernet 1/1 S4(config-if)#switchport mode trunk S4(config-if)#switchport trunk native vlan 50 S4(config-if)#no shutdown S4(config-if)#exit

5. Cu hnh VLAN
Switch S1 S1(config)#vlan 10 S1(config-vlan)#name QuanLy S1(config-vlan)#exit S1(config)#vlan 20 S1(config-vlan)#name SinhVien S1(config-vlan)#exit S1(config)#vlan 30 S1(config-vlan)#name GiaoVien S1(config-vlan)#exit S1(config)#vlan 40 S1(config-vlan)#name KhachHang
All contents are Copyright 19922007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 3 of 5

CCNA Exploration LAN Switching and Wireless: Inter-VLAN Routing

Compose Lab

S1(config-vlan)#exit Switch S3 S3(config)#vlan 10 S3(config-vlan)#name QuanLy S3(config-vlan)#exit S3(config)#vlan 40 S3(config-vlan)#name KhachHang S3(config-vlan)#exit

6. Cu hnh cc cng c PC ni vo
Switch S2 S2(config)#interface range fa0/1-3 S2(config-if-range)#switchport mode access S2(config-if-range)#switchport port-security S2(config-if-range)#switchport port-security maximum 1 S2(config-if-range)#switchport port-security mac-address sticky S2(config-if)#switchport port-security violation protect S2(config-if-range)#no shutdown S2(config-if-range)#exit S2(config)#interface fa0/1 S2(config-if)#switchport access vlan 10 S2(config-if)#exit S2(config)#interface fa0/2 S2(config-if)#switchport access vlan 20 S2(config-if)#exit S2(config)#interface fa0/3 S2(config-if)#switchport access vlan 30 S2(config-if)#exit Switch S3 S3(config)#interface range fa0/1-2 S3(config-if-range)#switchport mode access S3(config-if-range)#switchport access vlan 40 S3(config-if-range)#switchport port-security S3(config-if-range)#switchport port-security maximum 1 S3(config-if-range)#switchport port-security mac-address sticky S3(config-if-range)#switchport port-security violation restrict S3(config-if-range)#no shutdown Switch S4 S4(config)#interface range fa0/1-4 S4(config-if-range)#switchport mode access S4(config-if-range)#switchport port-security S4(config-if-range)#switchport port-security maximum 1 S4(config-if-range)#switchport port-security mac-address sticky S4(config-if-range)#switchport port-security violation shutdown S4(config-if-range)#no shutdown
All contents are Copyright 19922007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 4 of 5

CCNA Exploration LAN Switching and Wireless: Inter-VLAN Routing

Compose Lab

S4(config)#interface fa0/1 S4(config-if)#switchport access vlan 40 S4(config-if)#exit S4(config)#interface fa0/2 S4(config-if)#switchport access vlan 20 S4(config-if)#exit S4(config)#interface fa0/3 S4(config-if)#switchport access vlan 30 S4(config-if)#exit S4(config)#interface fa0/4 S4(config-if)#switchport access vlan 20 S4(config-if)#exit

7. Cu hnh cc Interface VLAN dnh cho VLAN qun l


Switch S1 S1(config)#interface vlan 10 S1(config-if)#ip address 10.0.0.1 255.0.0.0 S1(config-if)#exit Switch S2 S2(config)#interface vlan 10 S2(config-if)#ip address 10.0.0.2 255.0.0.0 S2(config-if)#exit Switch S3 S3(config)#interface vlan 10 S3(config-if)#ip address 10.0.0.3 255.0.0.0 S3(config-if)#exit Switch S4 S4(config)#interface vlan 10 S4(config-if)#ip address 10.0.0.4 255.0.0.0 S4(config-if)#exit

All contents are Copyright 19922007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information.

Page 5 of 5

You might also like