根据企业的情况,决定设置DHCP解决IP地址分配的问题,管理员小张通过在网关设备Switch上配置DHCP服务器,实现为企业两个网段内的终端动态分配IP地址。其中,网段10.1.1.0/24内的PC为员工固定办公终端,IP地址租期配置为30天;网段10.1.2.0/24供企业出差人员临时接入网络,IP地址租期配置为1天。
以下是小张进行的相关配置:
(1)在交换机上开启DHCP服务
<HUAWEI>system-view
[HUAWEI]sysnameSwitch
[Switch](1)//使能dhcp
//配置交换机上端口Vlan
[Switch]vlanbatch10to11
[Switch](2)
[Switch-GigabitEthernet0/0/1]portlink-typeaccess
[Switch-GigabitEthernet0/0/1](3)
[Switch-GigabitEthernet0/0/1]quit
//配置Vlan虚接口的IP地址信息
[Switch](4)
[Switch-Vlanif10](5)//企业为固定办公终端的网段
[Switch-Vlanif10]quit
//设置接口获取DHCP分配地址信息
[Switch]interfacevlanif10
[Switch-Vlanif10](6)//使能接口采用接口地址池的DHCP服务器功能
[Switch-Vlanif10]dhcpserverlease(7)//租期的缺省值为1天,修改租期为30天
[Switch-Vlanif10]dhcpserverstatic-bindip-address10.1.1.100mac-address286e-d488-b684//为
Client_1分配固定的IP地址
问答题
[问题1](3分):在总部与分公司之间相连的VPN方式是(1),在IPsec工作模式中有传输模式和隧道模式,其中将源IP数据包整体封装后再进行传输的模式是(2).1备选答案:A.站点到站点B.端到端C.端到站点[问题2](13分):请将相关配置补充完整。总部防火墙firewall1的部分配置如下。<FIREWALL1>(3)[FIREWALL1]interface(4)[FIREWALL1-GigabitEthernet1/0/2]ipaddress(5)[FIREWALL1-GigabitEthernet1/0/2]quit[FIREWALL1]interfaceGigabitEthernet1/0/1[FIREWALL1-GigabitEthernet1/0/1]ipaddress202.1.3.124[FIREWALL1-GigabitEthernet1/0/1]quit#配置接口加入相应的安全区域。[FIREWALL1]firewallzonetrust[FIREWALL1-zone-trust]addinterface(6)[FIREWALL1-zone-trust]quit[FIREWALL1](7)[FIREWALL1-zone-untrust]addinterfaceGigabitEthernet1/0/1[FIREWALL1-zone-untrust]quit2.配置安全策略,允许私网指定网段进行报文交互。#配置Trust域与Untrust域的安全策略,允许封装前和解封后的报文能通过[FIREWALL1](8)[FIREWALL1-policy-security]rulename1[FIREWALL1-policy-security-rule-1]source-zone(9)[FIREWALL1-policy-security-rule-1]destination-zoneuntrust[FIREWALL1-policy-security-rule-1]source-address(10)[FIREWALL1-policy-security-rule-1]destination-address192.168.200.024[FIREWALL1-policy-security-rule-1]action(11)[FIREWALL1-policy-security-rule-1]quit…..#配置Local域与Untrust域的安全策略,允许IKE协商报文能正常通过FIREWALL1。[FIREWALL1-policy-security]rulename3[FIREWALL1-policy-security-rule-3]source-zonelocal[FIREWALL1-policy-security-rule-3]destination-zoneuntrust[FIREWALL1-policy-security-rule-3]source-address202.1.3.132[FIREWALL1-policy-security-rule-3]destination-address202.1.5.132[FIREWALL1-policy-security-rule-3]actionpermit[FIREWALL1-policy-security-rule-3]quit…3.配置IPSec隧道。#配置访问控制列表,定义需要保护的数据流。[FIREWALL1](12)[FIREWALL1-acl-adv-3000]rulepermit(13)[FIREWALL1-acl-adv-3000]quit#配置名称为tran1的IPSec安全提议。[FIREWALL1]ipsecproposaltran1[FIREWALL1-ipsec-proposal-tran1]encapsulation-mode(14)[FIREWALL1-ipsec-proposal-tran1]transformesp[FIREWALL1-ipsec-proposal-tran1]espauthentication-algorithmsha2-256[FIREWALL1-ipsec-proposal-tran1]espencryption-algorithmaes[FIREWALL1-ipsec-proposal-tran1]quit#配置序号为10的IKE安全提议。[FIREWALL1](15)[FIREWALL1-ike-proposal-10]authentication-methodpre-share[FIREWALL1-ike-proposal-10]authentication-algorithmsha2-256[FIREWALL1-ike-proposal-10]quit#配置IKE用户信息表。[FIREWALL1]ikeuser-table1[FIREWALL1-ike-user-table-1]userid-typeip202.1.5.1pre-shared-keyAdmin@gkys[FIREWALL1-ike-user-table-1]quit#配置IKEPeer。[FIREWALL1]ikepeerb[FIREWALL1-ike-peer-b]ike-proposal10[FIREWALL1-ike-peer-b]user-table1[FIREWALL1-ike-peer-b]quit#配置名称为map_temp序号为1的IPSec安全策略模板。[FIREWALL1]ipsecpolicy-templatemap_temp1[FIREWALL1-ipsec-policy-template-map_temp-1]securityacl3000[FIREWALL1-ipsec-policy-template-map_temp-1]proposaltran1[FIREWALL1-ipsec-policy-template-map_temp-1]ike-peerb[FIREWALL1-ipsec-policy-template-map_temp-1]reverse-routeenable[FIREWALL1-ipsec-policy-template-map_temp-1]quit#在IPSec安全策略map1中引用安全策略模板map_temp。[FIREWALL1]ipsecpolicymap110isakmptemplatemap_temp#在接口GigabitEthernet1/0/1上应用安全策略map1。[FIREWALL1]interfaceGigabitEthernet1/0/1[FIREWALL1-GigabitEthernet1/0/1]ipsecpolicymap1[FIREWALL1-GigabitEthernet1/0/1]quit[问题3]IPsec中,通过一些协议的处理,可以有效的保护分组安全传输。其中能够确保数据完整性,但是不能确保数据机密性的是(17),而技能报数数据传输的机密性又能保证数据完整性的是(18)">
某全国连锁企业的总部和分布在全国各地的30家分公司之间经常需要传输各种内部数据,因此公司决定在总部和各分公司之间建立VPN技术。具体拓扑如下:配置部分只显示了与总部与分公司1的配置。根据拓扑完成问题1-问题3。
[问题1](3分):在总部与分公司之间相连的VPN方式是(1),在IPsec工作模式中有传输模式和隧道模式,其中将源IP数据包整体封装后再进行传输的模式是(2).1备选答案:A.站点到站点B.端到端C.端到站点[问题2](13分):请将相关配置补充完整。总部防火墙firewall1的部分配置如下。<FIREWALL1>(3)[FIREWALL1]interface(4)[FIREWALL1-GigabitEthernet1/0/2]ipaddress(5)[FIREWALL1-GigabitEthernet1/0/2]quit[FIREWALL1]interfaceGigabitEthernet1/0/1[FIREWALL1-GigabitEthernet1/0/1]ipaddress202.1.3.124[FIREWALL1-GigabitEthernet1/0/1]quit#配置接口加入相应的安全区域。[FIREWALL1]firewallzonetrust[FIREWALL1-zone-trust]addinterface(6)[FIREWALL1-zone-trust]quit[FIREWALL1](7)[FIREWALL1-zone-untrust]addinterfaceGigabitEthernet1/0/1[FIREWALL1-zone-untrust]quit2.配置安全策略,允许私网指定网段进行报文交互。#配置Trust域与Untrust域的安全策略,允许封装前和解封后的报文能通过[FIREWALL1](8)[FIREWALL1-policy-security]rulename1[FIREWALL1-policy-security-rule-1]source-zone(9)[FIREWALL1-policy-security-rule-1]destination-zoneuntrust[FIREWALL1-policy-security-rule-1]source-address(10)[FIREWALL1-policy-security-rule-1]destination-address192.168.200.024[FIREWALL1-policy-security-rule-1]action(11)[FIREWALL1-policy-security-rule-1]quit…..#配置Local域与Untrust域的安全策略,允许IKE协商报文能正常通过FIREWALL1。[FIREWALL1-policy-security]rulename3[FIREWALL1-policy-security-rule-3]source-zonelocal[FIREWALL1-policy-security-rule-3]destination-zoneuntrust[FIREWALL1-policy-security-rule-3]source-address202.1.3.132[FIREWALL1-policy-security-rule-3]destination-address202.1.5.132[FIREWALL1-policy-security-rule-3]actionpermit[FIREWALL1-policy-security-rule-3]quit…3.配置IPSec隧道。#配置访问控制列表,定义需要保护的数据流。[FIREWALL1](12)[FIREWALL1-acl-adv-3000]rulepermit(13)[FIREWALL1-acl-adv-3000]quit#配置名称为tran1的IPSec安全提议。[FIREWALL1]ipsecproposaltran1[FIREWALL1-ipsec-proposal-tran1]encapsulation-mode(14)[FIREWALL1-ipsec-proposal-tran1]transformesp[FIREWALL1-ipsec-proposal-tran1]espauthentication-algorithmsha2-256[FIREWALL1-ipsec-proposal-tran1]espencryption-algorithmaes[FIREWALL1-ipsec-proposal-tran1]quit#配置序号为10的IKE安全提议。[FIREWALL1](15)[FIREWALL1-ike-proposal-10]authentication-methodpre-share[FIREWALL1-ike-proposal-10]authentication-algorithmsha2-256[FIREWALL1-ike-proposal-10]quit#配置IKE用户信息表。[FIREWALL1]ikeuser-table1[FIREWALL1-ike-user-table-1]userid-typeip202.1.5.1pre-shared-keyAdmin@gkys[FIREWALL1-ike-user-table-1]quit#配置IKEPeer。[FIREWALL1]ikepeerb[FIREWALL1-ike-peer-b]ike-proposal10[FIREWALL1-ike-peer-b]user-table1[FIREWALL1-ike-peer-b]quit#配置名称为map_temp序号为1的IPSec安全策略模板。[FIREWALL1]ipsecpolicy-templatemap_temp1[FIREWALL1-ipsec-policy-template-map_temp-1]securityacl3000[FIREWALL1-ipsec-policy-template-map_temp-1]proposaltran1[FIREWALL1-ipsec-policy-template-map_temp-1]ike-peerb[FIREWALL1-ipsec-policy-template-map_temp-1]reverse-routeenable[FIREWALL1-ipsec-policy-template-map_temp-1]quit#在IPSec安全策略map1中引用安全策略模板map_temp。[FIREWALL1]ipsecpolicymap110isakmptemplatemap_temp#在接口GigabitEthernet1/0/1上应用安全策略map1。[FIREWALL1]interfaceGigabitEthernet1/0/1[FIREWALL1-GigabitEthernet1/0/1]ipsecpolicymap1[FIREWALL1-GigabitEthernet1/0/1]quit[问题3]IPsec中,通过一些协议的处理,可以有效的保护分组安全传输。其中能够确保数据完整性,但是不能确保数据机密性的是(17),而技能报数数据传输的机密性又能保证数据完整性的是(18)
在下图所示的网络中
需要实现接入交换机作为PC的网关,实现不同网段用户间通信。根据以下SW2的配置进行命令填空或者解释,将(1)-(5)写在对应的答题纸上:
<HUAWEI>system-view[HUAWEI]sysnameSW2//修改设备的名称为SW2,便于识别[SW2](1)//批量创建VLAN2和VLAN3[SW2]interfacegigabitethernet1/0/23[SW2-GigabitEthernet1/0/23](2)//将与PC相连接口的接口类型设置为access[SW2-GigabitEthernet1/0/23]portdefaultvlan2//将PC1划分到VLAN2[SW2-GigabitEthernet1/0/23]quit[SW2]interfacegigabitethernet1/0/24[SW2-GigabitEthernet1/0/24]portlink-typeaccess[SW2-GigabitEthernet1/0/24]portdefaultvlan3//将PC2划分到VLAN3[SW2-GigabitEthernet1/0/24]quit[SW2](3)//创建VLANIF2接口[SW2-Vlanif2](4)//配置IP地址,此IP地址是PC1的网关地址[SW2-Vlanif2]quit[SW2]interfacevlanif3//创建VLANIF3接口[SW2-Vlanif3]ipaddress192.168.3.124//配置IP地址,此IP地址是PC2的网关地址[SW2-Vlanif3]quit[SW2]vlanbatch5//创建VLAN5[SW2]interfacegigabitethernet1/0/1[SW2-GigabitEthernet1/0/1]portlink-typeaccess[SW2-GigabitEthernet1/0/1]portdefaultvlan5//SW2和SW1以Untagged方式通信[SW2-GigabitEthernet1/0/1]quit[SW2]interfacevlanif5//(5)[SW2-Vlanif5]ipaddress192.168.5.224//配置IP地址,此IP地址是SW2与SW1互连接口的IP地址[SW2-Vlanif5]quit[SW2](6)//配置缺省路由,为PC用户找到访问路由器的出口。缺省路由的下一跳是SW1相连接口的IP
某公司内部网络如图所示。公司要求在上班时间(8:00至17:30)才能允许vlan10访问公司内部服务器(IP地址为192.168.100.100/24),vlan20禁止访问内部服务器,但是可以可以随时访问Internet。Vlan30不作限制。Vlan100作为服务器使用的vlan,vlan200用作连接防火墙的子网。为了提高网络的可靠性,设计了双核心和双防火墙,出口链路分别连接不同的运营商。
问题1(14分)将设备配置补充完整交换机配置如下:<HUAWEI>system-view[HUAWEI]sysnameSwitch1[Switch1]vlanbatch102030100200[Switch1]interfacegigabitethernet0/0/3[Switch1-GigabitEthernet0/0/3]portlink-type(1)[Switch1-GigabitEthernet0/0/3]porttrunkallow-passvlan(2)[Switch1-GigabitEthernet0/0/3]quit[Switch1]interfacevlanif20[Switch1-Vlanif20]ipaddress192.168.20.1(3)[Switch1-Vlanif20]quit[Switch1]interfaceEth-Trunk1[Switch1-Eth-Trunk1]portlink-type(4)[Switch1-Eth-Trunk1]porttrunkallow-pass(5)[Switch1-Eth-Trunk1]quit[Switch1]interfaceGigabitEthernet0/0/10[Switch1-GigabitEthernet0/0/10](6)[Switch1]interfaceGigabitEthernet0/0/11[Switch1-GigabitEthernet0/0/11]eth-trunk1…#配置8:00至17:30的周期时间段。[Switch1]time-range(7)8:00to17:30working-day//配置ACL生效时间段[Switch1]acl2002[Switch1-acl-adv-2002]rule(8)ipsource192.168.10.00.0.0.255timerangewk1[Switch1-acl-adv-2002]quit[Switch1]acl3003[Switch1-acl-adv-3003]rule(9)ipsource192.168.20.00.0.0.255destination192.168.100.1000.0.0.0[Switch1-acl-adv-3003]quit…#生成树配置…[Switch1]stpregion-configuration[Switch1-mst-region](10)gkys.com//创建域名为gkys.com[Switch1-mst-region](11)1vlan30//创建实例与VLAN的对应关系[Switch1-mst-region]instance2vlan10to20//创建实例与VLAN的对应关系[Switch1-mst-region]activeregion-configuration[Switch1-mst-region]quit[Switch1]stpinstance1(12)//配置Switch1为MSTI1的根桥….#VRRP配置<NGFW0>system-view[NGFW0]interfaceEthernet1/0/0[NGFW0-Ethernet1/0/0]ipaddress202.112.1.1255.255.255.0[NGFW0-Ethernet1/0/0]quit[NGFW0]interfaceEthernet2/0/0[NGFW0-Ethernet2/0/0]ipaddress192.168.200.1255.255.255.0[NGFW0-Ethernet2/0/0]vrrp(13)192.168.200.100//配置备份组1的虚拟网关地址[NGFW0-Ethernet2/0/0]vrrpvrid1(14)120//配置NGFW0在备份组1中的优先级为120[NGFW0-Ethernet2/0/0]vrrpvrid2virtual-ip192.168.200.200//配置备份组2的虚拟网关地址[NGFW0-Ethernet2/0/0]quit…..问题2(2分)关于ACL匹配规则的说法正确的是(15)A.系统通常从ACL中编号最小的规则开始查找B.如果匹配上了permit规则,则继续查找规则,直到返回ACL匹配结果为:匹配(允许)。C.如果匹配上了deny规则,则继续查找规则,直到返回ACL匹配结果为:匹配(拒绝)。D.如当前规则未匹配上,则停止查找返回ACL匹配结果为:不匹配。
问题3(2分):下面是交换机上运行STP的端口的Display信息显示,请根据这些配置信息,判断该端口的角色为(16)[Switch1]displaystpinterfaceg0/0/3Port0/0/3(GigabitEthernet0/0/3)ofbridgeisForwardingPortspanningtreeprotocol:enabledPortrole:DesignatedPortPortpathcost:200Portpriority:128DesignatedbridgeID(Pri.MAC):4096.00e0-fc41-4259ThePortisanon-edgedportConnectedtoapoint-to-pointLANsegmentMaximumtransmissionlimitis3Packets/hellotimeTimes:HelloTime2sec,MaxAge20secForwardDelay15sec,MessageAge0BPDUsent:4TCN:2,RST:2,ConfigBPDU:0BPDUreceived:806TCN:0,RST:11,ConfigBPDU:795A.该端口为根端口B.该端口为指定端口C.该端口为预备端口D.以上说法都不正确
问题4(2分)如果在网络配置dhcP的相关配置如下:[Switch1]dhcpenable[Switch1]interfacevlanIf100[Switch1-VLANif100]dhcpselectrelay[Switch1-VLANif100]dhcpRelayserver-selectdhcpgroup1对于此台交换机上的配置描述不正确的是(17)A.默认情况下配置DHCP服务器和DHCPdelay都必须开启DHCP服务。B.VLANIF100接口对接收到的DHCP报文通过中继发送到外部DHCPServer。C.为VLANIF100接口指定DHCP服务器组为dhcpgroup1。D.默认dhcpgroup1会自动添加网络中的DHCP服务器。