根据企业的情况,决定设置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