题目详情

在下图所示的网络中

中级网络工程师,真题专项训练,综合练习

需要实现接入交换机作为PC的网关,实现不同网段用户间通信。根据以下SW2的配置进行命令填空或者解释,将 (1)-(5)写在对应的答题纸上:

<HUAWEI> system-view[HUAWEI] sysname SW2 //修改设备的名称为SW2,便于识别[SW2] (1) //批量创建VLAN 2和VLAN 3[SW2] interface gigabitethernet 1/0/23[SW2-GigabitEthernet1/0/23] (2) //将与PC相连接口的接口类型设置为access[SW2-GigabitEthernet1/0/23] port default vlan 2 //将PC1划分到VLAN 2[SW2-GigabitEthernet1/0/23] quit[SW2] interface gigabitethernet 1/0/24[SW2-GigabitEthernet1/0/24] port link-type access[SW2-GigabitEthernet1/0/24] port default vlan 3 //将PC2划分到VLAN 3[SW2-GigabitEthernet1/0/24] quit[SW2] (3) //创建VLANIF2接口[SW2-Vlanif2] (4) //配置IP地址,此IP地址是PC1的网关地址[SW2-Vlanif2] quit[SW2] interface vlanif 3 //创建VLANIF3接口[SW2-Vlanif3] ip address 192.168.3.1 24 //配置IP地址,此IP地址是PC2的网关地址[SW2-Vlanif3] quit[SW2] vlan batch 5 //创建VLAN 5[SW2] interface gigabitethernet 1/0/1[SW2-GigabitEthernet1/0/1] port link-type access[SW2-GigabitEthernet1/0/1] port default vlan 5 //SW2和SW1以Untagged方式通信[SW2-GigabitEthernet1/0/1] quit[SW2] interface vlanif 5 //(5)[SW2-Vlanif5] ip address 192.168.5.2 24 //配置IP地址,此IP地址是SW2与SW1互连接口的IP地址[SW2-Vlanif5] quit[SW2] (6) //配置缺省路由,为PC用户找到访问路由器的出口。缺省路由的下一跳是SW1相连接口的IP

正确答案及解析

正确答案
解析

(1)vlan batch 2 to 3 (2)port link-type access (3) interface vlanif 2 (4)ip address 192.168.2.1 24(5) 创建vlanif5接口 (6)ip route-static 0.0.0.0 0.0.0.0 192.168.5.1

【解析】

试题分析:要实现利用接入交换机作为PC的网关,实现不同网段用户间通信,只要配置好接入交换机的Vlanif接口和对应的IP地址即可。完整的命令配置和解释如下:

<HUAWEI> system-view[HUAWEI] sysname SW2 //修改设备的名称为SW2,便于识别[SW2] vlan batch 2 to 3 //批量创建VLAN 2和VLAN 3# 将接口加入相应VLAN。[SW2] interface gigabitethernet 1/0/23[SW2-GigabitEthernet1/0/23] port link-type access //将与PC相连接口的接口类型设置为access[SW2-GigabitEthernet1/0/23] port default vlan 2 //将PC1划分到VLAN 2[SW2-GigabitEthernet1/0/23] quit[SW2] interface gigabitethernet 1/0/24[SW2-GigabitEthernet1/0/24] port link-type access[SW2-GigabitEthernet1/0/24] port default vlan 3 //将PC2划分到VLAN 3[SW2-GigabitEthernet1/0/24] quit# 配置VLANIF接口,作为用户PC的网关。[SW2] interface vlanif 2 //创建VLANIF2接口[SW2-Vlanif2] ip address 192.168.2.1 24 //配置IP地址,此IP地址是PC1的网关地址[SW2-Vlanif2] quit[SW2] interface vlanif 3 //创建VLANIF3接口[SW2-Vlanif3] ip address 192.168.3.1 24 //配置IP地址,此IP地址是PC2的网关地址[SW2-Vlanif3] quit# 配置SW2和SW1互连。[SW2] vlan batch 5 //创建VLAN 5[SW2] interface gigabitethernet 1/0/1[SW2-GigabitEthernet1/0/1] port link-type access[SW2-GigabitEthernet1/0/1] port default vlan 5 //SW2和SW1以Untagged方式通信[SW2-GigabitEthernet1/0/1] quit[SW2] interface vlanif 5 //创建VLANIF5接口[SW2-Vlanif5] ip address 192.168.5.2 24 //配置IP地址,此IP地址是SW2与SW1互连接口的IP地址[SW2-Vlanif5] quit[SW2] ip route-static 0.0.0.0 0.0.0.0 192.168.5.1 //配置缺省路由,为PC用户找到访问路由器的出口。缺省路由的下一跳是SW1相连接口的IP

你可能感兴趣的试题

问答题

Anetwork attack is an attempt to gain(71)access to an organization’s network,with the objective of stealing data or performing other malicious activities.Plagiarism is A(72)-of-service(DoS)attack is a cyber-attack in which the attacker seeks to make a machine or network resource unavailable to its intended users by temporarily or indefinitely disrupting services of a host connected to a network.In the case of a simple attack,a(73)could have a simple rule added to deny all incoming traffic from the attackers,based on protocols,ports,or the originating IP addresses.In a(74)DoS(DDoS)attack wangwangwang,the incoming traffic flooding the victim originates from(75)different sources.This effectively makes it impossible to stop the attack simply by blocking a single source 问题1:

A.unauthorized

B.authorized

C.normal

D.frequent

问题2:

A.defense

B.denial

C.detection

D.decision

问题3:

A.firewall

B.router

C.gateway

D.switch

问题4:

Adamaged

B.descriptive

C.distributed

D.demanding

问题5:

A.two

B.many

C.much

D.ten

查看答案
单选题

以下关于信息化项目成本估算的描述中,不正确的是( )。

  • A.项目成本估算指设备采购、劳务支出等直接用于项目建设的经费估算
  • B.项目成本估算需考虑项目工期要求的影响,工期要求越短成本越高
  • C.项目成本估算需考虑项目质量要求的影响,质量要求越高成本越高
  • D.项目成本估算过粗或过细都会影响项目成本
查看答案
单选题

《中华人民共和国数据安全法》由中华人民共和国第十三届全国人民代表大会常务委员会第二十九次会议审议通过,自( )年 9 月 1 日起施行。

  • A.2019
  • B.2020
  • C.2021
  • D.2022
查看答案
单选题

某存储系统规划配置 25 块 8TB 磁盘,创建 2 个 RAID6 组,配置 1 块热备盘,则该存储系统实际存储容量是( )。

  • A.200T
  • B.192TB
  • C.176TB
  • D.160TB
查看答案
单选题

以下关于层次化网络设计模型的描述中,不正确的是( )。

  • A.终端用户网关通常部署在核心层,实现不同区域间的数据高速转发
  • B.流量负载和 VLAN 间路由在汇聚层实现
  • C.MAC 地址过滤、路由发现在接入层实现
  • D.接入层连接无线 AP 等终端设备
查看答案

相关题库更多 +