المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : ارجو المساعده في حل بعض اسألأة الsw3وهي



ahmed OSHI
28-06-2006, 16:59
:frnd" :frnd" 1 .What happens when SwX is reconnected to the network and a trunk exists between the two switches?

2
out of which port on Sw-Ac3 will an IP packet with destination address not on local LAN be forwarded.

3
Q8.What address should be configured as the default-gateway for the host connected to
interface Fa0/4 of Sw-AC3?

bluemoon
28-06-2006, 19:06
مرحبا اخي احمد

هذا حل كل اساله الsw مع الشرح

Q.1.What happens when SwX is reconnected to the network and a trunk exists between the two switches?
Step 1.Issue the Sw-AC3#show vtp status command.Note the domain name.The domain name of the 2 switches must be the same for them to

exchange vtp messages

Step2:If the domain name is the same,note the config rev no of Sw-AC3 and compare with that of Sw-X.Whichever switch has higher config

revision no. will be the vtp updater.Say Sw-X has higher rev no.Its vlan will replace that of Sw-AC3.



Q2.What interface did switch AC-3 associate with Mac address 0010.5a0c.ffba?
Step1.Type in the command <SW-AC3#show mac-address-table.This will give you the port on which the MAC address was leant by this switch



Q3.To which port of Sw-Ac3 is router VLAN-R1 connected?
Step1.Type <Sw-Ac3#show cdp neighbor detail.This will provide the details of VLAN-R1 i.e. hostname,IP address,and IOS version.
Step2:Type <Sw-AC3#cdp neighbor.This will display the port (local interface)on which R1 is connected.




Q4.What ports of switch Sw-Ac3 are operationg as trunks?
Step 1.Type <Sw-Ac3#show interfaces trunk.This will display all the trunk ports.eg
Sw-AC3# show interfaces trunk
Port Mode Encapsulation Status Native vlan
Fa0/1 on 802.1q trunking 1
Port Vlans allowed on trunk
Fa0/1 1-4094
Port Vlans allowed and active in management domain
Fa0/1 1-2
Port Vlans in spanning tree forwarding state and not pruned
Fa0/1 1-2




Q5.Which switch is the root bridge?
Step1.Type <Sw-Ac3#show spanning-tree.This will give the MAC address of root bridge

Step2;Now type show mac-address-table.Note down associated interface with mac address of the root bridge (say fa 0/2)

Step3.Now type <Sw-AC3#show cdp neighbor.This will give the hostname of the switch connected on that port 91.e fa 0/2




Q6.out of which port on Sw-Ac3 will an IP packet with destination address not on local LAN be forwarded.

Step1.The packet will be sent to the default-gateway.Hence type <Sw-Ac3#show running-config.Note the IP address of the default-gateway.

Step2.Now type <Sw-AC3#show cdp neighbor detail.This will provide ip address mapping to hostname.

Step 3:Type <Sw-AC3#show cdp neighbor.This will give the local interface associated with the hostname.



7.Which Which switch is the root bridge for vlan 1?

Step 1.Type <Sw-AC3#show spanning-tree vlan 1>This will give the MAC address of root bridge

Step2;Now type show mac-address-table.Note down associated interface with mac address of the root bridge (say fa 0/2)

Step3.Now type <Sw-AC3#show cdp neighbor.This will give the hostname of the switch connected on that port 91.e fa 0/2








Q8.What address should be configured as the default-gateway for the host connected to
interface Fa0/4 of Sw-AC3?
Step1.Type <Sw-AC3#show vlan.This will display list of vlans and associated port.Based on the vlan no find out the default gateway (i.e

interface ip address of VLAN-R1 router corresponding to that vlan




Q9. Out of which ports will frame with source mac-address 0010.5a0c.A086 and destination mac address 000a.8a47.0612 be forwarded (choose two)
Step1.Type <Sw-AC3# show mac-address-table.

Step2.In the output check if the 2 mac addresses mentioned above have been learnt by the switch.If they are not then it will be flooded out on

all ports except the port on which it was recd (the port coressponding to source mac).If dest mac is present in the table it will be sent out on

the port on which the address was learnt(port coresponding to the address in the output of show command)




Q 10.From which switch did Sw-AC3 receive the VLAN information?

Step1.Type <Sw-AC3#show vtp status>

Step2.The VTP message contains updater identity i.e one who has last updated the vlan config info.The IP address of the updater will be

displayed at the bottom i.e the updater of vlan info along with the time when it updated.It could also be Sw-AC3 itself.In that case the

updater identity will indicate as local.

Step3.Now type <Sw-AC#show cdp neighbor detail.This will provide the hostname corressponding to that IP


وبتوفيق انشاء الله

ahmed OSHI
28-06-2006, 20:24
شكرا للك يا اخي وماقصرت وجازك الله الف خير ونفع بك البلاد والعباد وقدرنا علي جزاك وبارك الله فيك
اخزك احمد

الصمود
28-06-2006, 21:26
جهد مبارك اخي

ولكن بالنسبة لهذا السؤال
Q4.What ports of switch Sw-Ac3 are operationg as trunks?
Step 1.Type <Sw-Ac3#show interfaces trunk.This will display all the trunk ports.eg
Sw-AC3# show interfaces trunk
Port Mode Encapsulation Status Native vlan
Fa0/1 on 802.1q trunking 1
Port Vlans allowed on trunk
Fa0/1 1-4094
Port Vlans allowed and active in management domain
Fa0/1 1-2
Port Vlans in spanning tree forwarding state and not pruned
Fa0/1 1-2

ممكن أن يحل هذا السؤال بشكل أبسط وهو كالتالي

نحن بحاجة إلى أن نعرف اي من البورتات يعمل trunk

لذلك ليس لنا حاجة إلا أن نستخدم الأمر التالي

show run وبالتالي سيعطينا كل البورتات وحالة كل منها هل هي آكسس أم ترنك

بالتوفيق للجميع

اخوكم محمود

ahmed OSHI
28-06-2006, 22:34
ماقصرت اخي وبارك الله فيك