Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

Embed Size (px)

Citation preview

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    1/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 1

    BCMSN VERSION 3 LAB

    Lab 2-1 Cu hnh Catalyst 2960 v 3560 Series:Static VLANS, VLAN Trunking, VTP Domain v Modes

    1.Mc tiu:Cu hnh VTP domain, to v qun l Vlan, Dng Inter-Switch Link (ISL) v 802.1Qtrunking tren Catalyst 2960 and 3560 series Ethernet switchesdung CLI

    2.Hng dan:Cau hnh IP nh hnh ve.Cau hnh DLS1, DLS2 la VTP server, ALS1, ALS2 la VTP client.VTP doamain la: SWLAB

    Cau hnh Trunk nh hnh ve.Port noi vao PC la Access port

    3.Cau hnh:Step1: Xoa cau hnh cua switch, xoa Vlan database cua tat ca cac switch:

    Delete flash:vlan.datErase configReload

    Step2: Cau hnh DLS1:Switch#configure terminalEnter configuration commands, one per line. End with CNTL/Z.Switch(config)#hostname DLS1DLS1(config)#interface vlan 1DLS1(config-if)#ip address 10.1.1.101DLS1(config-if)#no shutdownDLS1(config)#end

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    2/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 2

    DLS1#

    Step3: Kiem tra Vlan tren SwitchShow vlan tren ALS1

    Show vlan tren DLS1

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    3/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 3

    Step4: Kiem ta VTP tren Switch:

    Step5: oi VTP domain, va mode kiem tra lai VTP

    DLS1(config)#vtp domain SWLABChanging VTP domain name from NULL to SWLABDLS1(config)#end

    DLS1#configure terminalEnter configuration commands, one per line. End with CNTL/Z.DLS1(config)#vtp mode server

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    4/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 4

    Device mode already VTP SERVER.DLS1(config)#endALS1#configure terminalEnter configuration commands, one per line. End with CNTL/Z.ALS1(config)#vtp mode client

    Setting device to VTP CLIENT mode.ALS1(config)#end

    Kiem tra VTP:

    Step6: Kiem tra trunk:

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    5/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 5

    Cau hnh trunk nh hnh ve:Cau hnh tren DLS1:

    Cau hnh trunk tren ALS1

    Cau hnh trunk tren DLS2

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    6/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 6

    Step7: Kiem tra lai Cau hnh:

    ALS2#show interfaces fa0/7 switchportName: Fa0/7Switchport: EnabledAdministrative Mode: dynamic autoOperational Mode: trunkAdministrative Trunking Encapsulation: dot1qOperational Trunking Encapsulation: dot1qNegotiation of Trunking: OnAccess Mode VLAN: 1 (default)Trunking Native Mode VLAN: 1 (default)

    Administrative Native VLAN tagging: enabledVoice VLAN: noneAdministrative private-vlan host-association: noneAdministrative private-vlan mapping: noneAdministrative private-vlan trunk native VLAN: noneAdministrative private-vlan trunk Native VLAN tagging:enabledAdministrative private-vlan trunk encapsulation: dot1qAdministrative private-vlan trunk normal VLANs: noneAdministrative private-vlan trunk private VLANs: noneOperational private-vlan: noneTrunking VLANs Enabled: ALLPruning VLANs Enabled: 2-1001

    Capture Mode DisabledCapture VLANs Allowed: ALLProtected: falseUnknown unicast blocked: disabledUnknown multicast blocked: disabledAppliance trust: none

    show interfaces trunk tren DLS1:

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    7/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 7

    show interfaces TrenDLS2.DLS2#show interfaces trunk

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    8/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 8

    Dung lenh switchport mode access esee3 port thanh mode access

    Dunh lenh Show interface e kiem tra:

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    9/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 9

    Step9: Kiem tra VTP :Show VTP status tren ALS1 val ALS2:

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    10/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 10

    Step10: Tao Vlan:Tao Vlan tren DLS1:

    Tao Vlan tren DLS2:

    Kiem tra Vlan:

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    11/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 11

    Step11: tao Vlan bang cach khac:

    Gan port vao Vlan 120 tren ALS1 va ALS2:

    Show Vlan e kiem tra:

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    12/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 12

    Step12: at ten cho Vlan:

    Show vlan e kiem tra:

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    13/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 13

    Step13: kiem tra cau hnh tren Switch:

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    14/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 14

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    15/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 15

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    16/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 16

    Lab 3-1 KIEM TRA CAU HNH MAC NH CUA SPANNING TREEPROTOCOL (STP)

    1.Mc tiu:Kiem tra cau hnh mac nh STP cua thiet b kiem tra port block, port forward

    2.Hng dan:Dung lenh Show spanning-tree e kiem tra cau hnh.

    3.Cau hnh:

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    17/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 17

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    18/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 18

    1. Kiem tra switch nao la root2. Root switch c xac nh nh the nao:3. Kiem tra port block.

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    19/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 19

    Lab 3-2 Chnh sa cau hnh mac nh cua Spanning Tree

    1.Mc tiu:Chnh sa lai cau hnh mac nh cua STP:

    2.Cau hnh:Step1: Delete Vlan.dat, xoa Startup configuration, reload lai Switch.Step2:Dunh len Show Spanning-tree em kiem tra default STP ( root switch, root port.)

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    20/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 20

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    21/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 21

    Troubleshooting: neu gap thong bao loi sau:

    Dung lenh sau :

    Step3:Debug tren DLS2:

    Cau hnh DLS1 la Primary root:

    Cau hnh ALS1 la secondary root:

    Kiem tra debug tren DLS2:

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    22/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 22

    Kiem tra priority tren DLS1:

    Hoac dunh leng show spanning-tree:

    Kiem tra priority tren ALS2:

    Step4:Chnh sa lai port priority e cho switch xac nh lai port block va root port:

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    23/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 23

    Dunh lenh: spanning-tree port-priority prioritye chnh lai port priority:

    Show span e kiem tra lai port block.

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    24/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 24

    Step5: Dunh port fast e chnh lai thi gian Chuyen t bloking sang forwarding cua 1 port ( 50s )

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    25/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 25

    Cau hnh port fa 0/6 la port fast va shutdown roi no shut lai:

    Step6: Dung len Spanning-tree cost e chnh lai cost cua port:

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    26/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 26

    oi cost cua port f0/11 va f0/12 thanh 10

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    27/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 27

    Kiem tra cau hnh cua Switch:

    END OF LAB FINAL CONFIGSDLS1#show running-config!hostname DLS1!!spanning-tree vlan 1 priority 24576!!interface FastEthernet0/12spanning-tree port-priority 112!!

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    28/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 28

    End

    DLS2#show running-config!hostname DLS2!!End

    ALS1#show running-config!hostname ALS1!!spanning-tree vlan 1 priority 28672!!interface FastEthernet0/1switchport access vlan 20switchport mode access!interface FastEthernet0/2switchport access vlan 20switchport mode access!interface FastEthernet0/3switchport access vlan 20switchport mode access

    !!interface FastEthernet0/6switchport mode accessspanning-tree portfast!!interface FastEthernet0/11switchport mode accessspanning-tree cost 10!interface FastEthernet0/12spanning-tree cost 10!End

    ALS2#show running-config!

    hostname ALS2!!interface FastEthernet0/11spanning-tree cost 10!interface FastEthernet0/12spanning-tree cost 10!end

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    29/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 29

    Lab 3-3 Chnh Sa Per-VLAN Spanning Tree

    1.Mc tiu:Chnh sa lai cau hnh mac nh cua PVST

    2.Cau hnh:

    Step1: Cau hnh port f0/7 12 lam port trunk va ong goi theo chuan dot1q

    DLS1#configure terminalEnter configuration commands, one per line. End with CNTL/Z.

    DLS1(config)#interface range f0/7 - 12DLS1(config-if-range)#switchport trunk encapsulation dot1qDLS1(config-if-range)#switchport mode trunk

    Step2: Cau hnh tat ca cac switch : VTP mode transparent, vtp domain CISCO. Add vlan10 va 20 vao tat ca cac switch. Dung lenh Show vlan brief e kiem tra.

    DLS1#configure terminalEnter configuration commands, one per line. End with CNTL/Z.DLS1(config)#vtp mode transparentSetting device to VTP TRANSPARENT mode.DLS1(config)#vtp domain CISCOChanging VTP domain name from NULL to CISCO

    DLS1(config)#vlan 10,20DLS1(config-vlan)#end

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    30/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 30

    DLS1#

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    31/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 31

    Step3: oi Priority tren tng Vlan:

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    32/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 32

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    33/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 33

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    34/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 34

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    35/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 35

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    36/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 36

    Step4: Cau hnh RSTP, dung lenh show spanning-tree e kiem tra.

    DLS1(config)#spanning-tree mode rapid-pvst

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    37/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 37

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    38/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 38

    END OF LAB FINAL CONFIGS:

    DLS1#show running-config!hostname DLS1!!vtp domain CISCOvtp mode transparent!!!!spanning-tree vlan 10 priority 4096!!vlan 10,20,50,60,70,80,90,100

    !!!interface FastEthernet0/7switchport trunk encapsulation dot1qswitchport mode trunk!interface FastEthernet0/8switchport trunk encapsulation dot1qswitchport mode trunk!interface FastEthernet0/9switchport trunk encapsulation dot1qswitchport mode trunk!interface FastEthernet0/10switchport trunk encapsulation dot1qswitchport mode trunk

    !interface FastEthernet0/11switchport trunk encapsulation dot1qswitchport mode trunkspanning-tree vlan 20 cost 15!interface FastEthernet0/12switchport trunk encapsulation dot1qswitchport mode trunkspanning-tree vlan 20 cost 15!!End

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    39/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 39

    DLS2#show running-config!hostname DLS2!!vtp domain CISCOvtp mode transparent!!spanning-tree vlan 20 priority 4096!!vlan 10,20,50,60,70,80,90,100!!interface FastEthernet0/7switchport trunk encapsulation dot1qswitchport mode trunk!interface FastEthernet0/8switchport trunk encapsulation dot1qswitchport mode trunk!interface FastEthernet0/9switchport trunk encapsulation dot1qswitchport mode trunk!interface FastEthernet0/10

    switchport trunk encapsulation dot1qswitchport mode trunk!interface FastEthernet0/11switchport trunk encapsulation dot1qswitchport mode trunkspanning-tree vlan 20 cost 15!interface FastEthernet0/12switchport trunk encapsulation dot1qswitchport mode trunkspanning-tree vlan 20 cost 15!!End

    ALS1#show running-config!

    hostname ALS1!!vtp domain CISCOvtp mode transparent!!spanning-tree vlan 50-70 priority 24576!!vlan 10,20,50,60,70,80,90,100!!interface FastEthernet0/7switchport mode trunk!interface FastEthernet0/8switchport mode trunk

    !interface FastEthernet0/9switchport mode trunk!interface FastEthernet0/10switchport mode trunk!interface FastEthernet0/11switchport mode trunk!interface FastEthernet0/12switchport mode trunk!

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    40/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 40

    !end

    ALS2#show running-config!hostname ALS2!!vtp domain CISCOvtp mode transparent!!spanning-tree vlan 80,90,100 priority 24576!vlan 10,20,50,60,70,80,90,100!!interface FastEthernet0/7switchport mode trunk!interface FastEthernet0/8switchport mode trunk!interface FastEthernet0/9switchport mode trunk!interface FastEthernet0/10switchport mode trunk!

    interface FastEthernet0/11switchport mode trunk!interface FastEthernet0/12switchport mode trunk!!end

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    41/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 41

    Lab 3-4 Multiple Spanning Tree

    1.Mc tiu:Bai lab Hng dan cau hnh va chnh sa MSTP.

    2.Cau hnh:Step1:Xoa Vlan.dat, xoa startup configuration, khi ong lai SwitchCau hnh trunk gia cac Switch la dot1q.

    DLS1#configure terminal

    Enter configuration commands, one per line. End with CNTL/Z.DLS1(config)#interface range f0/7 - 12DLS1(config-if-range)#switchport trunk encapsulation dot1qDLS1(config-if-range)#switchport mode trunk

    Step 2: Cau hnh tat ca cac Switch: VTP mode transparent, VTP domain CISCO. Add Vlan

    10, 20, 30, 40, 50, 60, 70, 80, 90, 100 tren tat ca cac Switch. Dung lenh show vlan briefe kiem tra cau hnh VLan

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    42/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 42

    Step3: Dung lenh Show Spanning-tree tren Swich e kiem tra 11 spanning tree instances.

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    43/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 43

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    44/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 44

    Step 4: Enable MST dunh lenh Spanning-tree mode mst tren mode (config)#. Dung lenhshow spanning-tree e kiem tra cau hnh.DLS1(config)#spanning-tree mode mst

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    45/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 45

    Step 5: Cau hnh MST region e nhom cac Vlan. Region name la CISCO gan VLAN t 20en 50 thuoc vao instance 1, Vlan 80 va 100 vao instance 2. Tat ca cac VLAN con lai vanthuoc ve instance 0.

    Dung lenh show current e kiem tra cau hnh MST ang chay.

    DLS1(config-mst)#name CISCODLS1(config-mst)#revision 1DLS1(config-mst)# instance 1 vlan 20-50DLS1(config-mst)# instance 2 vlan 80, 100

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    46/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 46

    Kiem tra lai Spanning tree:

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    47/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 47

    END OF LAB FINAL CONFIGS:DLS1#show running-config!hostname DLS1!!vtp domain CISCOvtp mode transparent!!!spanning-tree mst configurationname CISCO

    revision 1instance 1 vlan 20-50instance 2 vlan 80, 100!spanning-tree mst 1 priority 24576!!vlan 10,20,30,40,50,60,70,80,90,100!!

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    48/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 48

    interface FastEthernet0/7switchport trunk encapsulation dot1qswitchport mode trunk!interface FastEthernet0/8switchport trunk encapsulation dot1qswitchport mode trunk

    !interface FastEthernet0/9switchport trunk encapsulation dot1qswitchport mode trunk!interface FastEthernet0/10switchport trunk encapsulation dot1qswitchport mode trunk!interface FastEthernet0/11switchport trunk encapsulation dot1qswitchport mode trunk!interface FastEthernet0/12switchport trunk encapsulation dot1qswitchport mode trunk!!End

    DLS2#show running-config!hostname DLS2!!vtp domain CISCOvtp mode transparent

    !!spanning-tree mode mst!spanning-tree mst configurationname CISCOrevision 1instance 1 vlan 20-50instance 2 vlan 80, 100!spanning-tree mst 2 priority 24576!!vlan 10,20,30,40,50,60,70,80,90,100

    !!interface FastEthernet0/7switchport trunk encapsulation dot1qswitchport mode trunk!interface FastEthernet0/8switchport trunk encapsulation dot1qswitchport mode trunk!

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    49/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 49

    interface FastEthernet0/9switchport trunk encapsulation dot1qswitchport mode trunk!interface FastEthernet0/10switchport trunk encapsulation dot1qswitchport mode trunk

    !interface FastEthernet0/11switchport trunk encapsulation dot1qswitchport mode trunk!interface FastEthernet0/12switchport trunk encapsulation dot1qswitchport mode trunk!!End

    ALS1#show running-config!hostname ALS1!!vtp domain CISCOvtp mode transparent!!spanning-tree mode mst!spanning-tree mst configurationname CISCOrevision 1instance 1 vlan 20-50

    instance 2 vlan 80, 100!!vlan 10,20,30,40,50,60,70,80,90,100!!interface FastEthernet0/7switchport mode trunk!interface FastEthernet0/8switchport mode trunk!interface FastEthernet0/9switchport mode trunk

    !interface FastEthernet0/10switchport mode trunk!interface FastEthernet0/11switchport mode trunk!interface FastEthernet0/12switchport mode trunk!

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    50/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 50

    !End

    ALS2#show running-config!hostname ALS2!

    !vtp domain CISCOvtp mode transparent!!spanning-tree mode mst!spanning-tree mst configurationname CISCOrevision 1instance 1 vlan 20-50instance 2 vlan 80, 100!!vlan 10,20,30,40,50,60,70,80,90,100!!interface FastEthernet0/7switchport mode trunk!interface FastEthernet0/8switchport mode trunk!interface FastEthernet0/9switchport mode trunk!interface FastEthernet0/10

    switchport mode trunk!interface FastEthernet0/11switchport mode trunk!interface FastEthernet0/12switchport mode trunk!!end

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    51/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 51

    Lab 3-5 Configuring Etherchannel

    1.Mc tiu:Cau hnh Etherchannel va chnh sa cac thuoc tnh cua etherchannel.

    2.Cau hnh:Step 1:Xoa Vlan.dat, xoa startup config, va reload lai cau hnh cua cua Switch.Xoa Vlan.dat, xoa startup configuration, khi ong lai Switch

    Cau hnh trunk gia cac Switch la dot1q.

    DLS1#configure terminalEnter configuration commands, one per line. End with CNTL/Z.DLS1(config)#interface range f0/7 - 12DLS1(config-if-range)#switchport trunk encapsulation dot1qDLS1(config-if-range)#switchport mode trunk

    Step 2: Gan port f0/11 va f0/12 vao channel-group 1 dung PAGP.

    ALS1(config)#interface range f0/11 - 12

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    52/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 52

    ALS1(config-if-range)#channel-group 1 mode desirableCreating a port-channel interface Port-channel

    Cau hnh port channel la port trunk.

    ALS1(config)#interface port-channel 1

    ALS1(config-if)#switchport mode trunk

    Kiem tra lai cau hnh cua etherchannel:

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    53/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 53

    Step 3: Gan port f0/7 va f0/8 vao channel group 2, dung LACP.

    ALS1(config)#interface range f0/7 - 8ALS1(config-if-range)#channel-group 2 mode activeCreating a port-channel interface Port-channel 2ALS1(config-if-range)#interface port-channel 2ALS1(config-if)#switchport mode trunk

    Dung lenhshow etherchannel summary e kiem tra cau hnh.

    Step 4: Cau hnh ether channel layer 3, dung no switchport.DLS1(config)#interface range f0/11 - 12DLS1(config-if-range)#no switchportDLS1(config-if-range)#channel-group 3 mode desirableCreating a port-channel interface Port-channel 3DLS1(config-if-range)#interface port-channel 3DLS1(config-if)#no switchportDLS1(config-if)#ip address 10.0.0.1 255.255.255.0

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    54/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 54

    Kiem tra bang lenh ping va show etherchannel summary,

    Step 5: Cau hnh cac phng phap loadbalacing trong port channelDung lenh show etherchannel load-balance e kiem tra phng phap load balancing.

    Nhan xet: phng phap loadbalancing o v du tren la source mac address.Cau hnh lai phng phap load balacing dung destination mac address

    ALS1(config)#port-channel load-balance src-dst-mac

    END OF LAB FINAL CONFIGSDLS1#show running-config!hostname DLS1!!interface Port-channel2switchport trunk encapsulation dot1qswitchport mode trunk

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    55/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 55

    !interface Port-channel3no switchportip address 10.0.0.1 255.255.255.0!!interface FastEthernet0/7

    switchport trunk encapsulation dot1qswitchport mode trunkchannel-group 2 mode active!interface FastEthernet0/8switchport trunk encapsulation dot1qswitchport mode trunkchannel-group 2 mode active!interface FastEthernet0/9switchport trunk encapsulation dot1qswitchport mode trunk!interface FastEthernet0/10switchport trunk encapsulation dot1qswitchport mode trunk!interface FastEthernet0/11no switchportno ip addresschannel-group 3 mode desirable!interface FastEthernet0/12no switchportno ip addresschannel-group 3 mode desirable!

    !End

    DLS2#show running-config!hostname DLS2!!!interface Port-channel3no switchportip address 10.0.0.2 255.255.255.0!!

    interface FastEthernet0/7switchport trunk encapsulation dot1qswitchport mode trunk!interface FastEthernet0/8switchport trunk encapsulation dot1qswitchport mode trunk!interface FastEthernet0/9switchport trunk encapsulation dot1q

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    56/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 56

    switchport mode trunk!interface FastEthernet0/10switchport trunk encapsulation dot1qswitchport mode trunk!interface FastEthernet0/11

    no switchportno ip addresschannel-group 3 mode desirable!interface FastEthernet0/12no switchportno ip addresschannel-group 3 mode desirable!!End

    ALS1#show running-config!hostname ALS1!!port-channel load-balance src-dst-mac!interface Port-channel1switchport mode trunk!interface Port-channel2switchport mode trunk!!interface FastEthernet0/7

    switchport mode trunkchannel-group 2 mode active!interface FastEthernet0/8switchport mode trunkchannel-group 2 mode active!interface FastEthernet0/9switchport mode trunk!interface FastEthernet0/10switchport mode trunk!interface FastEthernet0/11

    switchport mode trunkchannel-group 1 mode desirable!interface FastEthernet0/12switchport mode trunkchannel-group 1 mode desirable!!End

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    57/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 57

    ALS2#show running-config!hostname ALS2!!interface Port-channel1switchport mode trunk

    !!interface FastEthernet0/7switchport mode trunk!interface FastEthernet0/8switchport mode trunk!interface FastEthernet0/9switchport mode trunk!interface FastEthernet0/10switchport mode trunk!interface FastEthernet0/11switchport mode trunkchannel-group 1 mode desirable!interface FastEthernet0/12switchport mode trunkchannel-group 1 mode desirable!!end

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    58/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 58

    Lab 4-1 Inter-VLAN Routing with an External Router

    1.Mc tiu:Cau hnh inter-Vlan routing thong qua router ( Router-on-a-stick )

    2.Cau hnh:Step 1: xoa vlan.dat, startup configuration, reload lai switch.Step 2: Cau hnh IP va route cho ISP router va gateway router. Ping e kiem traconnection.Router(config)# hostname ISPISP(config)# interface Loopback0ISP(config-if)# ip address 200.200.200.1 255.255.255.0

    ISP(config-if)# interface Serial0/0ISP(config-if)# ip address 192.168.1.1 255.255.255.0ISP(config-if)# clockrate 56000ISP(config-if)# no shutdownISP(config-if)# exitISP(config)# ip route 172.16.0.0 255.255.0.0 192.168.1.2

    Router(config)# hostname GatewayGateway(config)# interface Serial0/0Gateway(config-if)# ip address 192.168.1.2 255.255.255.0Gateway(config-if)# no shutdownGateway(config-if)# exitGateway(config)# ip route 0.0.0.0 0.0.0.0 192.168.1.1

    Step 3: gan IP cho interface vlan 1 cua Switch ALS1 va ALS2, gan default gateway cho 2switch.

    Switch# configure terminalEnter configuration commands, one per line. End with CNTL/Z.Switch(config)# hostname ALS1ALS1(config)# interface vlan 1ALS1(config-if)# ip address 172.16.1.101 255.255.255.0

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    59/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 59

    ALS1(config-if)# no shutdownALS1(config-if)# exitALS1(config)# ip default-gateway 172.16.1.1ALS1(config)# enable secret ciscoALS1(config)# line vty 0 15ALS1(config-line)# password ciscoALS1(config-line)# login

    ALS1(config-line)# end

    Switch# configure terminalEnter configuration commands, one per line. End with CNTL/Z.Switch(config)# hostname ALS2ALS2(config)# interface vlan 1ALS2(config-if)# ip address 172.16.1.102 255.255.255.0ALS2(config-if)# no shutdownALS2(config-if)# exitALS2(config)# ip default-gateway 172.16.1.1ALS2(config)# enable secret ciscoALS2(config)# line vty 0 15ALS2(config-line)# password cisco

    ALS2(config-line)# loginALS2(config-line)# end

    Step 4: kiem tra Vlan ang co trong switch:

    Step 5: Cau hnh etherchannel dung port f0/11 va f0/12 tren ALS1 va ALS2. cau hnhmode trunk cho 2 port tren.

    ALS1# configure terminalEnter configuration commands, one per line. End with CNTL/Z.ALS1(config)# interface range fastethernet 0/11 - 12

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    60/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 60

    ALS1(config-if-range)# switchport mode trunkALS1(config-if-range)# channel-group 1 mode desirableALS1(config-if-range)# end

    ALS2# configure terminalEnter configuration commands, one per line. End with CNTL/Z.ALS2(config)# interface range fastethernet 0/11 - 12ALS2(config-if-range)# switchport mode trunkALS2(config-if-range)# channel-group 1 mode desirableALS2(config-if-range)# end

    Kiem tra bang lenh show etherchannel.

    Step 6: Cau hnh VTP domain, dung lenh show vtp status e kiem tra cau hnh.

    ALS1# configure terminal

    Enter configuration commands, one per line. End with CNTL/Z.ALS1(config)# vtp domain SWLABChanging VTP domain name from NULL to SWLABALS1(config)# end

    Step 7: Cau hnh port f0/6 tren 2 switch la mode access, f0/6 cua ALS1 thuoc vlan 100,f0/6 cua ALS2 thuoc Vlan 200:

    ALS1# configure terminalEnter configuration commands, one per line. End with CNTL/Z.ALS1(config)# interface fastEthernet 0/6

    ALS1(config-if)# switchport mode accessALS1(config-if)# switchport access vlan 100% Access VLAN does not exist. Creating vlan 100ALS1(config-if)# end

    ALS2# configure terminalEnter configuration commands, one per line. End with CNTL/Z.ALS2(config)# interface fastEthernet 0/6ALS2(config-if)# switchport mode accessALS2(config-if)# switchport access vlan 200

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    61/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 61

    % Access VLAN does not exist. Creating vlan 200ALS2(config-if)# end

    Step 8: Cau hnh trunk tren port f0/1 cua Switch ALS1. f0/1 cua ALS1 noi vao gatewayrouter..

    ALS1# configure terminalEnter configuration commands, one per line. End with CNTL/Z.ALS1(config)# interface fastEthernet 0/1ALS1(config-if)# switchport mode trunkALS1(config-if)# end

    Step 9: Cau hnh router gateway e ho tr inter-vlan routing.

    Gateway# configure terminalEnter configuration commands, one per line. End with CNTL/Z.

    Gateway(config)# interface FastEthernet 0/0Gateway(config-if)# no shut

    Gateway(config)# interface fastethernet 0/0.1Gateway(config-subif)# description Management VLAN 1Gateway(config-subif)# encapsulation dot1q 1 nativeGateway(config-subif)# ip address 172.16.1.1 255.255.255.0

    Gateway(config-subif)# interface fastethernet 0/0.100Gateway(config-subif)# description Payroll VLAN 100Gateway(config-subif)# encapsulation dot1q 100Gateway(config-subif)# ip address 172.16.100.1 255.255.255.0

    Gateway(config-subif)# interface fastethernet 0/0.200Gateway(config-subif)# description Engineering VLAN 200Gateway(config-subif)# encapsulation dot1q 200Gateway(config-subif)# ip address 172.16.200.1 255.255.255.0Gateway(config-subif)# end

    Dung lenhshow ip interface brief e kiem tra.

    Dung lenh show vlan tren gateway router e kiem tra.

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    62/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 62

    Step 10:Kiem tra inter-Vlan routing bang cach Lay 2 pc ping vi nhau va ping ti ISP.

    Final Configuration

    ISP# show run!hostname ISP!interface Loopback0ip address 200.200.200.1 255.255.255.0!interface Serial0/0/0

    ip address 192.168.1.1 255.255.255.0clockrate 64000no shutdown!ip route 172.16.0.0 255.255.0.0 192.168.1.2!end

    Gateway# show run

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    63/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 63

    !hostname Gateway!interface FastEthernet0/0no shutdown

    !interface FastEthernet0/0.1description Management VLANencapsulation dot1Q 1 nativeip address 172.16.1.1 255.255.255.0!interface FastEthernet0/0.100description Finance VLANencapsulation dot1Q 100ip address 172.16.100.1 255.255.255.0!interface FastEthernet0/0.200description Engineering VLANencapsulation dot1Q 200ip address 172.16.200.1 255.255.255.0!interface Serial0/0/0ip address 192.168.1.2 255.255.255.0no shutdown!ip route 0.0.0.0 0.0.0.0 192.168.1.1

    !End

    ALS1# show run!hostname ALS1!enable secret cisco!interface Port-channel1

    switchport mode trunk!interface FastEthernet0/1switchport mode trunk!interface FastEthernet0/6switchport access vlan 100switchport mode access

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    64/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 64

    !interface FastEthernet0/11switchport mode trunkchannel-group 1 mode desirable!

    interface FastEthernet0/12switchport mode trunkchannel-group 1 mode desirable!interface Vlan1ip address 172.16.1.101 255.255.255.0no shutdown!ip default-gateway 172.16.1.1!line vty 0 4password ciscologinline vty 5 15password ciscologin!End

    ALS2# show run!

    hostname ALS2!enable secret cisco!interface Port-channel1switchport mode trunk!interface FastEthernet0/6switchport access vlan 200switchport mode access

    !interface FastEthernet0/11switchport mode trunkchannel-group 1 mode desirable!interface FastEthernet0/12switchport mode trunkchannel-group 1 mode desirable

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    65/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 65

    !interface Vlan1ip address 172.16.1.102 255.255.255.0no shutdown!

    ip default-gateway 172.16.1.1!line vty 0 4password ciscologinline vty 5 15password ciscologin!end

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    66/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 66

    Lab 4-2 Inter-VLAN Routing with an Internal Route Processor andMonitoring CEF Functions

    1.Mc tiu:Cau hnh inter-vlan routing dung internal route processor va Cisco Express Forwarding(CEF).

    2.Cau hnh:Step 1: Xoa vlan.dat, xoa startup configuration, khi ong lai switch.Step 2: at password, ip address, va gateway cho tat ca cac Switch:

    Switch# configure terminalEnter configuration commands, one per line. End with CNTL/Z.Switch(config)# hostname ALS1ALS1(config)# enable secret ciscoALS1(config)# line vty 0 15ALS1(config-line)# password ciscoALS1(config-line)# loginALS1(config-line)# end

    Switch# configure terminalEnter configuration commands, one per line. End with CNTL/Z.Switch(config)# hostname ALS2ALS2(config)# enable secret ciscoALS2(config)# line vty 0 15ALS2(config-line)# password ciscoALS2(config-line)# login

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    67/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 67

    ALS2(config-line)# end

    Switch# configure terminalEnter configuration commands, one per line. End with CNTL/Z.Switch(config)# hostname DLS1

    DLS1(config)# enable secret ciscoDLS1(config)# line vty 0 15DLS1(config-line)#password ciscoDLS1(config-line)# loginDLS1(config-line)# end

    ALS1# configure terminalEnter configuration commands, one per line. End with CNTL/Z.ALS1(config)# interface vlan 1ALS1(config-if)# ip address 172.16.1.101 255.255.255.0ALS1(config-if)# no shutdownALS1(config-if)# exit

    ALS2# configure terminalEnter configuration commands, one per line. End with CNTL/Z.ALS2(config)# interface vlan 1ALS2(config-if)# ip address 172.16.1.102 255.255.255.0ALS2(config-if)# no shutdownALS2(config-if)# exit

    DLS1# configure terminal

    Enter configuration commands, one per line. End with CNTL/Z.DLS1(config)# interface vlan 1DLS1(config-if)# ip address 172.16.1.1 255.255.255.0DLS1(config-if)# no shutdownDLS1(config-if)# exit

    ALS1# configure terminalEnter configuration commands, one per line. End with CNTL/Z.ALS1(config)# ip default-gateway 172.16.1.1ALS1(config-line)# end

    ALS2# configure terminalEnter configuration commands, one per line. End with CNTL/Z.ALS2(config)# ip default-gateway 172.16.1.1ALS2(config-line)# end

    Step 3: Cau hnh trunk vaa etherchannel gia cac Switch:

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    68/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 68

    DLS1# configure terminalEnter configuration commands, one per line. End with CNTL/Z.DLS1(config)# interface range fastethernet 0/7 - 8DLS1(config-if-range)# switchport trunk encapsulation dot1qDLS1(config-if-range)# switchport mode trunk

    DLS1(config-if-range)# channel-group 1 mode desirableCreating a port-channel interface Port-channel 1

    DLS1# configure terminalEnter configuration commands, one per line. End with CNTL/Z.DLS1(config)# interface range fastethernet 0/9 - 10DLS1(config-if-range)# switchport trunk encapsulation dot1qDLS1(config-if-range)# switchport mode trunkDLS1(config-if-range)# channel-group 2 mode desirableCreating a port-channel interface Port-channel 2

    ALS1# configure terminalEnter configuration commands, one per line. End with CNTL/Z.ALS1(config)# interface range fastethernet 0/11 - 12ALS1(config-if-range)# switchport mode trunkALS1(config-if-range)# channel-group 1 mode desirableCreating a port-channel interface Port-channel 1

    ALS1(config-if-range)# exitALS1(config)# interface range fastethernet 0/7 - 8ALS1(config-if-range)# switchport mode trunk

    ALS1(config-if-range)# channel-group 2 mode desirableCreating a port-channel interface Port-channel 2

    ALS2# configure terminalEnter configuration commands, one per line. End with CNTL/Z.ALS2(config)# interface range fastethernet 0/11 - 12ALS2(config-if-range)# switchport mode trunkALS2(config-if-range)# channel-group 1 mode desirableCreating a port-channel interface Port-channel 1ALS2(config-if-range)# exit

    ALS1(config)# interface range fastethernet 0/7 - 8ALS1(config-if-range)# switchport mode trunkALS1(config-if-range)# channel-group 2 mode desirableCreating a port-channel interface Port-channel 2

    Dunh lenh Show interface trunk e kiem tra:

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    69/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 69

    Dung lenh show etherchannel summary e kiem tra etherchannel:

    Step 4: oi VTP mode cua ALS1, ALS2 thanh cilent:

    ALS1# configure terminalEnter configuration commands, one per line. End with CNTL/Z.ALS1(config)# vtp mode client

    Setting device to VTP CLIENT mode.ALS1(config)# end

    ALS2# configure terminalEnter configuration commands, one per line. End with CNTL/Z.ALS2(config)# vtp mode clientSetting device to VTP CLIENT mode.ALS2(config)# end

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    70/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 70

    Dung lenh Show vtp status e kiem tra:

    Step 5: Cau hnh VTP domain va tao vlan cho DLS1

    DLS1# configure terminalEnter configuration commands, one per line. End with CNTL/Z.DLS1(config)# vtp domain SWPOD

    DLS1(config)# vlan 100DLS1(config-vlan)# name FinanceDLS1(config-vlan)# exitDLS1(config)# vlan 200DLS1(config-vlan)# name EngineeringDLS1(config-vlan)# end

    Step 6: Gan port vao Vlan nh hnh ve:

    ALS1# configure terminalEnter configuration commands, one per line. End with CNTL/Z.ALS1(config)# interface fastethernet 0/6

    ALS1(config-if)# switchport mode accessALS1(config-if)# switchport access vlan 100ALS1(config-if)# end

    ALS2# configure terminalEnter configuration commands, one per line. End with CNTL/Z.ALS2(config)# interface fastethernet 0/6ALS2(config-if)# switchport mode accessALS2(config-if)# switchport access vlan 200ALS2(config-if)# end

    Step 7 Cau hnh intervlan bang cach tao interface vlan tren DLS1, va bat ip routing.

    DLS1# configure terminalEnter configuration commands, one per line. End with CNTL/Z.DLS1(config)# interface vlan 100DLS1(config-if)# ip add 172.16.100.1 255.255.255.0DLS1(config-if)# no shutDLS1(config-if)# interface vlan 200DLS1(config-if)# ip address 172.16.200.1 255.255.255.0DLS1(config-if)# no shutdownDLS1(config-if)# exitDLS1(config)# ip routing

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    71/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 71

    DLS1(config)# end

    Show ip route tren DLS1 e kiem tra route.

    Step 9: CEF.

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    72/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 72

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    73/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 73

    Final Configuration

    DLS1# show run!hostname DLS1

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    74/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 74

    !enable secret cisco!interface Port-channel1switchport trunk encapsulation dot1q

    switchport mode trunk!interface Port-channel2switchport trunk encapsulation dot1qswitchport mode trunk!interface FastEthernet0/7switchport trunk encapsulation dot1qswitchport mode trunkchannel-group 1 mode desirable!interface FastEthernet0/8switchport trunk encapsulation dot1qswitchport mode trunkchannel-group 1 mode desirable!interface FastEthernet0/9switchport trunk encapsulation dot1qswitchport mode trunkchannel-group 2 mode desirable!

    interface FastEthernet0/10switchport trunk encapsulation dot1qswitchport mode trunkchannel-group 2 mode desirable!interface Vlan1ip address 172.16.1.1 255.255.255.0no shutdown!interface Vlan100

    ip address 172.16.100.1 255.255.255.0no shutdown!interface Vlan200ip address 172.16.200.1 255.255.255.0no shutdown!line vty 0 4

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    75/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 75

    password ciscologinline vty 5 15password ciscologin

    !End

    ALS1# show run!hostname ALS1!enable secret cisco!interface Port-channel1switchport mode trunk!interface Port-channel2switchport mode trunk!interface FastEthernet0/6switchport access vlan 100switchport mode access!interface FastEthernet0/7switchport mode trunk

    channel-group 2 mode desirable!interface FastEthernet0/8switchport mode trunkchannel-group 2 mode desirable!interface FastEthernet0/11switchport mode trunkchannel-group 1 mode desirable!

    interface FastEthernet0/12switchport mode trunkchannel-group 1 mode desirable!interface Vlan1ip address 172.16.1.101 255.255.255.0no shutdown!

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    76/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 76

    ip default-gateway 172.16.1.1!line vty 0 4password ciscologin

    line vty 5 15password ciscologin!End

    ALS2# show run!hostname ALS2!enable secret cisco!interface Port-channel1switchport mode trunk!interface Port-channel2switchport mode trunk!interface FastEthernet0/6switchport access vlan 200switchport mode access

    !interface FastEthernet0/9switchport mode trunkchannel-group 2 mode desirable!interface FastEthernet0/10switchport mode trunkchannel-group 2 mode desirable!interface FastEthernet0/11

    switchport mode trunkchannel-group 1 mode desirable!interface FastEthernet0/12switchport mode trunkchannel-group 1 mode desirable!interface Vlan1

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    77/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 77

    ip address 172.16.1.102 255.255.255.0no shutdown!ip default-gateway 172.16.1.1!

    line vty 0 4password ciscologinline vty 5 15password ciscologin!end

    Lab 5-1 Hot Standby Router Protocol

    1.Mc tiu:

    Cau hnh intervlan routing dung HSRP.2.Cau hnh:

    Step 1: Xoa vlan.dat, xoa startup configuration, khi ong lai switch.Step 2: Cau hnh IP address cho interface vlan 1, hostname, password va telnet passwordnh hnh ve:Switch# configure terminalEnter configuration commands, one per line. End with CNTL/Z.

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    78/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 78

    Switch(config)# hostname ALS1ALS1(config)# enable secret ciscoALS1(config)# line vty 0 15ALS1(config-line)# password ciscoALS1(config-line)# login

    ALS1(config-line)# exitALS1(config)# interface vlan 1ALS1(config-if)# ip address 172.16.1.101 255.255.255.0ALS1(config-if)# no shutdownALS1(config-if)# end

    Switch# configure terminalEnter configuration commands, one per line. End with CNTL/Z.Switch(config)# hostname ALS2ALS2(config)# enable secret ciscoALS2(config)# line vty 0 15ALS2(config-line)# password ciscoALS2(config-line)# loginALS2(config-line)# exitALS2(config)# interface vlan 1ALS2(config-if)# ip address 172.16.1.102 255.255.255.0ALS2(config-if)# no shutdownALS2(config-if)# end

    Switch# configure terminalEnter configuration commands, one per line. End with CNTL/Z.

    Switch(config)# hostname DLS1DLS1(config)# enable secret ciscoDLS1(config)# line vty 0 15DLS1(config-line)# password ciscoDLS1(config-line)# loginDLS1(config-line)# exitDLS1(config)# interface vlan 1DLS1(config-if)# ip address 172.16.1.3 255.255.255.0DLS1(config-if)# no shutdownDLS1(config-if)# end

    Switch# configure terminalEnter configuration commands, one per line. End with CNTL/Z.Switch(config)# hostname DLS2DLS2(config)# enable secret ciscoDLS2(config)# line vty 0 15DLS2(config-line)# password ciscoDLS2(config-line)# login

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    79/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 79

    DLS2(config-line)# exitDLS2(config)# interface vlan 1DLS2(config-if)# ip address 172.16.1.4 255.255.255.0DLS2(config-if)# no shutdownDLS2(config-if)# end

    Cau hnh default gateway cho ALS1 va ALS2:

    ALS1# configure terminalEnter configuration commands, one per line. End with CNTL/Z.ALS1(config)# ip default-gateway 172.16.1.1ALS1(config)# end

    ALS2# configure terminalEnter configuration commands, one per line. End with CNTL/Z.ALS2(config)# ip default-gateway 172.16.1.1ALS2(config)# end

    Step 3: Cau hnh etherchannel:Cau hnh etherchannel tren DLS1:

    DLS1# configure terminalEnter configuration commands, one per line. End with CNTL/Z.DLS1(config)# interface range fastethernet 0/7 - 8DLS1(config-if-range)# switchport trunk encapsulation dot1qDLS1(config-if-range)# switchport mode trunk

    DLS1(config-if-range)# channel-group 1 mode desirableCreating a port-channel interface Port-channel 1

    DLS1(config-if-range)# interface range fastethernet 0/9 - 10DLS1(config-if-range)# switchport trunk encapsulation dot1qDLS1(config-if-range)# switchport mode trunkDLS1(config-if-range)# channel-group 2 mode desirableCreating a port-channel interface Port-channel 2

    DLS1(config-if-range)# interface range fastethernet 0/11 - 12

    DLS1(config-if-range)# switchport trunk encapsulation dot1qDLS1(config-if-range)# switchport mode trunkDLS1(config-if-range)# channel-group 3 mode desirableCreating a port-channel interface Port-channel 3

    DLS1(config-if-range)# end

    Cau hnh etherchannel tren DLS2

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    80/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 80

    DLS2# configure terminalEnter configuration commands, one per line. End with CNTL/Z.DLS2(config)# interface range fastethernet 0/7 - 8DLS2(config-if-range)# switchport trunk encapsulation dot1q

    DLS2(config-if-range)# switchport mode trunkDLS2(config-if-range)# channel-group 1 mode desirableCreating a port-channel interface Port-channel 1

    DLS2(config-if-range)# interface range fastethernet 0/9 - 10DLS2(config-if-range)# switchport trunk encapsulation dot1qDLS2(config-if-range)# switchport mode trunkDLS2(config-if-range)# channel-group 2 mode desirableCreating a port-channel interface Port-channel 2

    DLS2(config-if-range)# interface range fastethernet 0/11 - 12DLS2(config-if-range)# switchport trunk encapsulation dot1qDLS2(config-if-range)# switchport mode trunkDLS2(config-if-range)# channel-group 3 mode desirableCreating a port-channel interface Port-channel 3

    DLS2(config-if-range)# endCau hnh etherchannel tren ALS1

    ALS1# configure terminalEnter configuration commands, one per line. End with CNTL/Z.

    ALS1(config)# interface range fastethernet 0/7 - 8ALS1(config-if-range)# switchport mode trunkALS1(config-if-range)# channel-group 1 mode desirableCreating a port-channel interface Port-channel 1ALS1(config-if-range)# interface range fastethernet 0/9 - 10ALS1(config-if-range)# switchport mode trunkALS1(config-if-range)# channel-group 2 mode desirableCreating a port-channel interface Port-channel 2ALS1(config-if-range)# interface range fastethernet 0/11 - 12ALS1(config-if-range)# switchport mode trunk

    ALS1(config-if-range)# channel-group 3 mode desirableCreating a port-channel interface Port-channel 3

    Cau hnh etherchannel tren ALS2

    ALS2# configure terminalEnter configuration commands, one per line. End with CNTL/Z.ALS2(config)# interface range fastethernet 0/7 - 8

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    81/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 81

    ALS2(config-if-range)# switchport mode trunkALS2(config-if-range)# channel-group 1 mode desirableCreating a port-channel interface Port-channel 1

    ALS2(config-if-range)# interface range fastethernet 0/9 - 10

    ALS2(config-if-range)# switchport mode trunkALS2(config-if-range)# channel-group 2 mode desirableCreating a port-channel interface Port-channel 2ALS2(config-if-range)# interface range fastethernet 0/11 - 12ALS2(config-if-range)# switchport mode trunkALS2(config-if-range)# channel-group 3 mode desirableCreating a port-channel interface Port-channel 3ALS2(config-if-range)# end

    Dung lenh show interface trunk e kiem tra trunk:

    Kiem tra etherchannel dung lenh show etherchannel summary:

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    82/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 82

    Step 4: Cau hnh VTP mode cua ALS1 va ALS2 la client:ALS1# configure terminalEnter configuration commands, one per line. End with CNTL/Z.ALS1(config)# vtp mode clientSetting device to VTP CLIENT mode.ALS1(config)# end

    ALS2# configure terminalEnter configuration commands, one per line. End with CNTL/Z.

    ALS2(config)# vtp mode clientSetting device to VTP CLIENT mode.ALS2(config)# end

    Step 5: Cau hnh VTP domain va tao vlan 100, 200, 300, 400.

    DLS1# configure terminal

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    83/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 83

    Enter configuration commands, one per line. End with CNTL/Z.DLS1(config)# vtp domain SWPODDLS1(config)# vlan 10DLS1(config-vlan)# name FinanceDLS1(config-vlan)# exit

    DLS1(config)# vlan 20DLS1(config-vlan)# name EngineeringDLS1(config-vlan)# exitDLS1(config)# vlan 30DLS1(config-vlan)# name Server-Farm1DLS1(config-vlan)# exitDLS1(config)# vlan 40DLS1(config-vlan)# name Server-Farm2DLS1(config-vlan)# end

    Step 6: Gan port vao Vlan nh hnh ve:

    DLS1# configure terminalEnter configuration commands, one per line. End with CNTL/Z.DLS1(config)# interface fastethernet 0/6DLS1(config-if)# switchport mode accessDLS1(config-if)# switchport access vlan 30DLS1(config-if)# spanning-tree portfastDLS1(config-if)# end

    DLS2# configure terminal

    Enter configuration commands, one per line. End with CNTL/Z.DLS2(config)# interface fastethernet 0/6DLS2(config-if)# switchport mode accessDLS2(config-if)# switchport access vlan 40DLS2(config-if)# spanning-tree portfastDLS2(config-if)# end

    ALS1# configure terminalEnter configuration commands, one per line. End with CNTL/Z.ALS1(config)# interface fastethernet 0/6

    ALS1(config-if)# switchport mode accessALS1(config-if)# switchport access vlan 10ALS1(config-if)# spanning-tree portfastALS1(config-if)# end

    ALS2# configure terminalEnter configuration commands, one per line. End with CNTL/Z.ALS2(config)# interface fastEthernet 0/6

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    84/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 84

    ALS2(config-if)# switchport mode accessALS2(config-if)# switchport access vlan 20ALS2(config-if)# spanning-tree portfastALS2(config-if)# end

    Step 7: Cau hnh HSRP tren Switch:Cau hnh HSRP tren DLS1:

    DLS1# config tEnter configuration commands, one per line. End with CNTL/Z.DLS1(config)# ip routing

    DLS1(config)# interface vlan 1DLS1(config-if)# standby 1 ip 172.16.1.1DLS1(config-if)# standby 1 preemptDLS1(config-if)# standby 1 priority 150DLS1(config-if)# exit

    DLS1(config)# interface vlan 10DLS1(config-if)# ip address 172.16.10.3 255.255.255.0DLS1(config-if)# standby 1 ip 172.16.10.1DLS1(config-if)# standby 1 preemptDLS1(config-if)# standby 1 priority 150DLS1(config-if)# no shutdownDLS1(config-if)# exit

    DLS1(config)# interface vlan 20DLS1(config-if)# ip address 172.16.20.3 255.255.255.0DLS1(config-if)# standby 1 ip 172.16.20.1DLS1(config-if)# standby 1 preemptDLS1(config-if)# standby 1 priority 150DLS1(config-if)# exit

    DLS1(config)# interface vlan 30DLS1(config-if)# ip address 172.16.30.3 255.255.255.0DLS1(config-if)# standby 1 ip 172.16.30.1

    DLS1(config-if)# standby 1 preemptDLS1(config-if)# standby 1 priority 100DLS1(config-if)# exit

    DLS1(config)# interface vlan 40DLS1(config-if)# ip address 172.16.40.3 255.255.255.0DLS1(config-if)# standby 1 ip 172.16.40.1DLS1(config-if)# standby 1 preempt

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    85/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 85

    DLS1(config-if)# standby 1 priority 100DLS1(config-if)# end

    Cau hnh HSRP tren DLS2:

    DLS2# config tEnter configuration commands, one per line. End with CNTL/Z.DLS2(config)# ip routing

    DLS2(config)# interface vlan 1DLS2(config-if)# standby 1 ip 172.16.1.1DLS2(config-if)# standby 1 preemptDLS2(config-if)# standby 1 priority 150DLS2(config-if)# exit

    DLS2(config)# interface vlan 10DLS2(config-if)# ip address 172.16.10.4 255.255.255.0DLS2(config-if)# standby 1 ip 172.16.10.1DLS2(config-if)# standby 1 preemptDLS2(config-if)# standby 1 priority 150DLS2(config-if)# no shutdownDLS2(config-if)# exit

    DLS2(config)# interface vlan 20DLS2(config-if)# ip address 172.16.20.4 255.255.255.0DLS2(config-if)# standby 1 ip 172.16.20.1

    DLS2(config-if)# standby 1 preemptDLS2(config-if)# standby 1 priority 150DLS2(config-if)# exit

    DLS2(config)# interface vlan 30DLS2(config-if)# ip address 172.16.30.4 255.255.255.0DLS2(config-if)# standby 1 ip 172.16.30.1DLS2(config-if)# standby 1 preemptDLS2(config-if)# standby 1 priority 100DLS2(config-if)# exit

    DLS2(config)# interface vlan 40DLS2(config-if)# ip address 172.16.40.4 255.255.255.0DLS2(config-if)# standby 1 ip 172.16.40.1DLS2(config-if)# standby 1 preemptDLS2(config-if)# standby 1 priority 100DLS2(config-if)# end

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    86/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 86

    Step 8: show standby tren DLS1 va DLS2:

    DLS1# show standbyVlan1 - Group 1State is Active

    5 state changes, last state change 00:02:48Virtual IP address is 172.16.1.1Active virtual MAC address is 0000.0c07.ac01Local virtual MAC address is 0000.0c07.ac01 (v1 default)Hello time 3 sec, hold time 10 secNext hello sent in 2.228 secsPreemption enabledActive router is localStandby router is 172.16.1.4, priority 100 (expires in 7.207 sec)Priority 150 (configured 150)IP redundancy name is "hsrp-Vl1-1" (default)Vlan10 - Group 1State is Active5 state changes, last state change 00:02:50Virtual IP address is 172.16.10.1Active virtual MAC address is 0000.0c07.ac01Local virtual MAC address is 0000.0c07.ac01 (v1 default)Hello time 3 sec, hold time 10 secNext hello sent in 1.113 secsPreemption enabledActive router is local

    Standby router is 172.16.10.4, priority 100 (expires in 9.807 sec)Priority 150 (configured 150)IP redundancy name is "hsrp-Vl10-1" (default)Vlan20 - Group 1State is Active5 state changes, last state change 00:02:55Virtual IP address is 172.16.20.1Active virtual MAC address is 0000.0c07.ac01Local virtual MAC address is 0000.0c07.ac01 (v1 default)Hello time 3 sec, hold time 10 sec

    Next hello sent in 1.884 secsPreemption enabledActive router is localStandby router is 172.16.20.4, priority 100 (expires in 9.220 sec)Priority 150 (configured 150)IP redundancy name is "hsrp-Vl20-1" (default)Vlan30 - Group 1State is Standby

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    87/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 87

    4 state changes, last state change 00:02:45Virtual IP address is 172.16.30.1Active virtual MAC address is 0000.0c07.ac01Local virtual MAC address is 0000.0c07.ac01 (v1 default)Hello time 3 sec, hold time 10 sec

    Next hello sent in 2.413 secsPreemption enabledActive router is 172.16.30.4, priority 150 (expires in 8.415 sec)Standby router is localPriority 100 (default 100)IP redundancy name is "hsrp-Vl30-1" (default)Vlan40 - Group 1State is Standby4 state changes, last state change 00:02:51Virtual IP address is 172.16.40.1Active virtual MAC address is 0000.0c07.ac01Local virtual MAC address is 0000.0c07.ac01 (v1 default)Hello time 3 sec, hold time 10 secNext hello sent in 1.826 secsPreemption enabledActive router is 172.16.40.4, priority 150 (expires in 7.828 sec)Standby router is localPriority 100 (default 100)IP redundancy name is "hsrp-Vl40-1" (default)

    DLS2# show standbyVlan1 - Group 1State is Standby3 state changes, last state change 00:02:33Virtual IP address is 172.16.1.1Active virtual MAC address is 0000.0c07.ac01Local virtual MAC address is 0000.0c07.ac01 (v1 default)Hello time 3 sec, hold time 10 secNext hello sent in 2.950 secsPreemption enabled

    Active router is 172.16.1.3, priority 150 (expires in 8.960 sec)Standby router is localPriority 100 (default 100)IP redundancy name is "hsrp-Vl1-1" (default)Vlan10 - Group 1State is Standby3 state changes, last state change 00:02:34Virtual IP address is 172.16.10.1

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    88/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 88

    Active virtual MAC address is 0000.0c07.ac01Local virtual MAC address is 0000.0c07.ac01 (v1 default)Hello time 3 sec, hold time 10 secNext hello sent in 1.759 secsPreemption enabled

    Active router is 172.16.10.3, priority 150 (expires in 7.844 sec)Standby router is localPriority 100 (default 100)IP redundancy name is "hsrp-Vl10-1" (default)Vlan20 - Group 1State is Standby3 state changes, last state change 00:02:42Virtual IP address is 172.16.20.1Active virtual MAC address is 0000.0c07.ac01Local virtual MAC address is 0000.0c07.ac01 (v1 default)Hello time 3 sec, hold time 10 secNext hello sent in 2.790 secsPreemption enabledActive router is 172.16.20.3, priority 150 (expires in 8.289 sec)Standby router is localPriority 100 (default 100)IP redundancy name is "hsrp-Vl20-1" (default)Vlan30 - Group 1State is Active2 state changes, last state change 00:02:52Virtual IP address is 172.16.30.1

    Active virtual MAC address is 0000.0c07.ac01Local virtual MAC address is 0000.0c07.ac01 (v1 default)Hello time 3 sec, hold time 10 secNext hello sent in 1.549 secsPreemption enabledActive router is localStandby router is 172.16.30.3, priority 100 (expires in 9.538 sec)Priority 150 (configured 150)IP redundancy name is "hsrp-Vl30-1" (default)Vlan40 - Group 1

    State is Active2 state changes, last state change 00:02:58Virtual IP address is 172.16.40.1Active virtual MAC address is 0000.0c07.ac01Local virtual MAC address is 0000.0c07.ac01 (v1 default)Hello time 3 sec, hold time 10 secNext hello sent in 0.962 secsPreemption enabled

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    89/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 89

    Active router is localStandby router is 172.16.40.3, priority 100 (expires in 8.960 sec)Priority 150 (configured 150)IP redundancy name is "hsrp-Vl40-1" (default)

    Step 9: Kiem tra: lay PC tren vlan 40 ping pc tren Vlan 20

    C:\> ping 172.16.20.100Pinging 172.16.20.100 with 32 bytes of data:Reply from 172.16.20.100: bytes=32 time=2ms TTL=255Reply from 172.16.20.100: bytes=32 time=2ms TTL=255Reply from 172.16.20.100: bytes=32 time=2ms TTL=255Reply from 172.16.20.100: bytes=32 time=2ms TTL=255Ping statistics for 172.16.20.100:Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),Approximate round trip times in milli-seconds:Minimum = 2ms, Maximum = 2ms, Average = 2ms

    Step 10: Shutdown port 0/7-12

    DLS2# configure terminalEnter configuration commands, one per line. End with CNTL/Z.DLS2(config)# interface range fastethernet 0/7 - 12DLS2(config-if-range)# shutdownDLS2(config-if-range)# end

    Final Configurations

    DLS1# show run!hostname DLS1!enable secret cisco!ip routing!

    interface Port-channel1switchport trunk encapsulation dot1qswitchport mode trunk!interface Port-channel2switchport trunk encapsulation dot1qswitchport mode trunk!

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    90/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 90

    interface Port-channel3switchport trunk encapsulation dot1qswitchport mode trunk!interface FastEthernet0/6

    switchport access vlan 300switchport mode access!interface FastEthernet0/7switchport trunk encapsulation dot1qswitchport mode trunkchannel-group 1 mode desirable!interface FastEthernet0/8switchport trunk encapsulation dot1qswitchport mode trunkchannel-group 1 mode desirable!interface FastEthernet0/9switchport trunk encapsulation dot1qswitchport mode trunkchannel-group 2 mode desirable!interface FastEthernet0/10switchport trunk encapsulation dot1qswitchport mode trunk

    channel-group 2 mode desirable!interface FastEthernet0/11switchport trunk encapsulation dot1qswitchport mode trunkchannel-group 3 mode desirable!interface FastEthernet0/12switchport trunk encapsulation dot1qswitchport mode trunk

    channel-group 3 mode desirable!interface Vlan1ip address 172.16.1.3 255.255.255.0standby 1 ip 172.16.1.1standby 1 priority 150standby 1 preemptno shutdown

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    91/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 91

    !interface Vlan10ip address 172.16.10.3 255.255.255.0standby 1 ip 172.16.10.1standby 1 priority 150

    standby 1 preemptno shutdown!interface Vlan20ip address 172.16.20.3 255.255.255.0standby 1 ip 172.16.20.1standby 1 priority 150standby 1 preemptno shutdown!interface Vlan30ip address 172.16.30.3 255.255.255.0standby 1 ip 172.16.30.1standby 1 preemptno shutdown!interface Vlan40ip address 172.16.40.3 255.255.255.0standby 1 ip 172.16.40.1standby 1 preemptno shutdown

    !line vty 0 4password ciscologinline vty 5 15password ciscologin!endDLS2# show run

    !hostname DLS2!enable secret cisco!ip routing!interface Port-channel1

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    92/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 92

    switchport trunk encapsulation dot1qswitchport mode trunk!interface Port-channel2switchport trunk encapsulation dot1q

    switchport mode trunk!interface Port-channel3switchport trunk encapsulation dot1qswitchport mode trunk!interface FastEthernet0/6switchport access vlan 400switchport mode access!interface FastEthernet0/7switchport trunk encapsulation dot1qswitchport mode trunkchannel-group 1 mode desirable!interface FastEthernet0/8switchport trunk encapsulation dot1qswitchport mode trunkchannel-group 1 mode desirable!interface FastEthernet0/9

    switchport trunk encapsulation dot1qswitchport mode trunkchannel-group 2 mode desirable!interface FastEthernet0/10switchport trunk encapsulation dot1qswitchport mode trunkchannel-group 2 mode desirable!interface FastEthernet0/11

    switchport trunk encapsulation dot1qswitchport mode trunkchannel-group 3 mode desirable!interface FastEthernet0/12switchport trunk encapsulation dot1qswitchport mode trunkchannel-group 3 mode desirable

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    93/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 93

    !interface Vlan1ip address 172.16.1.4 255.255.255.0standby 1 ip 172.16.1.1standby 1 preempt

    no shutdown!interface Vlan10ip address 172.16.10.4 255.255.255.0standby 1 ip 172.16.10.1standby 1 preemptno shutdown!interface Vlan20ip address 172.16.20.4 255.255.255.0standby 1 ip 172.16.20.1standby 1 preemptno shutdown!interface Vlan30ip address 172.16.30.4 255.255.255.0standby 1 ip 172.16.30.1standby 1 priority 150standby 1 preemptno shutdown!

    interface Vlan40ip address 172.16.40.4 255.255.255.0standby 1 ip 172.16.40.1standby 1 priority 150standby 1 preemptno shutdown!line vty 0 4password ciscologin

    line vty 5 15password ciscologin!endALS1# show run!hostname ALS1

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    94/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 94

    !enable secret cisco!interface Port-channel1switchport mode trunk

    !interface Port-channel2switchport mode trunk!interface Port-channel3switchport mode trunk!interface FastEthernet0/6switchport access vlan 100switchport mode access!interface FastEthernet0/7switchport mode trunkchannel-group 1 mode desirable!interface FastEthernet0/8switchport mode trunkchannel-group 1 mode desirable!interface FastEthernet0/9switchport mode trunk

    channel-group 2 mode desirable!interface FastEthernet0/10switchport mode trunkchannel-group 2 mode desirable!interface FastEthernet0/11switchport mode trunkchannel-group 3 mode desirable!

    interface FastEthernet0/12switchport mode trunkchannel-group 3 mode desirable!interface Vlan1ip address 172.16.1.101 255.255.255.0no shutdown!

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    95/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 95

    ip default-gateway 172.16.1.1!line vty 0 4password ciscologin

    line vty 5 15password ciscologin!endALS2# show run!hostname ALS2!enable secret cisco!interface Port-channel1switchport mode trunk!interface Port-channel2switchport mode trunk!interface Port-channel3switchport mode trunk!interface FastEthernet0/6

    switchport access vlan 200switchport mode access!interface FastEthernet0/7switchport mode trunkchannel-group 1 mode desirable!interface FastEthernet0/8switchport mode trunkchannel-group 1 mode desirable

    !interface FastEthernet0/9switchport mode trunkchannel-group 2 mode desirable!interface FastEthernet0/10switchport mode trunkchannel-group 2 mode desirable

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    96/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 96

    !interface FastEthernet0/11switchport mode trunkchannel-group 3 mode desirable!

    interface FastEthernet0/12switchport mode trunkchannel-group 3 mode desirable!interface Vlan1ip address 172.16.1.102 255.255.255.0no shutdown!ip default-gateway 172.16.1.1!line vty 0 4password ciscologinline vty 5 15password ciscologinend

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    97/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 97

    Lab 7-1 Configuring Switches for IP Telephony Support

    1.Mc tiu:

    2.Cau hnh:Step 1: Xoa vlan.dat, xoa startup configuration, khi ong lai switch.Step 2: at hostname, password, ip address cho interface vlan1, gateway cho cac switchnh tren hnh ve:

    Switch# configure terminalEnter configuration commands, one per line. End with CNTL/Z.Switch(config)# hostname ALS1ALS1(config)# enable secret ciscoALS1(config)# line vty 0 15ALS1(config-line)# password ciscoALS1(config-line)# loginALS1(config-line)# exitALS1(config)# interface vlan 1ALS1(config-if)# ip address 172.16.1.101 255.255.255.0

    ALS1(config-if)# no shutdownALS1(config-if)# exitALS1(config)# ip default-gateway 172.16.1.1ALS1(config)# end

    Switch# configure terminalEnter configuration commands, one per line. End with CNTL/Z.Switch(config)# hostname ALS2

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    98/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 98

    ALS2(config)# enable secret ciscoALS2(config)# line vty 0 15ALS2(config-line)# password ciscoALS2(config-line)# loginALS2(config-line)# exit

    ALS2(config)# interface vlan 1ALS2(config-if)# ip address 172.16.1.102 255.255.255.0ALS2(config-if)# no shutdownALS2(config-if)# exitALS2(config)# ip default-gateway 172.16.1.1ALS2(config)# end

    Switch# configure terminalEnter configuration commands, one per line. End with CNTL/Z.Switch(config)# hostname DLS1DLS1(config)# enable secret ciscoDLS1(config)# line vty 0 15DLS1(config-line)# password ciscoDLS1(config-line)# loginDLS1(config-line)# exitDLS1(config)# interface vlan 1DLS1(config-if)# ip address 172.16.1.3 255.255.255.0DLS1(config-if)# no shutdownDLS1(config-if)# end

    Switch# configure terminal

    Enter configuration commands, one per line. End with CNTL/Z.Switch(config)# hostname DLS2DLS2(config)# enable secret ciscoDLS2(config)# line vty 0 15DLS2(config-line)# password ciscoDLS2(config-line)# loginDLS2(config-line)# exitDLS2(config)# interface vlan 1DLS2(config-if)# ip address 172.16.1.4 255.255.255.0DLS2(config-if)# no shutdown

    DLS2(config-if)# end

    Step 3: Cau hnh etherchannel tren tat ca cac switch.

    DLS1# configure terminalEnter configuration commands, one per line. End with CNTL/Z.DLS1(config)# interface range fastethernet 0/7 - 8DLS1(config-if-range)# switchport trunk encapsulation dot1q

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    99/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 99

    DLS1(config-if-range)# switchport mode trunkDLS1(config-if-range)# channel-group 1 mode desirableCreating a port-channel interface Port-channel 1

    DLS1(config-if-range)# interface range fastethernet 0/9 - 10

    DLS1(config-if-range)# switchport trunk encapsulation dot1qDLS1(config-if-range)# switchport mode trunkDLS1(config-if-range)# channel-group 2 mode desirableCreating a port-channel interface Port-channel 2

    DLS1(config-if-range)# interface range fastethernet 0/11 - 12DLS1(config-if-range)# switchport trunk encapsulation dot1qDLS1(config-if-range)# switchport mode trunkDLS1(config-if-range)# channel-group 3 mode desirableCreating a port-channel interface Port-channel 3

    DLS1(config-if-range)# end

    DLS2# configure terminalEnter configuration commands, one per line. End with CNTL/Z.DLS2(config)# interface range fastethernet 0/7 - 8DLS2(config-if-range)# switchport trunk encapsulation dot1qDLS2(config-if-range)# switchport mode trunkDLS2(config-if-range)# channel-group 1 mode desirableCreating a port-channel interface Port-channel 1

    DLS2(config-if-range)# interface range fastethernet 0/9 - 10DLS2(config-if-range)# switchport trunk encapsulation dot1qDLS2(config-if-range)# switchport mode trunkDLS2(config-if-range)# channel-group 2 mode desirableCreating a port-channel interface Port-channel 2

    DLS2(config-if-range)# interface range fastethernet 0/11 - 12DLS2(config-if-range)# switchport trunk encapsulation dot1qDLS2(config-if-range)# switchport mode trunkDLS2(config-if-range)# channel-group 3 mode desirable

    Creating a port-channel interface Port-channel 3

    DLS2(config-if-range)# end

    ALS1# configure terminalEnter configuration commands, one per line. End with CNTL/Z.ALS1(config)# interface range fastethernet 0/7 - 8ALS1(config-if-range)# switchport mode trunk

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    100/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 100

    ALS1(config-if-range)# channel-group 1 mode desirableCreating a port-channel interface Port-channel 1

    ALS1(config-if-range)# interface range fastethernet 0/9 - 10ALS1(config-if-range)# switchport mode trunk

    ALS1(config-if-range)# channel-group 2 mode desirableCreating a port-channel interface Port-channel 2

    ALS1(config-if-range)# interface range fastethernet 0/11 - 12ALS1(config-if-range)# switchport mode trunkALS1(config-if-range)# channel-group 3 mode desirableCreating a port-channel interface Port-channel 3

    ALS1(config-if-range)# end

    ALS2# configure terminalEnter configuration commands, one per line. End with CNTL/Z.ALS2(config)# interface range fastethernet 0/7 - 8ALS2(config-if-range)# switchport mode trunkALS2(config-if-range)# channel-group 1 mode desirableCreating a port-channel interface Port-channel 1

    ALS2(config-if-range)# interface range fastethernet 0/9 - 10ALS2(config-if-range)# switchport mode trunkALS2(config-if-range)# channel-group 2 mode desirableCreating a port-channel interface Port-channel 2

    ALS2(config-if-range)# interface range fastethernet 0/11 - 12ALS2(config-if-range)# switchport mode trunkALS2(config-if-range)# channel-group 3 mode desirableCreating a port-channel interface Port-channel 3ALS2(config-if-range)# end

    Step 4 : oi VTP mode thanh client tren ALS1 va ALS2

    ALS1# configure terminal

    Enter configuration commands, one per line. End with CNTL/Z.ALS1(config)# vtp mode clientSetting device to VTP CLIENT mode.ALS1(config)# endALS1#ALS2# configure terminalEnter configuration commands, one per line. End with CNTL/Z.ALS2(config)# vtp mode client

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    101/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 101

    Setting device to VTP CLIENT mode.

    Step 5 : Cau hnh VTP domain tren DLS1 va tao Vlan 100 va 200.

    DLS1# configure terminal

    Enter configuration commands, one per line. End with CNTL/Z.DLS1(config)# vtp domain SWPODDLS1(config)# vlan 100DLS1(config-vlan)# name CP-DataDLS1(config-vlan)# exitDLS1(config)# vlan 200DLS1(config-vlan)# name VoiceDLS1(config-vlan)# end

    Step 6: Cau hnh HSRP tren DLS1 va DLS2:

    Cau hnh HSRP tren DLS1

    DLS1# configure terminalEnter configuration commands, one per line. End with CNTL/Z.DLS1(config)# ip routingDLS1(config)# interface vlan 1DLS1(config-if)# standby 1 ip 172.16.1.1DLS1(config-if)# standby 1 preemptDLS1(config-if)# standby 1 priority 150DLS1(config-if)# exit

    DLS1(config)# interface vlan 100DLS1(config-if)# ip address 172.16.100.3 255.255.255.0DLS1(config-if)# standby 1 ip 172.16.100.1DLS1(config-if)# standby 1 preemptDLS1(config-if)# standby 1 priority 150DLS1(config-if)# no shutdownDLS1(config-if)# exitDLS1(config)# interface vlan 200DLS1(config-if)# ip address 172.16.200.3 255.255.255.0DLS1(config-if)# standby 1 ip 172.16.200.1

    DLS1(config-if)# standby 1 preemptDLS1(config-if)# standby 1 priority 100DLS1(config-if)# end

    Cau hnh HSRP tren DLS2

    DLS2# configure terminalEnter configuration commands, one per line. End with CNTL/Z.

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    102/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 102

    DLS2(config)# ip routingDLS2(config)# interface vlan 1DLS2(config-if)# standby 1 ip 172.16.1.1DLS2(config-if)# standby 1 preemptDLS2(config-if)# standby 1 priority 100

    DLS2(config-if)# exitDLS2(config)# interface vlan 100DLS2(config-if)# ip address 172.16.100.4 255.255.255.0DLS2(config-if)# standby 1 ip 172.16.100.1DLS2(config-if)# standby 1 preemptDLS2(config-if)# standby 1 priority 100DLS2(config-if)# no shutdownDLS2(config-if)# exitDLS2(config)# interface vlan 200DLS2(config-if)# ip address 172.16.200.4 255.255.255.0DLS2(config-if)# standby 1 ip 172.16.200.1DLS2(config-if)# standby 1 preemptDLS2(config-if)# standby 1 priority 150DLS2(config-if)# end

    Step 7: Cau hnh auto Qos voip cisco-phone tren cac port f0/15 24 cua switch ALS1 vaALS2:

    ALS1# configure terminalEnter configuration commands, one per line. End with CNTL/Z.ALS1(config)# interface range fastethernet 0/15 - 24

    ALS1(config-if-range)# switchport access vlan 100ALS1(config-if-range)# switchport voice vlan 200ALS1(config-if-range)# auto qos voip cisco-phoneALS1(config-if-range)# end

    ALS2# configure terminalEnter configuration commands, one per line. End with CNTL/Z.ALS2(config)# interface range fastethernet 0/15 - 24ALS2(config-if-range)# switchport access vlan 100ALS2(config-if-range)# switchport voice vlan 200

    ALS2(config-if-range)# auto qos voip cisco-phoneALS2(config-if-range)# end

    Step 8: Kien tra auto QoS dung lenh show mls qos interface

    ALS1# show mls qos int fa 0/15FastEthernet0/15trust state: not trusted

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    103/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 103

    trust mode: trust costrust enabled flag: disCOS override: disdefault COS: 0DSCP Mutation Map: Default DSCP Mutation Map

    Trust device: cisco-phoneqos mode: port-based

    ALS1# show run interface fastethernet 0/15interface FastEthernet0/15switchport access vlan 100switchport voice vlan 200srr-queue bandwidth share 10 10 60 20srr-queue bandwidth shape 10 0 0 0mls qos trust device cisco-phonemls qos trust cosauto qos voip cisco-phonespanning-tree portfast

    Step 9: Cau hnh auto qos voip trust tren cac port f0/7 12 cua DLS1 va DLS2

    DLS1# configure terminalEnter configuration commands, one per line. End with CNTL/Z.DLS1(config)# mls qosDLS1(config)# interface range fa0/7 - 12DLS1(config-if-range)# auto qos voip trust

    DLS1(config-if-range)# endDLS1#

    DLS2# configure terminalEnter configuration commands, one per line. End with CNTL/Z.DLS2(config)# mls qosDLS2(config)# interface range fa0/7 - 12DLS2(config-if-range)# auto qos voip trustDLS2(config-if-range)# endDLS1#

    Step 10: Kiem tra auto QoS dung lenh show auto qos interface

    DLS1# show auto qos interfaceFastEthernet0/7auto qos voip trustFastEthernet0/8auto qos voip trust

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    104/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 104

    FastEthernet0/9auto qos voip trustFastEthernet0/10auto qos voip trustFastEthernet0/11

    auto qos voip trustFastEthernet0/12auto qos voip trust

    DLS1# show mls qos interface fastethernet 0/7FastEthernet0/7trust state: trust costrust mode: trust costrust enabled flag: enaCOS override: disdefault COS: 0DSCP Mutation Map: Default DSCP Mutation MapTrust device: noneqos mode: port-based

    Step 11: port f0/5 cua ALS2 noi vi IP camera, tat ca traffice cua port nay c anh dauCoS la 3:

    ALS2(config)# interface fastethernet 0/5ALS2(config-if)# mls qos cos 3

    ALS2# show mls qos interface fa0/5FastEthernet0/5trust state: not trustedtrust mode: not trustedtrust enabled flag: enaCOS override: disdefault COS: 3DSCP Mutation Map: Default DSCP Mutation MapTrust device: none

    qos mode: port-based

    Final Configurations

    DLS1# show run!hostname DLS1

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    105/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 105

    !enable secret cisco!!ip routing

    !mls qos map cos-dscp 0 8 16 26 32 46 48 56mls qos srr-queue input bandwidth 90 10mls qos srr-queue input threshold 1 8 16mls qos srr-queue input threshold 2 34 66mls qos srr-queue input buffers 67 33mls qos srr-queue input cos-map queue 1 threshold 2 1mls qos srr-queue input cos-map queue 1 threshold 3 0mls qos srr-queue input cos-map queue 2 threshold 1 2mls qos srr-queue input cos-map queue 2 threshold 2 4 6 7mls qos srr-queue input cos-map queue 2 threshold 3 3 5mls qos srr-queue input dscp-map queue 1 threshold 2 9 10 11 12 13 14 15mls qos srr-queue input dscp-map queue 1 threshold 3 0 1 2 3 4 5 6 7mls qos srr-queue input dscp-map queue 1 threshold 3 32mls qos srr-queue input dscp-map queue 2 threshold 1 16 17 18 19 20 21 22 23mls qos srr-queue input dscp-map queue 2 threshold 2 33 34 35 36 37 38 39 48mls qos srr-queue input dscp-map queue 2 threshold 2 49 50 51 52 53 54 55 56mls qos srr-queue input dscp-map queue 2 threshold 2 57 58 59 60 61 62 63mls qos srr-queue input dscp-map queue 2 threshold 3 24 25 26 27 28 29 30 31mls qos srr-queue input dscp-map queue 2 threshold 3 40 41 42 43 44 45 46 47mls qos srr-queue output cos-map queue 1 threshold 3 5

    mls qos srr-queue output cos-map queue 2 threshold 3 3 6 7mls qos srr-queue output cos-map queue 3 threshold 3 2 4mls qos srr-queue output cos-map queue 4 threshold 2 1mls qos srr-queue output cos-map queue 4 threshold 3 0mls qos srr-queue output dscp-map queue 1 threshold 3 40 41 42 43 44 45 46 47mls qos srr-queue output dscp-map queue 2 threshold 3 24 25 26 27 28 29 30 31mls qos srr-queue output dscp-map queue 2 threshold 3 48 49 50 51 52 53 54 55mls qos srr-queue output dscp-map queue 2 threshold 3 56 57 58 59 60 61 62 63mls qos srr-queue output dscp-map queue 3 threshold 3 16 17 18 19 20 21 22 23mls qos srr-queue output dscp-map queue 3 threshold 3 32 33 34 35 36 37 38 39

    mls qos srr-queue output dscp-map queue 4 threshold 1 8mls qos srr-queue output dscp-map queue 4 threshold 2 9 10 11 12 13 14 15mls qos srr-queue output dscp-map queue 4 threshold 3 0 1 2 3 4 5 6 7mls qos queue-set output 1 threshold 1 138 138 92 138mls qos queue-set output 1 threshold 2 138 138 92 400mls qos queue-set output 1 threshold 3 36 77 100 318mls qos queue-set output 1 threshold 4 20 50 67 400mls qos queue-set output 2 threshold 1 149 149 100 149

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    106/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 106

    mls qos queue-set output 2 threshold 2 118 118 100 235mls qos queue-set output 2 threshold 3 41 68 100 272mls qos queue-set output 2 threshold 4 42 72 100 242mls qos queue-set output 1 buffers 10 10 26 54mls qos queue-set output 2 buffers 16 6 17 61

    mls qos!interface Port-channel1switchport trunk encapsulation dot1qswitchport mode trunk!interface Port-channel2switchport trunk encapsulation dot1qswitchport mode trunk!interface Port-channel3switchport trunk encapsulation dot1qswitchport mode trunk!!interface FastEthernet0/7switchport trunk encapsulation dot1qswitchport mode trunksrr-queue bandwidth share 10 10 60 20srr-queue bandwidth shape 10 0 0 0mls qos trust cos

    auto qos voip trustchannel-group 1 mode desirable!interface FastEthernet0/8switchport trunk encapsulation dot1qswitchport mode trunksrr-queue bandwidth share 10 10 60 20srr-queue bandwidth shape 10 0 0 0mls qos trust cosauto qos voip trust

    channel-group 1 mode desirable!interface FastEthernet0/9switchport trunk encapsulation dot1qswitchport mode trunksrr-queue bandwidth share 10 10 60 20srr-queue bandwidth shape 10 0 0 0mls qos trust cos

  • 8/21/2019 Tai Lieu Thuc Hanh Ccnp Tieng VietBCMSN.0 Giaotrinhcntt.com

    107/159

    Sch Lab BCMSN V3.0 Ti liu thc hnh dnh cho hc vin

    VSIC Education Corporation Trang 107

    auto qos voip trustchannel-group 2 mode desirable!interface FastEthernet0/10switchport trunk encapsulation dot1q

    switchport mode trunksrr-queue bandwidth share 10 10 60 20srr-queue bandwidth shape 10 0 0 0mls qos trust cosauto qos voip trustchannel-group 2 mode desirable!interface FastEthernet0/11switchport trunk encapsulation dot1qswitchport mode trunksrr-queue bandwidth share 10 10 60 20srr-queue bandwidth shape 10 0 0 0mls qos trust cosauto qos voip trustchannel-group 3 mode desirable!interface FastEthernet0/12switchport trunk encapsulation dot1qswitchport mode trunksrr-queue bandwidth share 10 10 60 20srr-queue bandwidth shape 10 0 0 0

    mls qos trust cosauto qos voip trustchannel-group 3 mode desirable!!interface