软考初级

下面是交换机完成端口配置的过程,请根据题目要求,完成下列配置。Switch(config)interface f0/7(进入端口7的配置模式)Switch(config-if)(8)(设置端口为静态VLAN访问模式)Switch(config-if)(9)(把端口7分配给VLAN10)Switch(config-if)exitSwitch(config)exit

题目

下面是交换机完成端口配置的过程,请根据题目要求,完成下列配置。

Switch(config)interface f0/7(进入端口7的配置模式)

Switch(config-if)(8)(设置端口为静态VLAN访问模式)

Switch(config-if)(9)(把端口7分配给VLAN10)

Switch(config-if)exit

Switch(config)exit

如果没有搜索结果,请直接 联系老师 获取答案。
如果没有搜索结果,请直接 联系老师 获取答案。
相似问题和答案

第1题:

如图1所示,一台Cisco3500系列交换机上连接2台计算机,他们分别划分在VLAN10(ID号为 10)和VLAN11(ID号为11)中。交换机千兆以太网端口(g0/1)连接一台路由器,使2个VLAN之间能够通信,交换机管理地址为 167.11.45.2/24,缺省路由地址为 167.11.45.1/24。

请阅读以下交换机的配置信息,并补充【6】~【10】空白处的配置命令或参数。按题目要求完成交换机的配置。(注:填写答案时,配置语句的关键字要求拼写完整)

Switch-3548>enable

Password:*********

Switch-3548

Switch-3548configure terminal

Switch-3548(config)hostname Switch-lib

Switch-lib(config)

Switch-lib(config)interface vlan 1

Switch-lib(config-if)no shutdown

Switch-lib(config-if)ip address 【 6】 配置交换机的管理地址

Switch-lib(config-if)exit

Switch-lib(config)ip default-gateway167.11.45.1

Switch-lib(config)vtp domain lib

Switch-lib(config)vtp mode transparent

Switch-lib(config)exit

Switch-libvlan data

Switch-lib(vlan)vlan 【7】 建立VLAN10

…… 建立VLAN11(省略)

Switch-lib(vlan)exit

Switch-libconfigure terminal

Switch-lib(config)interface f0/1

Switch-lib(config-if)no shutdown

Switch-lib(config-if)switchport 【8】 为端口f0/1分配VLAN

Switch-lib(config-if)exit

Switch-lib(config)interface f0/6

…… 为端口f0/6分配VLAN(省略)

Switch-lib(config-if)exit

Switch-lib(config)interface g0/1

Switch-lib(config-if)switchport 【9】 设置VLAN trunk 模式

Switch-lib(config-if)switchport trunkencapsulation dotlq

Switch-lib(config-if)switchport trunk 【10】 配置允许中继的VLAN

Switch-lib(config-if)exit

Switch-lib(config)exit

Switch-lib


正确答案:
答案:【6】167.11.45.2255.255.255.0【7】10namevlan10【8】accessvlan10【9】modetrunk【10】allowedvlan10,11或allowedvlan10-11

第2题:

【问题2】(3分)

根据图4-1的配置,补充完成下面路由器的配置命令:

Router(config)# interface (3)

Router(config-if)#ip address 10.10.1.1 255.255.255.0

Router(config-if)#no shutdown

Router(config-if)#exit

Router(config)# interface (4)

Router(config-if)# ip address 192.168.1.1 255.255.255.0

Router(config)# interface (5)

Router(config-if)# ip address 10.10.2.1 255.255.255.0


正确答案:

【问题2】(3分)

(3)ethernet 0/0   (e0/0)

(4)ethernet 0/l  (e0/1)

(5)serial0/0 (s0/0)

第3题:

在一台cisco catalyst 2950交换机上,要将端口F0/1设置为永久中继模式,需要使用( )配置命令。

A、Switch(config-if)#switchport mode access

B、Switch(config-if)#switchport dynamic auto

C、Switch(config-if)#switchport mode trunk

D、Switch(config-if)#switchport mode dynamic


正确答案:C


第4题:

如图所示,一台Cisc03500系列交换机上连接2台计算机,它们分别划分在VLANl0(II)号为10)和VLANll(ID号为11)中。交换机的千兆以太网端口(go/1)连接一台路由器,使2个VLAN之问能够通信。交换机管理地址为167.11.45.2/24,缺省路由地址为167.11.45.1/24。请阅读以下交换机的配置信息,并补充【1】-【5】空白处的配置命令或参数,按题目要求完成交换机的配置(注:填写答案时,配置语句的关键字要求拼写完整)。

Switch一3548>enable

Password:***********

Switch-3548

Switch——3548configure terminal

Switch-3548(config)hostname Switch—lib

Switch—lib(config)

Switch—lib(config)interface vlan

Switch—lib(config—if)no shutdown

Swimh—lib(config—if)ip address 【1】 配置交换机管理地址

Swimh—lib(config—if)exit

Swish—lib(config)ip default—gateway 167.11.45.1

Switch—lib(config)vtp domain lib

SwiSh—lib(config)vtp mode transparent

SwiSh—lib(config)exit

Swish—libvlan data

Switch—lib(vlan)vlan 【2】 建立VLANl0

…… 建立VLANll(省略)

Switch—lib fvlan)}}exit

Switch——libconfigure terminal

Switch—lib(config)interface fO/1

Swimh—lib(config—if)no shutdown

Switch—lib(config—if)switchport【3】 为端口fO/1分配VLAN

Switch—lib(config—if)exit

Switch—lib(config)interface f0/6

…… 为端口f0/6分配VLAN(省略)

Switch—lib(config—iflexit

Switch—lib(config)interface go/1

Switch—lib(config—if)switchport 【4】 设置VLAN trunk模式

Switch—lib(config—if)switchport trunk encapsulation dotlq

Switch—lib(config—if)switchport trunk 【5】 配置允许中继的VLAN

Switch—lib(config—if)exit

Switch—lib(config)exit

Switch—lib


正确答案:【l】167.11.45.2 255.255.255.0 【2】vlan l0 name vIANl0 【3】access vlan 10(access dan VLANl0) 【4】mode trunk 【5】allowed VLANl0一ll
【l】167.11.45.2 255.255.255.0 【2】vlan l0 name vIANl0 【3】access vlan 10(access dan VLANl0) 【4】mode trunk 【5】allowed VLANl0一ll 解析:考查路由器以及VLAN的命令行配置,这需要学生加强动手能力的训练,平时多参与实际的配置。在应用中逐渐熟悉命令的使用。
【1】因为IP地址后有/24,所以子网掩码必须是255.255.255.0。
【2】直接填写VI.AN号,如果有VLAN有名字的话,还要在10后加NAME VALN—NAME。
【3】端口加入VIAN的命令都用switchport aceegsvlan vain—id。
【4】设置VLAN的Trunk模式。
【5】配置允许中继的VALN的VLANl0 VLANll。

第5题:

阅读以下说明,回答问题1至问题3,将解答填入解答栏内。

【说明】

某公司租用了一段C类地址203.12.11.0/24~203.12.14.0/24,如下图所示。其网间地址是172.11.5.14/24。要求网内所有PC都能上网。

接入层交换机Switch1的端口24为trunk口,其余各口属于vlan11,请解释下列命令并完成交换机的配置。

Switch1config terminal

Switch1(config)interface f0/24(进入端口24配置模式)

Switch1(config-if) switchport mode trunk(1)

Switch1(config-if)switchport trunk encapsulation dotlq(2)

Switch1(config-if) switchport trunk allowed all(允许所有VLAN从该端口交换数据)

Switch1(config-if)exit

Switch1(config)exit

Swkch1 vlan database

Switch1(vlan) vlan11 name lab01(3)

Switch1(vlan)exit

Switch1 config terminal

Switch1(config)interface f0/9(进入f0/9的配置模式)

Switch1(config-if)(4)(设置端口为接入链路模式)

Switch1(config-if)(5)(把f0/9分配给VLAN11)

Switch1(config-if)exit

Switch1(config)exit


正确答案:(1)设置端口为中继(或Trunk)模式 (2)设置Trunk采用802.1q格式(或dotlq) (3)创建vlanll并命名为lab01 (4)switchport mode access (5)switchport access vlan11
(1)设置端口为中继(或Trunk)模式 (2)设置Trunk采用802.1q格式(或dotlq) (3)创建vlanll,并命名为lab01 (4)switchport mode access (5)switchport access vlan11 解析:由题目要求可知,Switch1的端口24为trunk口,其余各口属于vlan11,故Switch1的配置及解释如下。
Switch1# config terminal
Switch1(config) #interface f0/24 (进入端口24配置模式)
Switch1(config-if)# switchport mode trunk 设置端口为中继模式
Switch1(cOnfig-if)# switchport trunk encapsulation dotlq设置Trunk采用 802.1q格式
Switch1(config-if)# switchport trunk allowed all(允许所有VLAN从该端口交换数据)
Switch1(config- if)#exit
Switch1(config)#exit
Switchl# vlan database
Switch1(vlan) # vlan11 name lab01 创建vlan11,并命名为lab01
Switch1(vlan)#exit
Switch1#config terminal
Switch1(config)# interface f0/9 (进入f0/9的配置模式)
Switch1(config- if)# switchport mode access(设置端口为接入链路模式)
Switch1(config- if)# switchport access vlan11(把f0/9分配给VLAN11)
Switch1(config-if)#exit
Switch1(config)#exit

第6题:

Switch1的f0/24口接在Switch 0的f0/2口上,请根据本题的示意图完成或解释以下 Switch0的配置命令。

Switch0(config) interface(8)(进入虚子接口)

Switch0(config-if) ip address 203.12.12.1 255.255.255.0(加IP地址)

Switch0(config-if) no shutdown(9)

Switch0(config-if) standby 1 ip 203.12.12.253(建HSRP组并设虚IP地址)

Switch0(config-if) standby 1 priority 110(10)

Switch0(config-if) standby 1 preempt(11)


正确答案:(8)vlan11 (9)开启端口 (10)设优先级 (11)设切换许可
(8)vlan11 (9)开启端口 (10)设优先级 (11)设切换许可 解析:本题考查的是。Switch0交换机的配置及解释如下;
Switch0(config) # interface (8) (进入虚子接口)
Switch0(config-if) # ip address 203.12.12.1 255.255.255.0(加IP地址)
Switch0(config- if)# no shutdown 开启端口
Switch0(config-if) # standby 1 ip 203.12.12.253(建HSRP组并设虚IP地址)
Switch0(config-if) # standby 1 priority 110设优先级
Switch0(config- if)# standby 1 preempt 设切换许可

第7题:

将Switch1的端口1216划入v2的配置命令如下,请给出空白处的配置内容:

Switch1(config)interface fastEthernet0/6 (进入端口6配置模式)

Switch1(config-if)switchport (7)

Switch1(config-if)switchport (8)


正确答案:(7)mode access (8)access vlan 2(或access vlan v2)
(7)mode access (8)access vlan 2(或access vlan v2)

第8题:

下面是交换机完成Trunk的部分配置,请根据题目要求,完成下列配置。

SwitchA(config)interface f0/3(进入端口3配置模式)

SwitchA(config-if)switchporl(6)(设置当前端口为Trunk模式)

SwitchA(config-if)sritchport trunk allowed(7)(设置允许所有Vlan通过)

SwitchA(config-if)exit

SwitchA(config)exit

Switch%


正确答案:(6)mode trunk (7)vlan all
(6)mode trunk (7)vlan all 解析:本问题考查的是交换机的Trunk的配置。配置命令及解释如下。
SwitchA (config)#interface f0/3(进入端口3配置模式)
SwitchA(config-if)#switchporr mode trunk (设置当前端口为Trunk模式)
SwitchA(config-if)#switchport trunk allowed vlan all(设置允许所有 Vlan通过)
SwitchA (config-if)#exit
SwitchA (config)#exit
Switch#

第9题:

以下为Cisco以太网交换机Catalyst 2924(WS-C2924XL-A,拥有24个10/100 M自适应端口)的VLAN划分命令,请解释【7】~【11】处的标有下划线部分配置命令的含义。

switch>en ∥进入特权执行态

switch#config term ∥进入通用配置状态

switch(config)# 【7】 ∥配置vlan l(ID为l的Vlan)

switch(config-if)#ip address 202.112.111.23 255.255.255.0

switch(config-if)#management

switch(config-if)#exit ∥退出对vlan的配置状态

switch(config)#interface fa0/1 ∥配置第一模块的第二个端口

switch(config-if)# 【8】 ∥设置VLAN模式为access

switch(config-if)# 【9】 ∥将该端口加入VLAN

switch(config.if)#exit ∥退出对端口的配置状态

switch(config)#interface fa0/2 ∥配置第一模块的第三个端口,

switch(config-if)# 【10】 ∥设置该端口VLAN模式为multi

switch (config-if)# 【11】 ∥加入2、3号VLAN

switch(config-if)#exit//退出对端口的配置状态


正确答案:
(2)本题是对交换机综合配置的考核。
【7】  interface vlan l
【解析】配置vlan l(ID为1的Vlan),命令interface vlan<vlan_ID>。
【8】swichport mode access
【解析】设置VLAN模式为access的命令是“swichport mode access”。
【9】  switchport acess vlan
【解析】为端口分配VLAN的命令格式:switchport access vlan<vl;ffi-llUIIl>。
【10】  switchport mode multi
【解析】配置VLAN multi模式switchport mode multi。
【11】switchport multi vlan add 2,3
【解析】加入2、3号VLAN switchport multi vlan add<vlan-num>。