1、用相关显示命令查看配置结果。(4)在SW2上配置相关VLAN,并把交换机相应的端口添加到VLAN中。(5)在SW3上配置相关VLAN,并把交换机相应的端口添加到VLAN中。(6)在SW4上进行相关配置,使得不同交换机上的相同部门PC(如销售部PC1和销售部PC3)可以相互访问。项目拓展要求(选做):如何配置下面网络拓扑图中的两个交换机,使得两个不同VLAN中的PC能相互访问。SwitchenconfSwitch#confConfiguring from terminal, memory, or network terminal? Enter configuration commands, on
2、e per line. End with CNTL/Z.Switch(config)#inSwitch(config)#VLAN 10Switch(config-vlan)#exitSwitch(config)#interface raSwitch(config)#interface range f0/5Switch(config-if-range)#swSwitch(config-if-range)#switchport acSwitch(config-if-range)#switchport access vlan 10Switch(config-if-range)#exitSwitch(
3、config)#exitSwitch#%SYS-5-CONFIG_I: Configured from console by consoleSwitch(config-if-range)#switchport mode ? access Set trunking mode to ACCESS unconditionally dynamic Set trunking mode to dynamically negotiate access or trunk mode trunk Set trunking mode to TRUNK unconditionallySwitch(config-if-
4、range)#switchport mode % Incomplete command.Switch(config-if-range)#? cdp Global CDP configuration subcommands channel-group Etherchannel/port bundling configuration channel-protocol Select the channel protocol (LACP, PAgP) description Interface specific description duplex Configure duplex operation
5、. exit Exit from interface configuration mode mdix Set Media Dependent Interface with Crossover mls mls interface commands no Negate a command or set its defaults shutdown Shutdown the selected interface spanning-tree Spanning Tree Subsystem speed Configure speed operation. storm-control storm confi
6、guration switchport Set switching mode characteristics tx-ring-limit Configure PA level transmit ring limitSwitch(config-if-range)#switchport ? access Set access mode characteristics of the interface mode Set trunking mode of the interface native Set trunking native characteristics when interface is
7、 in trunking mode nonegotiate Device will not engage in negotiation protocol on this interface port-security Security related command priority Set appliance 802.1p priority trunk Set trunking characteristics of the interface voice Voice appliance attributesSwitch(config-if-range)#switchport mode?mod
8、e Switch(config)#interface f0/5Switch(config-if)#swSwitch(config-if)#switchport modeSwitch(config-if)#switchport mode ?Switch(config-if)#switchport mode trSwitch(config-if)#switchport mode trunk %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/5, changed state to down Line protocol on I
9、nterface FastEthernet0/5, changed state to upSwitch(config-if)#exit项目实施过程及测试结果:1、销售部PC1、人事部PC1、销售部PC3、研发部PC1、研发部PC2、财务部PC等配置相关IP地址及子网掩码等参数截图2、交换机配置信息(show running结果)一楼交换机SW1的配置: SW1SW1#show runSW1#show running-config Building configuration.Current configuration : 1276 bytes!version 12.2no service timestamps log datetime msecno service timestamps debug datetime msecno service password-encryptionhostname SW1interface FastEthernet0/1 switchport access vlan 10interface FastEthernet0/2interface FastEthernet0/3 -More- 二楼交换机SW2的配置SW1三楼交换SW3的配置Building con
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1