华为HCIA案例分析(配套答案)_第1页
华为HCIA案例分析(配套答案)_第2页
华为HCIA案例分析(配套答案)_第3页
华为HCIA案例分析(配套答案)_第4页
华为HCIA案例分析(配套答案)_第5页
已阅读5页,还剩48页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

华为HCIA案例分析(配套答案)一、单项选择题(每题2分,共20分)1.在华为HCIA网络配置中,若需要为交换机配置VLAN,以下哪种命令可以正确创建VLAN10并命名为“Sales”?A.Switch>system-viewSwitch#vlan10nameSalesB.Switch>enableSwitch#vlan10SalesC.Switch#vlan10nameSalesSwitch>commitD.Switch>system-viewSwitch#interfaceVlanif10nameSales正确参考答案:A解析:正确创建VLAN需先进入系统视图(system-view),再使用vlan10命令创建VLAN10,最后通过name命令命名。选项A的命令序列完整且符合华为VRP(VRP是华为VRP操作系统的简称)配置规范。选项B缺少进入系统视图步骤;选项C未进入系统视图;选项D错误地将VLAN接口与VLAN命名混淆。2.在配置交换机端口安全时,若要求端口仅允许特定MAC地址(01:23:45:67:89:AB)访问,以下哪项配置是正确的?A.Switch#portsecuritymaximum1Switch#portsecuritymac-address01:23:45:67:89:ABstickyB.Switch#interfaceGigabitEthernet0/0/1Switch#portsecuritymac-address01:23:45:67:89:ABC.Switch#portsecurityviolationrestrictSwitch#portsecuritymac-address01:23:45:67:89:ABD.Switch#portsecuritymac-addresssticky01:23:45:67:89:AB正确参考答案:A解析:端口安全配置需先设置最大MAC地址数(maximum),再通过mac-address命令绑定MAC地址,sticky参数可自动学习并保存MAC地址到端口配置。选项A完整覆盖配置流程。选项B仅配置了接口和MAC地址,缺少最大MAC数设置;选项C错误地将违规处理与MAC地址绑定混用;选项D语法错误。3.在配置路由器静态路由时,若目标网络为192.168.10.0/24,下一跳地址为192.168.1.1,以下命令中正确的是?A.Router#iproute-static192.168.10.0255.255.255.0192.168.1.1B.Router#iproute192.168.10.0/24192.168.1.1C.Router#staticroute192.168.10.0255.255.255.0192.168.1.1D.Router#iproute192.168.10.0/240.0.0.0192.168.1.1正确参考答案:A解析:华为VRP静态路由命令格式为iproute-static<目标网络><子网掩码><下一跳地址>。选项A符合该格式。选项B使用iproute但缺少子网掩码;选项C的staticroute是老旧命令;选项D错误地将默认路由0.0.0.0与静态路由混用。4.在配置OSPF时,若要求某台路由器仅宣告直连接网络并防止路由泄露,以下哪项配置是正确的?A.Router#routerospf1Router#network192.168.1.00.0.0.255area0B.Router#routerospf1Router#network192.168.1.0255.255.255.0area0C.Router#routerospf1Router#passive-interfacedefaultD.Router#routerospf1Router#no-summary正确参考答案:B解析:正确宣告直连接网络需使用子网掩码而非通配符。选项B的255.255.255.0准确匹配直连接网络掩码。选项A使用通配符0.0.0.255会导致路由泄露;选项C的passive-interface仅禁用泛洪,不限制宣告范围;选项D的no-summary禁用汇总,与题目要求无关。5.在配置NAT时,若要求内部网络192.168.1.0/24访问外部网络时使用公网IP203.0.113.1,以下哪项配置是正确的?A.Router#ipnatinsidesourcelist1interfaceGigabitEthernet0/0/1overloadB.Router#ipnatinsidesourcestatic192.168.1.100203.0.113.1C.Router#ipnatoutsideinterfaceGigabitEthernet0/0/1D.Router#ipnatinsideinterfaceGigabitEthernet0/0/1正确参考答案:A解析:动态NAT配置需先定义访问控制列表(access-list)允许内部主机,再用ipnatinsidesourcelist<表号>interface<外网接口>overload实现端口复用。选项A完整配置动态NAT。选项B是静态NAT,仅针对特定主机;选项C仅配置外网接口;选项D仅配置内网接口。6.在配置PPP链路时,若要求使用PAP认证,以下哪项配置是正确的?A.Router#interfaceSerial0/0/1Router#pppauthentication-modepapB.Router#interfaceSerial0/0/1Router#pppauthenticationpapC.Router#interfaceSerial0/0/1Router#authentication-modepapD.Router#interfaceSerial0/0/1Router#papenable正确参考答案:B解析:PPP认证配置需在接口视图下使用pppauthenticationpap命令。选项B符合华为VRP命令格式。选项A命令后缺少空格;选项C语法错误;选项D的papenable是老旧命令。7.在配置交换机STP时,若要求某端口以Alternate角色运行,以下哪项配置是正确的?A.Switch#interfaceGigabitEthernet0/0/1Switch#stpport-typealternateB.Switch#interfaceGigabitEthernet0/0/1Switch#stppriority0C.Switch#interfaceGigabitEthernet0/0/1Switch#stpcost20000D.Switch#interfaceGigabitEthernet0/0/1Switch#stpdisable正确参考答案:A解析:设置端口类型为Alternate需使用port-typealternate命令。选项A正确配置。选项B设置优先级;选项C设置端口成本;选项D禁用STP。8.在配置无线网络时,若要求某SSID使用WPA2-PSK加密,预共享密钥为“Huawei123”,以下哪项配置是正确的?A.Switch#wlan-profilenameSSID1securitywpa2pskHuawei123B.Switch#interfaceWLAN0/0/1Switch#ssidSSID1securitywpa2pskHuawei123C.Switch#wlan-profilenameSSID1Switch#securitywpa2pskHuawei123D.Switch#interfaceWLAN0/0/1Switch#securitywpa2pskHuawei123正确参考答案:A解析:正确配置SSID需先创建无线配置文件(wlan-profile),再设置安全参数。选项A完整配置流程。选项B错误地将SSID配置在接口视图;选项C缺少wlan-profile命令;选项D语法错误。9.在配置链路聚合时,若要求将GigabitEthernet0/0/1和GigabitEthernet0/0/2聚合为Eth-Trunk1,以下哪项配置是正确的?A.Switch#interfaceEth-Trunk1Switch#link-aggregationpvid1B.Switch#interfaceGigabitEthernet0/0/1Switch#link-aggregationtrunkallC.Switch#interfaceEth-Trunk1Switch#portlink-typetrunkD.Switch#interfacelink-aggregation1Switch#memberGigabitEthernet0/0/1toGigabitEthernet0/0/2正确参考答案:D解析:正确配置链路聚合需先创建聚合接口(link-aggregation),再添加成员端口。选项D正确配置。选项A设置PVID;选项B错误地将所有端口加入聚合;选项C设置端口类型为trunk;选项D语法错误。10.在配置QoS时,若要求优先处理语音流量,以下哪项配置是正确的?A.Router#class-maptypeserviceVoIPRouter#matchipdscpefB.Router#policy-maptypeserviceQoSRouter#classVoIPRouter#setdscpefC.Router#interfaceGigabitEthernet0/0/1Router#service-policytypeinputQoSD.Router#class-maptypenetworkVoIPRouter#matchprotocolsip正确参考答案:A解析:正确配置语音流量需先创建服务类型类(class-maptypeservice),再匹配DSCP值。选项A正确配置。选项B错误地使用policy-map;选项C错误地将策略应用于接口;选项D匹配SIP协议而非DSCP。二、填空题(每题2分,共20分)1.在配置交换机端口安全时,若要求端口最大MAC地址数为2,且当第三个设备尝试连接时采取restrict策略,应使用______命令实现。参考答案:portsecurityviolationrestrict解析:端口安全配置中,violation参数控制违规处理方式,restrict会阻止新设备连接并记录日志。完整配置需结合maximum命令。2.在配置OSPF时,若要求某网络不参与区域汇总,应使用______命令。参考答案:no-summary解析:no-summary命令禁止路由器将区域内的路由信息汇总到其他区域,常用于防止路由环路。3.在配置NAT时,若要求将内部网络192.168.1.0/24的所有流量都映射到公网IP203.0.113.1,应使用______命令。参考答案:ipnatinsidesourcelist1interfaceGigabitEthernet0/0/1overload解析:动态NAT配置需先定义访问控制列表(如ipaccess-list1permit192.168.1.00.0.0.255),再用source命令绑定接口和overload实现端口复用。4.在配置PPP链路时,若要求使用MD5认证,以下哪项命令是正确的?参考答案:pppauthentication-modemd5解析:MD5认证比PAP更安全,配置需在接口视图下使用该命令。5.在配置交换机STP时,若要求某端口以Edge端口运行,应使用______命令。参考答案:stpport-typeedge解析:Edge端口可加速收敛,配置需在接口视图下使用该命令。6.在配置无线网络时,若要求某SSID使用WEP加密,密钥为“12345678”,应使用______命令。参考答案:wlan-profilenameSSID1securitywepkey12345678解析:WEP加密需在无线配置文件中指定密钥。7.在配置链路聚合时,若要求将GigabitEthernet0/0/1和GigabitEthernet0/0/2聚合为Eth-Trunk1,应使用______命令。参考答案:interfacelink-aggregation1memberGigabitEthernet0/0/1toGigabitEthernet0/0/2解析:链路聚合配置需先创建聚合接口,再添加成员端口。8.在配置QoS时,若要求为语音流量设置优先级,应使用______类别。参考答案:class-maptypeserviceVoIP解析:语音流量通常匹配DSCPef(ExpeditedForwarding),配置需先创建服务类型类。9.在配置交换机VLAN时,若要求将VLAN10配置为Trunk模式,允许所有VLAN通过,应使用______命令。参考答案:interfaceGigabitEthernet0/0/1Switch#portlink-typetrunkSwitch#porttrunkallow-passvlanall解析:Trunk模式配置需先设置端口类型为trunk,再允许所有VLAN通过。10.在配置交换机端口安全时,若要求端口MAC地址自动学习并保存到配置文件,应使用______参数。参考答案:sticky解析:sticky参数可自动学习MAC地址并保存,防止配置丢失。三、判断题(每题2分,共20分)1.在配置交换机VLAN时,若要求端口同时属于VLAN10和VLAN20,应使用portlink-typetrunk并允许这两个VLAN通过。(√)解析:Trunk端口可传输多个VLAN流量,配置需使用porttrunkallow-passvlan1020。2.在配置OSPF时,若要求某路由器不参与路由计算,应使用passive-interfacedefault命令。(×)解析:正确命令是passive-interfaceinterface-name,default会禁用所有接口的泛洪功能。3.在配置NAT时,若要求将特定内部主机(如192.168.1.100)永久映射到公网IP203.0.113.1,应使用staticroute命令。(×)解析:正确命令是ipnatinsidesourcestatic192.168.1.100203.0.113.1,属于静态NAT。4.在配置PPP链路时,PAP认证比MD5认证更安全。(×)解析:MD5认证使用单向哈希算法,比PAP的明文认证更安全。5.在配置交换机STP时,若要求端口以Portfast角色运行,应使用stpport-typefast-etherchannel命令。(×)解析:正确命令是stpport-typefast,fast-etherchannel是链路聚合术语。6.在配置无线网络时,WPA3加密比WPA2更易受破解。(×)解析:WPA3使用更强的加密算法(如AES-SIV)和认证机制,比WPA2更安全。7.在配置链路聚合时,若要求所有成员端口负载均衡,应使用portlink-typetrunk命令。(×)解析:负载均衡需在成员端口视图下使用portlink-aggregationpvid<值>命令。8.在配置QoS时,若要求丢弃低优先级流量,应使用dropprecedence命令。(×)解析:正确命令是dropprecedence,但华为VRP中常用priority-map实现。9.在配置交换机端口安全时,若端口MAC地址数量超过最大值,默认采取protect策略。(√)解析:端口安全默认违规处理方式为protect,会阻止新设备连接并记录日志。10.在配置交换机VLAN时,若要求VLAN10为默认VLAN,应使用default-vlan10命令。(×)解析:华为VRP中默认VLAN是VLAN1,VLAN10需使用vlan10命令创建。四、简答题(每题2分,共16分)1.请简述交换机STP协议的工作原理及其主要功能。参考答案:STP(SpanningTreeProtocol)通过阻塞冗余路径防止二层网络环路,主要功能包括:(1)生成树算法(如RSTP)选择根桥和根端口;(2)计算最小路径成本确定转发路径;(3)阻塞非根端口形成树状拓扑;主要功能:防止广播风暴、冗余链路故障快速收敛。2.请简述PPP链路的三种认证方式及其特点。参考答案:(1)PAP(PasswordAuthenticationProtocol):明文认证,交互式发送用户名密码;(2)CHAP(ChallengeHandshakeAuthenticationProtocol):密文认证,三次握手验证身份;(3)MD5:更安全的CHAP变种,使用单向哈希算法。3.请简述NAT地址转换的三种类型及其应用场景。参考答案:(1)动态NAT:内部多个主机共享一个公网IP,需访问控制列表;(2)静态NAT:特定内部主机永久映射到公网IP,用于服务器发布;(3)端口复用(overload):动态NAT的扩展,一个公网IP绑定多个内部IP。4.请简述无线网络中WPA2和WPA3加密的主要区别。参考答案:(1)WPA2:使用AES-CCMP(企业版)或TKIP+AES(个人版),个人版存在恢复密钥漏洞;(2)WPA3:引入SIV认证避免恢复密钥问题,支持更安全的加密算法,增强抗暴力破解能力。五、应用题(每题4分,共24分)【案例1】某企业网络拓扑如下:-根路由器:Router1(接口G0/0/0连接ISP,G0/0/1连接Switch1)-Switch1:端口G0/0/1连接Router1,G0/0/2-G0/0/4分别连接各部门(VLAN10-Sales,VLAN20-Engineering)-要求:1)配置Switch1的VLAN10和VLAN20,G0/0/2-G0/0/4端口设置为Access模式;2)配置Router1的静态路由,使Sales部门能访问Engineering部门;3)配置Router1的NAT,将内部网络全部流量映射到公网IP203.0.113.1。请给出完整配置命令。参考答案:Switch1:```Switch#system-viewSwitch#vlan10nameSalesSwitch#vlan20nameEngineeringSwitch#interfaceGigabitEthernet0/0/2Switch#portlink-typeaccessSwitch#portdefaultvlan10Switch#interfaceGigabitEthernet0/0/3Switch#portlink-typeaccessSwitch#portdefaultvlan20Switch#interfaceGigabitEthernet0/0/4Switch#portlink-typeaccessSwitch#portdefaultvlan20```Router1:```Router#system-viewRouter#iproute-static192.168.20.0255.255.255.0192.168.1.2Router#ipaccess-list1permit192.168.1.00.0.0.255Router#ipnatinsidesourcelist1interfaceGigabitEthernet0/0/0overloadRouter#interfaceGigabitEthernet0/0/0Router#ipnatinsideRouter#interfaceGigabitEthernet0/0/1Router#ipnatoutside```【案例2】某企业网络配置如下:-Switch1:端口G0/0/1连接Router1(VLAN10),G0/0/2连接Server(VLAN20);-Router1:接口G0/0/1为动态NAT,公网IP203.0.113.1;-要求:1)配置Switch1的端口安全,G0/0/1允许2个MAC地址,超过则restrict;2)配置Server的静态IP192.168.20.100/24,网关192.168.20.1;3)配置Router1的PPP链路,使用MD5认证,对等体IP192.168.1.1。请给出完整配置命令。参考答案:Switch1:```Switch#system-viewSwitch#interfaceGigabitEthernet0/0/1Switch#portsecuritymaximum2Switch#portsecurityviolationrestrictSwitch#portsecuritymac-address00:1A:2B:3C:4D:5EstickySwitch#portsecuritymac-address00:1A:2B:3C:4D:5Fsticky```Server:```Server#ipaddress192.168.20.100255.255.255.0Server#iproute-static0.0.0.00.0.0.0192.168.20.1```Router1:```Router#system-viewRouter#interfaceSerial0/0/0Router#pppauthentication-modemd5Router#ipaddress192.168.1.2255.255.255.0Router#peeraddress192.168.1.1Router#pppenable```【案例3】某企业网络配置如下:-Switch1:端口G0/0/1连接Router1(VLAN10),G0/0/2-G0/0/3形成Eth-Trunk1;-Router1:接口G0/0/1为动态NAT,公网IP203.0.113.1;-要求:1)配置Switch1的Eth-Trunk1,允许所有VLAN通过;2)配置Router1的QoS,语音流量(DSCPef)优先转发;3)配置Router1的OSPF,区域0包含VLAN10和直连接口G0/0/1。请给出完整配置命令。参考答案:Switch1:```Switch#system-viewSwitch#interfaceEth-Trunk1Switch#portlink-typetrunkSwitch#porttrunkallow-passvlanall```Router1:```Router#system-viewRouter#class-maptypeserviceVoIPRouter#matchdscpefRouter#policy-maptypeserviceQoSRouter#classVoIPRouter#priority1Router#interfaceGigabitEthernet0/0/1Router#service-policytypeinputQoSRouter#routerospf1Router#area0.0.0.0Router#network192.168.10.00.0.0.255Router#network192.168.1.00.0.0.255area0.0.0.0```【案例4】某企业网络配置如下:-Switch1:端口G0/0/1连接Router1(VLAN10),G0/0/2连接无线AP;-Router1:接口G0/0/1为动态NAT,公网IP203.0.113.1;-要求:1)配置Switch1的无线网络,SSID为“CorpNet”,使用WPA2-PSK加密,密钥为“Huawei123”;2)配置Switch1的STP,禁用G0/0/1的STP功能;3)配置Router1的NAT,将内部网络全部流量映射到公网IP203.0.113.1。请给出完整配置命令。参考答案:Switch1:```Switch#system-viewSwitch#wlan-profilenameCorpNetSwitch#securitywpa2pskHuawei123Switch#interfaceWLAN0/0/1Switch#ssidCorpNetSwitch#stpdisable```Router1:```Router#system-viewRouter#ipaccess-list1permit192.168.1.00.0.0.255Router#ipnatinsidesourcelist1interfaceGigabitEthernet0/0/0overloadRouter#interfaceGigabitEthernet0/0/0Router#ipnatinsideRouter#interfaceGigabitEthernet0/0/1Router#ipnatoutside```【案例5】某企业网络配置如下:-Switch1:端口G0/0/1连接Router1(VLAN10),G0/0/2-G0/0/3形成Eth-Trunk1;-Router1:接口G0/0/1为动态NAT,公网IP203.0.113.1;-要求:1)配置Switch1的Eth-Trunk1,允许VLAN10和VLAN20通过;2)配置Router1的QoS,语音流量(DSCPef)优先转发;3)配置Router1的OSPF,区域0包含VLAN10和直连接口G0/0/1。请给出完整配置命令。参考答案:Switch1:```Switch#system-viewSwitch#interfaceEth-Trunk1Switch#portlink-typetrunkSwitch#porttrunkallow-passvlan1020```Router1:```Router#system-viewRouter#class-maptypeserviceVoIPRouter#matchdscpefRouter#policy-maptypeserviceQoSRouter#classVoIPRouter#priority1Router#interfaceGigabitEthernet0/0/1Router#service-policytypeinputQoSRouter#routerospf1Router#area0.0.0.0Router#network192.168.10.00.0.0.255Router#network192.168.1.00.0.0.255area0.0.0.0```【案例6】某企业网络配置如下:-Switch1:端口G0/0/1连接Router1(VLAN10),G0/0/2连接Server(VLAN20);-Router1:接口G0/0/1为动态NAT,公网IP203.0.113.1;-要求:1)配置Switch1的端口安全,G0/0/1允许2个MAC地址,超过则restrict;2)配置Server的静态IP192.168.20.100/24,网关192.168.20.1;3)配置Router1的PPP链路,使用MD5认证,对等体IP192.168.1.1。请给出完整配置命令。参考答案:Switch1:```Switch#system-viewSwitch#interfaceGigabitEthernet0/0/1Switch#portsecuritymaximum2Switch#portsecurityviolationrestrictSwitch#portsecuritymac-address00:1A:2B:3C:4D:5EstickySwitch#portsecuritymac-address00:1A:2B:3C:4D:5Fsticky```Server:```Server#ipaddress192.168.20.100255.255.255.0Server#iproute-static0.0.0.00.0.0.0192.168.20.1```Router1:```Router#system-viewRouter#interfaceSerial0/0/0Router#pppauthentication-modemd5Router#ipaddress192.168.1.2255.255.255.0Router#peeraddress192.168.1.1Router#pppenable```【案例7】某企业网络配置如下:-Switch1:端口G0/0/1连接Router1(VLAN10),G0/0/2-G0/0/3形成Eth-Trunk1;-Router1:接口G0/0/1为动态NAT,公网IP203.0.113.1;-要求:1)配置Switch1的Eth-Trunk1,允许所有VLAN通过;2)配置Router1的QoS,语音流量(DSCPef)优先转发;3)配置Router1的OSPF,区域0包含VLAN10和直连接口G0/0/1。请给出完整配置命令。参考答案:Switch1:```Switch#system-viewSwitch#interfaceEth-Trunk1Switch#portlink-typetrunkSwitch#porttrunkallow-passvlanall```Router1:```Router#system-viewRouter#class-maptypeserviceVoIPRouter#matchdscpefRouter#policy-maptypeserviceQoSRouter#classVoIPRouter#priority1Router#interfaceGigabitEthernet0/0/1Router#service-policytypeinputQoSRouter#routerospf1Router#area0.0.0.0Router#network192.168.10.00.0.0.255Router#network192.168.1.00.0.0.255area0.0.0.0```【案例8】某企业网络配置如下:-Switch1:端口G0/0/1连接Router1(VLAN10),G0/0/2连接Server(VLAN20);-Router1:接口G0/0/1为动态NAT,公网IP203.0.113.1;-要求:1)配置Switch1的端口安全,G0/0/1允许2个MAC地址,超过则restrict;2)配置Server的静态IP192.168.20.100/24,网关192.168.20.1;3)配置Router1的PPP链路,使用MD5认证,对等体IP192.168.1.1。请给出完整配置命令。参考答案:Switch1:```Switch#system-viewSwitch#interfaceGigabitEthernet0/0/1Switch#portsecuritymaximum2Switch#portsecurityviolationrestrictSwitch#portsecuritymac-address00:1A:2B:3C:4D:5EstickySwitch#portsecuritymac-address00:1A:2B:3C:4D:5Fsticky```Server:```Server#ipaddress192.168.20.100255.255.255.0Server#iproute-static0.0.0.00.0.0.0192.168.20.1```Router1:```Router#system-viewRouter#interfaceSerial0/0/0Router#pppauthentication-modemd5Router#ipaddress192.168.1.2255.255.255.0Router#peeraddress192.168.1.1Router#pppenable```【案例9】某企业网络配置如下:-Switch1:端口G0/0/1连接Router1(VLAN10),G0/0/2-G0/0/3形成Eth-Trunk1;-Router1:接口G0/0/1为动态NAT,公网IP203.0.113.1;-要求:1)配置Switch1的Eth-Trunk1,允许VLAN10和VLAN20通过;2)配置Router1的QoS,语音流量(DSCPef)优先转发;3)配置Router1的OSPF,区域0包含VLAN10和直连接口G0/0/1。请给出完整配置命令。参考答案:Switch1:```Switch#system-viewSwitch#interfaceEth-Trunk1Switch#portlink-typetrunkSwitch#porttrunkallow-passvlan1020```Router1:```Router#system-viewRouter#class-maptypeserviceVoIPRouter#matchdscpefRouter#policy-maptypeserviceQoSRouter#classVoIPRouter#priority1Router#interfaceGigabitEthernet0/0/1Router#service-policytypeinputQoSRouter#routerospf1Router#area0.0.0.0Router#network192.168.10.00.0.0.255Router#network192.168.1.00.0.0.255area0.0.0.0```【案例10】某企业网络配置如下:-Switch1:端口G0/0/1连接Router1(VLAN10),G0/0/2连接Server(VLAN20);-Router1:接口G0/0/1为动态NAT,公网IP203.0.113.1;-要求:1)配置Switch1的端口安全,G0/0/1允许2个MAC地址,超过则restrict;2)配置Server的静态IP192.168.20.100/24,网关192.168.20.1;3)配置Router1的PPP链路,使用MD5认证,对等体IP192.168.1.1。请给出完整配置命令。参考答案:Switch1:```Switch#system-viewSwitch#interfaceGigabitEthernet0/0/1Switch#portsecuritymaximum2Switch#portsecurityviolationrestrictSwitch#portsecuritymac-address00:1A:2B:3C:4D:5EstickySwitch#portsecuritymac-address00:1A:2B:3C:4D:5Fsticky```Server:```Server#ipaddress192.168.20.100255.255.255.0Server#iproute-static0.0.0.00.0.0.0192.168.20.1```Router1:```Router#system-viewRouter#interfaceSerial0/0/0Router#pppauthentication-modemd5Router#ipaddress192.168.1.2255.255.255.0Router#peeraddress192.168.1.1Router#pppenable```【案例11】某企业网络配置如下:-Switch1:端口G0/0/1连接Router1(VLAN10),G0/0/2-G0/0/3形成Eth-Trunk1;-Router1:接口G0/0/1为动态NAT,公网IP203.0.113.1;-要求:1)配置Switch1的Eth-Trunk1,允许所有VLAN通过;2)配置Router1的QoS,语音流量(DSCPef)优先转发;3)配置Router1的OSPF,区域0包含VLAN10和直连接口G0/0/1。请给出完整配置命令。参考答案:Switch1:```Switch#system-viewSwitch#interfaceEth-Trunk1Switch#portlink-typetrunkSwitch#porttrunkallow-passvlanall```Router1:```Router#system-viewRouter#class-maptypeserviceVoIPRouter#matchdscpefRouter#policy-maptypeserviceQoSRouter#classVoIPRouter#priority1Router#interfaceGigabitEthernet0/0/1Router#service-policytypeinputQoSRouter#routerospf1Router#area0.0.0.0Router#network192.168.10.00.0.0.255Router#network192.168.1.00.0.0.255area0.0.0.0```【案例12】某企业网络配置如下:-Switch1:端口G0/0/1连接Router1(VLAN10),G0/0/2连接Server(VLAN20);-Router1:接口G0/0/1为动态NAT,公网IP203.0.113.1;-要求:1)配置Switch1的端口安全,G0/0/1允许2个MAC地址,超过则restrict;2)配置Server的静态IP192.168.20.100/24,网关192.168.20.1;3)配置Router1的PPP链路,使用MD5认证,对等体IP192.168.1.1。请给出完整配置命令。参考答案:Switch1:```Switch#system-viewSwitch#interfaceGigabitEthernet0/0/1Switch#portsecuritymaximum2Switch#portsecurityviolationrestrictSwitch#portsecuritymac-address00:1A:2B:3C:4D:5EstickySwitch#portsecuritymac-address00:1A:2B:3C:4D:5Fsticky```Server:```Server#ipaddress192.168.20.100255.255.255.0Server#iproute-static0.0.0.00.0.0.0192.168.20.1```Router1:```Router#system-viewRouter#interfaceSerial0/0/0Router#pppauthentication-modemd5Router#ipaddress192.168.1.2255.255.255.0Router#peeraddress192.168.1.1Router#pppenable```【案例13】某企业网络配置如下:-Switch1:端口G0/0/1连接Router1(VLAN10),G0/0/2-G0/0/3形成Eth-Trunk1;-Router1:接口G0/0/1为动态NAT,公网IP203.0113.1;-要求:1)配置Switch1的Eth-Trunk1,允许VLAN10和VLAN20通过;2)配置Router1的QoS,语音流量(DSCPef)优先转发;3)配置Router1的OSPF,区域0包含VLAN10和直连接口G0/0/1。请给出完整配置命令。参考答案:Switch1:```Switch#system-viewSwitch#interfaceEth-Trunk1Switch#portlink-typetrunkSwitch#porttrunkallow-passvlan1020```Router1:```Router#system-viewRouter#class-maptypeserviceVoIPRouter#matchdscpefRouter#policy-maptypeserviceQoSRouter#classVoIPRouter#priority1Router#interfaceGigabitEthernet0/0/1Router#service-policytypeinputQoSRouter#routerospf1Router#area0.0.0.0Router#network192.168.10.00.0.0.255Router#network192.168.1.00.0.0.255area0.0.0.0```【案例14】某企业网络配置如下:-Switch1:端口G0/0/1连接Router1(VLAN10),G0/0/2连接Server(VLAN20);-Router1:接口G0/0/1为动态NAT,公网IP203.0.113.1;-要求:1)配置Switch1的端口安全,G0/0/1允许2个MAC地址,超过则restrict;2)配置Server的静态IP192.168.20.100/24,网关192.168.20.1;3)配置Router1的PPP链路,使用MD5认证,对等体IP192.168.1.1。请给出完整配置命令。参考答案:Switch1:```Switch#system-viewSwitch#interfaceGigabitEthernet0/0/1Switch#portsecuritymaximum2Switch#portsecurityviolationrestrictSwitch#portsecuritymac-address00:1A:2B:3C:4D:5EstickySwitch#portsecuritymac-address00:1A:2B:3C:4D:5Fsticky```Server:```Server#ipaddress192.168.20.100255.255.255.0Server#iproute-static0.0.0.00.0.0.0192.168.20.1```Router1:```Router#system-viewRouter#interfaceSerial0/0/0Router#pppauthentication-modemd5Router#ipaddress192.168.1.2255.255.255.0Router#peeraddress192.168.1.1Router#pppenable```【案例15】某企业网络配置如下:-Switch1:端口G0/0/1连接Router1(VLAN10),G0/0/2-G0/0/3形成Eth-Trunk1;-Router1:接口G0/0/1为动态NAT,公网IP203.0.113.1;-要求:1)配置Switch1的Eth-Trunk1,允许所有VLAN通过;2)配置Router1的QoS,语音流量(DSCPef)优先转发;3)配置Router1的OSPF,区域0包含VLAN10和直连接口G0/0/1。请给出完整配置命令。参考答案:Switch1:```Switch#system-viewSwitch#interfaceEth-Trunk1Switch#portlink-typetrunkSwitch#porttrunkallow-passvlanall```Router1:```Router#system-viewRouter#class-maptypeserviceVoIPRouter#matchdscpefRouter#policy-maptypeserviceQoSRouter#classVoIPRouter#priority1Router#interfaceGigabitEthernet0/0/1Router#service-policytypeinputQoSRouter#routerospf1Router#area0.0.0.0Router#network192.168.10.00.0.0.255Router#network192.168.1.00.0.0.255area0.0.0.0```【案例16】某企业网络配置如下:-Switch1:端口G0/0/1连接Router1(VLAN10),G0/0/2连接Server(VLAN20);-Router1:接口G0/0/1为动态NAT,公网IP203.0.113.1;-要求:1)配置Switch1的端口安全,G0/0/1允许2个MAC地址,超过则restrict;2)配置Server的静态IP192.168.20.100/24,网关192.168.20.1;3)配置Router1的PPP链路,使用MD5认证,对等体IP192.168.1.1。请给出完整配置命令。参考答案:Switch1:```Switch#system-viewSwitch#interfaceGigabitEthernet0/0/1Switch#portsecuritymaximum2Switch#portsecurityviolationrestrictSwitch#portsecuritymac-address00:1A:2B:3C:4D:5EstickySwitch#portsecuritymac-address00:1A:2B:3C:4D:5Fsticky```Server:```Server#ipaddress192.168.20.100255.255.255.0Server#iproute-static0.0.0.00.0.0.0192.168.20.1```Router1:```Router#syste

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论