They have just added a new switch (SwitchB) to the existing network as shown in the topology diagram. RouterA is currently configured correctly and is providing the routing function for devices on SwitchA and SwitchB. SwitchA is currently configured correctly, but will need to be modified to support the addition of SwitchB. SwitchB has a minimal configuration. You have been tasked with competing the needed configuring of SwitchA and SwitchB. SwitchA and SwitchB use Cisco as the enable password.
Configuration Requirements for SwitchA - The VTP and STP configuration modes on SwitchA should not be modified. – SwitchA needs to be the root switch for vlans 11, 12, 13, 21, 22 and 23. All other vlans should be left are their default values.
Configuration Requirements for SwitchB - Vlan 21, Name: Marketing, will support two servers attached to fa0/9 and fa0/10 – Vlan 22, Name: Sales, will support two servers attached to fa0/13 and fa0/14 – Vlan 23, Name: Engineering, will support two servers attached to fa0/15 and fa0/16 – Access ports that connect to server should transition immediately to forwarding state upon detecting the connection of a device. – SwitchB VTP mode needs to be the same as SwitchA. – SwitchB must operate in the same spanning tree mode as SwitchA. – No routing is to be configured on SwitchB. – Only the SVI vlan 1 is to be configured and it is to use address 192.168.1.11/24.
Inter-switch Connectivity Configuration Requirements: - For operational and security reasons trunking should be unconditional and Vlans 1, 21, 22 and 23 should tagged when traversing the trunk link. – The two trunks between SwitchA and SwitchB need to be configured in a mode that allows for the maximum use of their bandwidth for all vlans. This mode should be done with a non-proprietary protocol, with SwitchA controlling activation. – Propagation of unnecessary broadcasts should be limited using manual pruning on this trunk link.
==================我整理了一下题库给的答案================= SWITCH A vlan 21 name Marketing vlan 22 name Sales vlan 23 name Engineering
spanning-tree vlan11-13,21-23 root primary (按题目要求SWITCH A做root) interface range FastEthernet0/3-4 no switchport mode access no switchport access vlan 98 (为什么突然有个vlan98?) switchport trunk encapsulation dot1q switchport mode trunk switchport trunk native vlan 99 (为什么会有vlan 99变成native vlan?) switchport trunk allowed vlan 1,21-23 channel-group 1 mode active channel-protocol lacp no shutdown exit
interfaceport-channel 1 switchport mode trunk switchport trunk native vlan 99 (为什么会有vlan 99变成native vlan?) switchport trunk allowed vlan 1,21-23 end copy run start
==============GFX================ vlan 21 name Marketing vlan 22 name Sales vlan 23 name Engineering 配置相应的口到各个VLAN interface range FastEthernet0/9-10 switchport access vlan 21 switchport mode access spanning-tree portfast ! no shutdown interfaceFastEthernet0/13-14 switchport access vlan 22
switchport mode access spanning-tree portfast no shutdown interfaceFastEthernet0/15-16 switchport access vlan 23 switchport mode access spanning-tree portfast no shutdown exit
下面这段不明白,是题目要求吗?为什么要设置这些命令 SW-B(config)#vtpmode transparent SW-B(config)#spanning-treemode rapid-pvst 题目貌似要和A一样的VTP 模式,是不是先查看A,再设置?? SW-B(config)#ipdefault-gateway 192.168.1.1 SW-B(config)#interfacevlan 1 SW-B(config-if)#ipaddress 192.168.1.11 255.255.255.0 SW-B(config-if)#noshutdown SW-B(config-if)#exit
配置中间trunk通道, EthenChannel interface range FastEthernet0/3-4 switchport trunk encapsulation dot1q switchport trunk allowed vlan 1,21-23 (只允许这些vlan通过) channel-group 1 mode passive (SwitchA controlling activation) channel-protocol lacp (a non-propretary protocol 非私有协议) no shutdown
interface port-channel1 switchport mode trunk switchport trunk native vlan 99 (为什么会有vlan 99变成native vlan?) switchport trunk allowed vlan 1,21-23 end
=====================FGX============= 几个大的模块我明白,要设置vlan名字,相应的端口,要portfast 设置中间的3-4接口 A要做VLAN的root SVI VLAN 1的IP
最麻烦是不清楚为什么有个native vlan 99还有个vlan98? 大家考过的,或者明白的请来告诉我一下,谢谢各位。
|