عرض مشاركة واحدة
قديم 01-05-2012, 06:21 PM   #5
فريكر
:: سيسكو مميز ::
 
الصورة الرمزية فريكر
 
تاريخ التسجيل: Jan 2011
المشاركات: 366
شكراً: 11
تم شكره 99 مرة في 42 مشاركة
فريكر will become famous soon enough
إرسال رسالة عبر مراسل MSN إلى فريكر
افتراضي رد: لابات حلها تضمن شهادة ccna

حل المجموعة الثانية LAN Technology
NA-2-1-InterVLAN.pka
NA-2-2-VTP.pka
NA-2-3-STP.pka

كود:
<<Answer for LAB 2-1: InterVLAN Routing>>

[On Ranet SW (via console)] :
(Go to Desktop Tab > Terminal)
Ranet-SW>en
Ranet-SW#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Ranet-SW(config)#vlan 10
Ranet-SW(config-vlan)#vlan 20
Ranet-SW(config-vlan)#int ran fa0/1 -2
Ranet-SW(config-if-range)#switchport mode access 
Ranet-SW(config-if-range)#switchport access vlan 10
Ranet-SW(config-if-range)#spanning-tree portfast 
%Warning: portfast should only be enabled on ports connected to a single
 host. Connecting hubs, concentrators, switches, bridges, etc... to this
 interface  when portfast is enabled, can cause temporary bridging loops.
 Use with CAUTION

%Portfast will be configured in 2 interfaces due to the range command
 but will only have effect when the interfaces are in a non-trunking mode.
Ranet-SW(config-if-range)#int ran fa0/3 -4
Ranet-SW(config-if-range)#switchport mode access 
Ranet-SW(config-if-range)#switchport access vlan 20
Ranet-SW(config-if-range)#spanning-tree portfast 
%Warning: portfast should only be enabled on ports connected to a single
 host. Connecting hubs, concentrators, switches, bridges, etc... to this
 interface  when portfast is enabled, can cause temporary bridging loops.
 Use with CAUTION

%Portfast will be configured in 2 interfaces due to the range command
 but will only have effect when the interfaces are in a non-trunking mode.
Ranet-SW(config-if-range)#int gig1/1
Ranet-SW(config-if)#switchport mode trunk 
Ranet-SW(config-if)#

%SYS-5-CONFIG_I: Configured from console by console
Ranet-SW#copy run start
Destination filename [startup-config]? 
Building configuration...
[OK]
Ranet-SW#

[On Ranet GW (via console)] :
(Go to Desktop Tab > Terminal)
Ranet-GW>en
Ranet-GW#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Ranet-GW(config)#int fa0/0
Ranet-GW(config-if)#no sh

%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
Ranet-GW(config-if)#int fa0/0.1
Ranet-GW(config-subif)#
%LINK-5-CHANGED: Interface FastEthernet0/0.1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.1, changed state to up
Ranet-GW(config-subif)#encapsulation dot1Q 10
Ranet-GW(config-subif)#ip add 192.168.0.142 255.255.255.240
Ranet-GW(config-subif)#int fa0/0.2

%LINK-5-CHANGED: Interface FastEthernet0/0.2, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.2, changed state to upRanet-GW(config-subif)#en
Ranet-GW(config-subif)#encapsulation dot1Q 20
Ranet-GW(config-subif)#ip add 192.168.0.158 255.255.255.240
Ranet-GW(config-subif)#

%SYS-5-CONFIG_I: Configured from console by consoleRanet-GW#
Ranet-GW#sh ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
       * - candidate default, U - per-user static route, o - ODR
       P - periodic downloaded static route

Gateway of last resort is not set

     192.168.0.0/28 is subnetted, 2 subnets
C       192.168.0.128 is directly connected, FastEthernet0/0.1
C       192.168.0.144 is directly connected, FastEthernet0/0.2
Ranet-GW#copy run start
Destination filename [startup-config]? 
Building configuration...
[OK]
Ranet-GW#

[On Host1] :
(Go to Desktop Tab > Command Prompt)
Packet Tracer PC Command Line 1.0
PC>ping 192.168.0.145

Pinging 192.168.0.145 with 32 bytes of data:

Request timed out.
Reply from 192.168.0.145: bytes=32 time=18ms TTL=127
Reply from 192.168.0.145: bytes=32 time=14ms TTL=127
Reply from 192.168.0.145: bytes=32 time=19ms TTL=127

Ping statistics for 192.168.0.145:
    Packets: Sent = 4, Received = 3, Lost = 1 (25% loss),
Approximate round trip times in milli-seconds:
    Minimum = 14ms, Maximum = 19ms, Average = 17ms

PC>ping 192.168.0.146

Pinging 192.168.0.146 with 32 bytes of data:

Request timed out.
Reply from 192.168.0.146: bytes=32 time=16ms TTL=127
Reply from 192.168.0.146: bytes=32 time=12ms TTL=127
Reply from 192.168.0.146: bytes=32 time=16ms TTL=127

Ping statistics for 192.168.0.146:
    Packets: Sent = 4, Received = 3, Lost = 1 (25% loss),
Approximate round trip times in milli-seconds:
    Minimum = 12ms, Maximum = 16ms, Average = 14ms

PC>
كود:
<<Answer for LAB 2-2: VTP>>

[On Ranet SW1 (via console)] :
(Go to Desktop Tab > Terminal)
Ranet-SW1>sh vtp status
VTP Version                     : 2
Configuration Revision          : 1
Maximum VLANs supported locally : 255
Number of existing VLANs        : 7
VTP Operating Mode              : Server
VTP Domain Name                 : Ranet
VTP Pruning Mode                : Disabled
VTP V2 Mode                     : Enabled
VTP Traps Generation            : Disabled
MD5 digest                      : 0x30 0x94 0xC2 0x6A 0x32 0xCF 0x82 0xFF 
Configuration last modified by 0.0.0.0 at 3-1-93 00:41:24
Local updater ID is 0.0.0.0 (no valid interface found)
Ranet-SW1>sh vlan

VLAN Name                             Status    Ports
---- -------------------------------- --------- -------------------------------
1    default                          active    Fa0/3, Fa0/4, Fa0/5, Fa0/6
                                                Fa0/7, Fa0/8, Fa0/9, Fa0/10
                                                Fa0/11, Fa0/12, Fa0/13, Fa0/14
                                                Fa0/15, Fa0/16, Fa0/17, Fa0/18
                                                Fa0/19, Fa0/20, Fa0/21, Fa0/22
                                                Fa0/23, Fa0/24, Gig1/1, Gig1/2
10   Ranet-01                         active    Fa0/1
20   Ranet-02                         active    Fa0/2
1002 fddi-default                     act/unsup 
1003 token-ring-default               act/unsup 
1004 fddinet-default                  act/unsup 
1005 trnet-default                    act/unsup 

VLAN Type  SAID       MTU   Parent RingNo BridgeNo Stp  BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
1    enet  100001     1500  -      -      -        -    -        0      0
10   enet  100010     1500  -      -      -        -    -        0      0
20   enet  100020     1500  -      -      -        -    -        0      0
1002 fddi  101002     1500  -      -      -        -    -        0      0   
1003 tr    101003     1500  -      -      -        -    -        0      0   
1004 fdnet 101004     1500  -      -      -        ieee -        0      0   
1005 trnet 101005     1500  -      -      -        ibm  -        0      0   

Remote SPAN VLANs
------------------------------------------------------------------------------


Primary Secondary Type              Ports
------- --------- ----------------- ------------------------------------------
Ranet-SW1>

[On Ranet SW2 (via console)] :
(Go to Desktop Tab > Terminal)
Ranet-SW2>en
Ranet-SW2#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Ranet-SW2(config)#vtp mode transparent 
Setting device to VTP TRANSPARENT mode.
Ranet-SW2(config)#vtp domain Ranet
Changing VTP domain name from NULL to Ranet
Ranet-SW2(config)#vtp version 2
Ranet-SW2(config)#int gig1/1
Ranet-SW2(config-if)#switchport mode trunk 

%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/1, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/1, changed state to up
Ranet-SW2(config-if)#
Ranet-SW2#
%SYS-5-CONFIG_I: Configured from console by console
Ranet-SW2#sh vtp status
VTP Version                     : 2
Configuration Revision          : 0
Maximum VLANs supported locally : 255
Number of existing VLANs        : 7
VTP Operating Mode              : Transparent
VTP Domain Name                 : Ranet
VTP Pruning Mode                : Disabled
VTP V2 Mode                     : Enabled
VTP Traps Generation            : Disabled
MD5 digest                      : 0x39 0x70 0x66 0x32 0x4F 0x8F 0x84 0x33 
Configuration last modified by 0.0.0.0 at 3-1-93 00:14:20
Ranet-SW2#sh vlan

VLAN Name                             Status    Ports
---- -------------------------------- --------- -------------------------------
1    default                          active    Fa0/3, Fa0/4, Fa0/5, Fa0/6
                                                Fa0/7, Fa0/8, Fa0/9, Fa0/10
                                                Fa0/11, Fa0/12, Fa0/13, Fa0/14
                                                Fa0/15, Fa0/16, Fa0/17, Fa0/18
                                                Fa0/19, Fa0/20, Fa0/21, Fa0/22
                                                Fa0/23, Fa0/24, Gig1/2
30   Ranet-03                         active    Fa0/1
40   Ranet-04                         active    Fa0/2
1002 fddi-default                     act/unsup 
1003 token-ring-default               act/unsup 
1004 fddinet-default                  act/unsup 
1005 trnet-default                    act/unsup 

VLAN Type  SAID       MTU   Parent RingNo BridgeNo Stp  BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
1    enet  100001     1500  -      -      -        -    -        0      0
30   enet  100030     1500  -      -      -        -    -        0      0
40   enet  100040     1500  -      -      -        -    -        0      0
1002 fddi  101002     1500  -      -      -        -    -        0      0   

Ranet-SW2#sh inter
Ranet-SW2#sh interfaces trunk
Port        Mode         Encapsulation  Status        Native vlan
Gig1/1      on           802.1q         trunking      1

Port        Vlans allowed on trunk
Gig1/1      1-1005

Port        Vlans allowed and active in management domain
Gig1/1      1,30,40

Port        Vlans in spanning tree forwarding state and not pruned
Gig1/1      none
Ranet-SW2#copy run start
Destination filename [startup-config]? 
Building configuration...
[OK]
Ranet-SW2#

[On Ranet SW3 (via console)] :
(Go to Desktop Tab > Terminal)
Ranet-SW3>en
Ranet-SW3#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Ranet-SW3(config)#vtp mode transparent 
Setting device to VTP TRANSPARENT mode.
Ranet-SW3(config)#vtp domain Ranet
Changing VTP domain name from NULL to Ranet
Ranet-SW3(config)#vtp mode client 
Setting device to VTP CLIENT mode.
Ranet-SW3(config)#int gig1/1
Ranet-SW3(config-if)#switchport mode trunk 

%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/1, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/1, changed state to up
Ranet-SW3(config-if)#
Ranet-SW3#
%SYS-5-CONFIG_I: Configured from console by console
Ranet-SW3#sh vtp status
VTP Version                     : 2
Configuration Revision          : 1
Maximum VLANs supported locally : 255
Number of existing VLANs        : 7
VTP Operating Mode              : Client
VTP Domain Name                 : Ranet
VTP Pruning Mode                : Disabled
VTP V2 Mode                     : Enabled
VTP Traps Generation            : Disabled
MD5 digest                      : 0x30 0x94 0xC2 0x6A 0x32 0xCF 0x82 0xFF 
Configuration last modified by 0.0.0.0 at 3-1-93 00:41:24
Ranet-SW3#sh vlan

VLAN Name                             Status    Ports
---- -------------------------------- --------- -------------------------------
1    default                          active    Fa0/1, Fa0/2, Fa0/3, Fa0/4
                                                Fa0/5, Fa0/6, Fa0/7, Fa0/8
                                                Fa0/9, Fa0/10, Fa0/11, Fa0/12
                                                Fa0/13, Fa0/14, Fa0/15, Fa0/16
                                                Fa0/17, Fa0/18, Fa0/19, Fa0/20
                                                Fa0/21, Fa0/22, Fa0/23, Fa0/24
                                                Gig1/2
10   Ranet-01                         active    
20   Ranet-02                         active    
1002 fddi-default                     act/unsup 
1003 token-ring-default               act/unsup 
1004 fddinet-default                  act/unsup 
1005 trnet-default                    act/unsup 

VLAN Type  SAID       MTU   Parent RingNo BridgeNo Stp  BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
1    enet  100001     1500  -      -      -        -    -        0      0
10   enet  100010     1500  -      -      -        -    -        0      0
20   enet  100020     1500  -      -      -        -    -        0      0

Ranet-SW3#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Ranet-SW3(config)#int fa0/1
Ranet-SW3(config-if)#switchport mode access 
Ranet-SW3(config-if)#switchport access vlan 10
Ranet-SW3(config-if)#int fa0/2
Ranet-SW3(config-if)#switchport mode access 
Ranet-SW3(config-if)#switchport access vlan 20
Ranet-SW3(config-if)#
Ranet-SW3#
%SYS-5-CONFIG_I: Configured from console by console
Ranet-SW3#sh vlan

VLAN Name                             Status    Ports
---- -------------------------------- --------- -------------------------------
1    default                          active    Fa0/3, Fa0/4, Fa0/5, Fa0/6
                                                Fa0/7, Fa0/8, Fa0/9, Fa0/10
                                                Fa0/11, Fa0/12, Fa0/13, Fa0/14
                                                Fa0/15, Fa0/16, Fa0/17, Fa0/18
                                                Fa0/19, Fa0/20, Fa0/21, Fa0/22
                                                Fa0/23, Fa0/24, Gig1/2
10   Ranet-01                         active    Fa0/1
20   Ranet-02                         active    Fa0/2
1002 fddi-default                     act/unsup 
1003 token-ring-default               act/unsup 
1004 fddinet-default                  act/unsup 
1005 trnet-default                    act/unsup 

VLAN Type  SAID       MTU   Parent RingNo BridgeNo Stp  BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
1    enet  100001     1500  -      -      -        -    -        0      0
10   enet  100010     1500  -      -      -        -    -        0      0
20   enet  100020     1500  -      -      -        -    -        0      0
1002 fddi  101002     1500  -      -      -        -    -        0      0   

Ranet-SW3#copy run start
Destination filename [startup-config]? 
Building configuration...
[OK]
Ranet-SW3#
كود:
<<Answer for LAB 2-3: STP>>

[On Ranet Core-SW (via console)] :
(Go to Desktop Tab > Terminal)
Ranet-CoreSW>en
Ranet-CoreSW#sh spanning-tree 
VLAN0001
  Spanning tree enabled protocol ieee
  Root ID    Priority    32769
             Address     0002.4A0B.19DB
             Cost        4
             Port        26(GigabitEthernet0/2)
             Hello Time  2 sec  Max Age 20 sec  Forward Delay 15 sec

  Bridge ID  Priority    32769  (priority 32768 sys-id-ext 1)
             Address     0090.216A.C001
             Hello Time  2 sec  Max Age 20 sec  Forward Delay 15 sec
             Aging Time  20

Interface        Role Sts Cost      Prio.Nbr Type
---------------- ---- --- --------- -------- --------------------------------
Gi0/1            Desg FWD 4         128.25   P2p
Gi0/2            Root FWD 4         128.26   P2p

Ranet-CoreSW#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Ranet-CoreSW(config)#spanning-tree vlan 1 root primary 
Ranet-CoreSW(config)#
Ranet-CoreSW#
%SYS-5-CONFIG_I: Configured from console by console
Ranet-CoreSW#sh spanning-tree 
VLAN0001
  Spanning tree enabled protocol ieee
  Root ID    Priority    24577
             Address     0090.216A.C001
             This bridge is the root
             Hello Time  2 sec  Max Age 20 sec  Forward Delay 15 sec

  Bridge ID  Priority    24577  (priority 24576 sys-id-ext 1)
             Address     0090.216A.C001
             Hello Time  2 sec  Max Age 20 sec  Forward Delay 15 sec
             Aging Time  20

Interface        Role Sts Cost      Prio.Nbr Type
---------------- ---- --- --------- -------- --------------------------------
Gi0/1            Desg FWD 4         128.25   P2p
Gi0/2            Altn BLK 4         128.26   P2p

Ranet-CoreSW#copy run start
Destination filename [startup-config]? 
Building configuration...
[OK]
Ranet-CoreSW#

[On Ranet SW3 (via console)] :
(Go to Desktop Tab > Terminal)
Ranet-SW3>en
Ranet-SW3#sh spanning-tree 
VLAN0001
  Spanning tree enabled protocol ieee
  Root ID    Priority    24577
             Address     0090.216A.C001
             Cost        4
             Port        25(GigabitEthernet1/1)
             Hello Time  2 sec  Max Age 20 sec  Forward Delay 15 sec

  Bridge ID  Priority    32769  (priority 32768 sys-id-ext 1)
             Address     0002.4A0B.19DB
             Hello Time  2 sec  Max Age 20 sec  Forward Delay 15 sec
             Aging Time  20

Interface        Role Sts Cost      Prio.Nbr Type
---------------- ---- --- --------- -------- --------------------------------
Gi1/1            Root FWD 4         128.25   P2p
Fa0/1            Desg FWD 19        128.1    P2p

Ranet-SW3#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Ranet-SW3(config)#spanning-tree vlan 1 priority ?
  <0-61440>  bridge priority in increments of 4096
Ranet-SW3(config)#spanning-tree vlan 1 priority 61440
Ranet-SW3(config)#
Ranet-SW3#
%SYS-5-CONFIG_I: Configured from console by console
Ranet-SW3#sh spanning-tree 
VLAN0001
  Spanning tree enabled protocol ieee
  Root ID    Priority    24577
             Address     0090.216A.C001
             Cost        4
             Port        25(GigabitEthernet1/1)
             Hello Time  2 sec  Max Age 20 sec  Forward Delay 15 sec

  Bridge ID  Priority    61441  (priority 61440 sys-id-ext 1)
             Address     0002.4A0B.19DB
             Hello Time  2 sec  Max Age 20 sec  Forward Delay 15 sec
             Aging Time  20

Interface        Role Sts Cost      Prio.Nbr Type
---------------- ---- --- --------- -------- --------------------------------
Gi1/1            Root FWD 4         128.25   P2p
Fa0/1            Desg FWD 19        128.1    P2p

Ranet-SW3#copy run start
Destination filename [startup-config]? 
Building configuration...
[OK]
Ranet-SW3#

(If you wait for a min, you will see the blocked port on Ranet-SW2 changed to be Fa0/2
due to the change in sender bridge ID from Ranet-SW3.)
فريكر غير متواجد حالياً   رد مع اقتباس
 

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36