096.55555.69
096.888.6300
0915.183535
0915.363436

CCNA 5.0 (CCNA R&S) Bài lab Vlan-trunk-vtp-intervlan-layer3-switch-ktcntn

CCNA 5.0 (CCNA R&S) Bài lab Vlan-trunk-vtp-intervlan-layer3-switch-ktcntn

Đề bài

ccna-Vlan-trunk-vtp-intervlan-layer3-switch

ccna-Vlan-trunk-vtp-intervlan-layer3-switch

Cấu hình layer 3 switch S3

Switch>
Switch>en
Switch#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Switch(config)#hos
Switch(config)#hostname S3
S3(config)#ena
S3(config)#enable pas
S3(config)#enable password cisco
S3(config)#li
S3(config)#line con
S3(config)#line console 0
S3(config-line)#pas
S3(config-line)#password cisco
S3(config-line)#login
S3(config-line)#exit
S3(config)#li
S3(config)#line vt
S3(config)#line vty 0 4
S3(config-line)#pas
S3(config-line)#password cisco
S3(config-line)#login
S3(config-line)#exit
S3(config)#vlan 10
S3(config-vlan)#name student
S3(config-vlan)#exit
S3(config)#vlan 20
S3(config-vlan)#name
S3(config-vlan)#name teacher
S3(config-vlan)#exit
S3(config)#vlan 30
S3(config-vlan)#name manager
S3(config-vlan)#exit
S3(config)#vtp mod
S3(config)#vtp mode server
Device mode already VTP SERVER.
S3(config)#vtp do
S3(config)#vtp domain cisco
Domain name already set to cisco.
S3(config)#vtp pas
S3(config)#vtp password class
Setting device VLAN database password to class
S3(config)#int vlan 10
S3(config-if)#
%LINK-5-CHANGED: Interface Vlan10, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan10, changed state to up

S3(config-if)#no shut
S3(config-if)#ip add
S3(config-if)#ip address 192.168.10.1 255.255.255.0
S3(config-if)#exit
S3(config)#int vlan 20
S3(config-if)#
%LINK-5-CHANGED: Interface Vlan20, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan20, changed state to up

S3(config-if)#no shut
S3(config-if)#
S3(config-if)#ip add
S3(config-if)#ip address 192.168.20.1 255.255.255.0
S3(config-if)#exit
S3(config)#int vlan 30
S3(config-if)#no shut
S3(config-if)#ip add
S3(config-if)#ip address 192.168.30.1 255.255.255.0
S3(config-if)#exit
S3(config)#int ra
S3(config)#int range f0/1-2
S3(config-if-range)#sw
S3(config-if-range)#switchport tr
S3(config-if-range)#switchport trunk en
S3(config-if-range)#switchport trunk encapsulation do
S3(config-if-range)#switchport trunk encapsulation dot1q
S3(config-if-range)#sw
S3(config-if-range)#switchport mo
S3(config-if-range)#switchport mode tr
S3(config-if-range)#switchport mode trunk
S3(config-if-range)#exit
S3(config)#int f0/3
S3(config-if)#sw
S3(config-if)#switchport mo
S3(config-if)#switchport mode ac
S3(config-if)#switchport mode access
S3(config-if)#sw
S3(config-if)#switchport ac
S3(config-if)#switchport access vl
S3(config-if)#switchport access vlan 30
S3(config-if)#exit
S3(config)#ip rout
S3(config)#ip routi
S3(config)#ip routing
S3(config)#exit
S3#
%SYS-5-CONFIG_I: Configured from console by console

S3#wr
Building configuration…
[OK]
S3#show vtp status
VTP Version                     : 2
Configuration Revision          : 6
Maximum VLANs supported locally : 1005
Number of existing VLANs        : 8
VTP Operating Mode              : Server
VTP Domain Name                 : cisco
VTP Pruning Mode                : Disabled
VTP V2 Mode                     : Disabled
VTP Traps Generation            : Disabled
MD5 digest                      : 0x23 0x72 0x6E 0x29 0x87 0xE6 0x3C 0xC2
Configuration last modified by 0.0.0.0 at 3-1-93 00:03:24
Local updater ID is 192.168.10.1 on interface Vl10 (lowest numbered VLAN interface found)
S3#

 

Cấu hình trên S1, 3 giống bài này

Tags:
Nhắn tin qua Facebook