niusouti.com

● 下面的交换机命令中哪一条为端口指定VLAN? (61) 。(61)A. S1(config-if)# vlan-menbership staticB. S1(config-if)# vlan databaseC. S1(config-if)# switchport mode accessD. S1(config-if)# switchport access vlan 1

题目

● 下面的交换机命令中哪一条为端口指定VLAN? (61) 。

(61)

A. S1(config-if)# vlan-menbership static

B. S1(config-if)# vlan database

C. S1(config-if)# switchport mode access

D. S1(config-if)# switchport access vlan 1


相似考题
参考答案和解析
正确答案:D

更多“● 下面的交换机命令中哪一条为端口指定VLAN? (61) 。 (61)A. S1(config-if)# vlan-menbership sta ”相关问题
  • 第1题:

    以下哪一条交换机命令为3548交换机端口指定Ⅵ,AN?——

    A.S1(config—if)#vlan—database

    B.Sl(config—if)#switchpoort access vlan 23

    C.Sl(config—if)#vlan—membership static

    D.S1(config—if)#switchpoort mode access


    正确答案:B
    解析:SI(coniig—if)#switehport 8ccess vlan 23用于Ciseo 3548交换机,把当前端口分配给VLAN 23,故选B)。

  • 第2题:

    使交换机SwitchA的千兆位端口允许除VLAN 6之外的所有VLAN数据通过的相关配置语句如下,请给出(10)空缺处的命令解释及(11)、(12)空缺处的配置内容。

    SwitchAconfig terminal (进入配置子模式)

    SwitchA(config) interface gigabit0/1 (10)

    SwitchA(config-if)swichport(11)

    SwitchA(config-if)swimhport(12)

    SwitchA(config-if)end


    正确答案:(10)进入判千兆位端口的配置子模式 (11)mode trunk (12)trunk allowed vlan remove vlan 6
    (10)进入判千兆位端口的配置子模式 (11)mode trunk (12)trunk allowed vlan remove vlan 6 解析:这是一道要求读者掌握VLAN Trunk端口配置的实际操作题。本题的解答思路如下。
    1)跨交换机的同一VLAN内的数据经过Trunk线路进行交换,在默认情况下Trunk允许所有的VLAN通过。不同Trunk上不同VLAN的权值不同,在默认情况下,其权值为128。
    2)试题中给出的关键信息“交换机SwitchA的千兆位端口允许除VLAN 6之外的所有VLAN数据通过”,间接提示了需将交换机SwitchA的千兆位端口设置成VLAN Trunk端口,因此“interface gigabit0/1”配置语句使交换机从配置子模式进入到千兆位端口的配置子模式。而(11)空缺处的相关配置语句是“switchport mode trunk”,用于将当前千兆位端口设置为Trunk模式。
    3)由于Trunk端口默认允许所有的VLAN通过,因此试题中“除VLAN6之外”的配置要求由(12)空缺处的配置语句完成,其相关语句是“switchport trunk allowed vlan remove vlan 6”。

  • 第3题:

    ● 能进入VLAN配置状态的交换机命令是 (61) 。

    (61)

    A. 2950(config)# vtp pruning

    B. 2950# vlan database

    C. 2950(config)# vtp server

    D. 2950(config)# vtp mode


    正确答案:B

  • 第4题:

    阅读下面的说明,回答问题1至问题4。

    【说明】

    某企业园区网采用了三层架构,按照需求,在网络中需要设置VLAN、快速端口、链路捆绑、Internet接入等功能。该园区网内部分VLAN和IP地址如表12-2所示。

    表12-2

    某交换机的配置命令如下,根据命令后面的注释,填写(1)~(3)处的空缺内容,完成配置命令。

    Switch(config) (1)//将交换机命名为Sw1

    Swl(config) interface vlan 1

    Swl(config-if) (2) //设置交换机的IP地址为192.168.1.1/24

    Swl(config-if) no shutdown

    Swl(config) (3) //设置交换机默认网关地址


    正确答案:(1)hostname sw1 (2)ip address 192.168.1.1 255.255.255.0 (3)ip default-gateway 192.168.1.254
    (1)hostname sw1 (2)ip address 192.168.1.1 255.255.255.0 (3)ip default-gateway 192.168.1.254 解析:本问题考查的是交换机的基本配置命令,包括设置交换机的名称,配置交换机的IP地址和默认网关。参照题目要求,该交换机的名称为Sw1,IP地址为192.168.1.1/24,根据表12-2可知其默认网关为192.168.1.254。故其配置命令为:
    Switch(config) # hostname sw1
    Sw1(config) # interface vlan 1
    Sw1(config-if) # ip address 192.168.1.1255.255.255.0
    sw1(config-if) # no shutdown
    Sw1(config) # ip default-gateway 192.168.1.254

  • 第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题:

    ●交换机命令SwitchA(VLAN)#vtppruning的作用是(61)。

    A.退出VLAN配置模式

    B.删除一个VLAN

    C.进入配置子模式

    D.启动路由修剪功能


    正确答案:D

  • 第7题:

    下面的交换机命令中( )为端口指定 VLAN。

    A.S1(config-if)vlan-membership static

    B.S1(config-if)vlan database

    C.S1(config-if)switchport mode access

    D.S1(config-if)switchport access vlan 1


    正确答案:D

  • 第8题:

    VLAN3尚未交换机上配置。如果将交换机端口接入VLAN3命令接口配置模式,会发生什么?()

    A.该命令被接受和各自的VLAN添加到VLANDAT。

    B.该命令将被拒绝。

    C.该命令被接受,你必须手动配置VLAN。

    D.端口变为琥珀色。


    参考答案:A

  • 第9题:

    VLAN之间通信需要(61)上的支持。

    A.网桥
    B.路由器
    C.VLAN服务器
    D.交换机

    答案:B
    解析:

  • 第10题:

    交换机命令 switchport access vlan 99 有何作用? ()

    • A、用于启用端口安全
    • B、用于使端口正常工作
    • C、用于将该端口分配到特定 VLAN
    • D、用于指定不予标记的 VLAN
    • E、用于将该端口分配到本征 VLAN (VLAN 99)

    正确答案:C

  • 第11题:

    【问题2】(5 分) 根据网络拓扑和需求说明,完成(或解释)交换机S1 的部分配置 S1#config t S1(config)#interface vlan 2 S1(config-if)#ip address 192.168.2.254 255.255.255.0 S1(config)#interface vlan 3 S1(config-if)#ip helper-address (11) ;指定DHCP 服务器的地址 S1(config-if)#exit S1(config)#interface vlan 4 ...... S1(config)#interface f1/1 S1(config-if)#switchport mode (12) S1(config-if)#switchport trunk allowed vlan all S1(config-if)#exit S1(config)interface f1/2 S1(config-if)#switchport mode access S1(config-if)#switchport access (13) S1(config-if)#exit S1(config)interface f1/5 S1(config-if)#switchport mode access S1(config-if)#switchport access (14) S1(config)#interface f1/9 S1(config-if)#switchport mode access S1(config-if)#switchport access (15)


    正确答案: (11)192.168.1.1、(12)trunk、(13)vlan 1、(14)vlan4、(15)vlan 3

  • 第12题:

    单选题
    交换机命令 switchport access vlan 99 有何作用? ()
    A

    用于启用端口安全

    B

    用于使端口正常工作

    C

    用于将该端口分配到特定 VLAN

    D

    用于指定不予标记的 VLAN

    E

    用于将该端口分配到本征 VLAN (VLAN 99)


    正确答案: E
    解析: 暂无解析

  • 第13题:

    阅读下面的配置信息,解释(7)处的命令。

    Switchconfig t

    Switch(eonfig)interface f0/5(进入端口5的配置模式)

    Switch(config-if)switchport mode access(7)

    Switch(config-if)switchport access vlan 2(把端口5分配给相信的VLAN2)

    Switch(config-if)exit

    Switch(config)interface f0/6

    Switch(config-if)switchport mode access

    Switch(config-if)switchport access vlan 3

    Switch(config-if)exit

    Switch(config)exit

    Switch


    正确答案:(7)设置端口为静态VLAN访问模式
    (7)设置端口为静态VLAN访问模式 解析:命令Switch(config-if)#switchport mode access的含义是设置端口为静态VLAN访问模式。

  • 第14题:

    在图2-8所示的网络拓扑图中,要使交换机Switch02与三层交换机的上连端口允许所有VLAN通过的配置命令如下,请将以下(9)、(10)空缺处的内容填写完整。

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

    Switch02(config-if) (9)

    Switch02(config-if) (10) (设置允许从该端口交换数据的VLAN)


    正确答案:(9) switchport mode trunk (10) switchport trunk allowed vlan all
    (9) switchport mode trunk (10) switchport trunk allowed vlan all 解析:这是一道要求读者掌握交换机VLAN Trunk端口配置的综合实践题。跨交换机的同一VLAN内的数据经过Trunk线路进行交换。以下给出试题中Switch02配置语句(或命令)的完整解释信息,带下划线的部分为本试题相关空缺处的答案。
    Switch02 (config) #interface f0/24(进入端口1配置模式)
    Switch02 (config-if) #switchport mode trunk(设置当前端口为Trunk模式)
    Switch02 (config-if) #switchport trunk allowed vlan all(设置允许从该端口交换数据的VLAN)
    提醒注意的是,默认情况下Trunk允许所有的VLAN通过,如果要求去掉某一个VLAN,可以使用 switchport trunk allowed vlan remove vlan-list>配置语句完成此功能。

  • 第15题:

    如图1所示,某校园网使用3台Catalyst6500交换机构成万兆以太网的主干,其中交换机S1使用千兆以太网技术下连到学生宿舍楼的一台Catalyst3548交换机S4,S4下连的用户被划分在VLAN ID为2~5,VLAN名为jszx2~jszx5的4个VLAN中,标注S1和S4之间使用IEEE802.1Q国际标准,且在S1和S4之间只允许传输jszx2~jszx5的信息。

    请阅读下列关于交换机S4的VLAN配置信息,并补充空白处的配置命令或参数,按题目要求完成交换机S4的相关配置。

    Switch-S4-3548 vlan data

    Switch-S4-3548 (vlan) vlan2 name jszx2

    Switch-S4-3548 (vlan) vlan3 name jszx3

    Switch-S4-3548 (vlan) vlan4 name jszx4

    Switch-S4-3548 (vlan) vlan5 name jszx5

    Switch-S4-3548 (vlan) exit

    Switch-S4-3548 configure terminal Switch-S4-3548 (config) interface (6) (进入端口配置模式)

    Switch-S4-3548 (config-if) switchport (7) (配置VLAN trunk模式)

    Switch-S4-3548 (config-if) switchport trunk encapsulation (8) (封装协议)

    Switch-S4-3548 (config-if) switchport truck allowed (9) (设置可中继的VLAN)

    Switch-S4-3548 (config-if) switchport truck allowed (10) (去除不允许中继的VLAN)

    Switch-S4-3548 (config-if) exit

    Switch-S4-3548 (config) exit Switch-S4-3548

    (6)


    正确答案:G2/2
    G2/2

  • 第16题:

    试题三(共15分)

    阅读以下说明,回答问题1至问题4,将解答填入答题纸对应的解答栏内。

    【说明】

    如图3-1所示,PC1和PC2接到交换机SwitchA的f0/1和f0/2端口上,PC3和PC4接到交换机SwitchB的f0/l和f0/2端口上,SwitchA和SwitchB利用交叉双绞线互连在端口f0/24上,PC1和PC3构成VLAN2,PC2和PC4构成VLAN3。

    【问题1】

    VLAN可以把一个网络从逻辑上划分为多个子网,在图3-1中,PC1可以直接和(1)通信;能收到PC2广播包的主机是(2)。

    【问题2】

    下面语句的功能是在SwitchA中创建VLAN2和VLAN3,并将f0/1和f0/2端口分别加入到VLAN2和VLAN3,请填空。

    SwitchAvlan database

    SwitchA(vlan) (3) (创建VLAN2)

    SwitchA(vlan) (4) (创建VLAN3)

    SwitchA (vlan)exit

    SwitchA(5) (进入全局配置模式)

    SwitchA(config)interface f0/l

    SwitchA(config-if)switchport mode access

    SwitchA(config-if)switchport access vlan 2

    SwitchA(config-if)exit

    SwitchA(config) (6) (进入端口配置模式)

    SwitchA(config-if)switchport mode access

    SwitchA(config-if) (7) (将端口加入相应vlan)

    SwitchA(config-if)exit

    【问题3】

    下面语句在SwitchA中配置VTP协议和VLAN Trunk端口,请填空。

    SwitchA (8) (进入VLAN配置模式)

    SwitchA(vlan) (9) (设置本交换机为服务器模式)

    SwitchA (vlan) vtp pruning

    SwitchA(vlan) (10) (退出VLAN配置模式)

    SwitchAconfig terminal

    SwitchA(config) (11) (进入端口配置模式)

    SwitchA(config-if)switchport mode (12) (设置当前端口为Trunk模式)

    SwitchA(config-if) switchport trunk allowed vlan all

    SwitchA(config-if)exit

    SwitchA(config)exit

    【问题4】

    对于SwitchB,需要配置为VTP的客户端模式,使其能从SwitchA中学习到VTP和VLAN的相关信息。请填空完成相关配置。

    SwitchB(13) (进入VLAN配置模式)

    SwitchB(vlan) (14) (设置本交换机为客户端模式)

    SwitchB (vlan) (15) (退出VLAN配置模式)


    正确答案:
    【问题1】(2分)
    (1) PC3
    (2) PC4
    【问题2】(5分)
    (3) vlan 2
    (4) vlan 3
    (5) config terminal
    ( 6) interface f0/2
    ( 7) switchport access vlan 3
    【问题3】 (5分)
    (8) vlan database
    (9) vtp server
    (10) exit
    (11) interface f0/24
    (12) trunk
    【问题4】(3分)
    ( 13) vlan database
    ( 14) vtp client
    (15) exit

  • 第17题:

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

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

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

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

    Switch(config-if)exit

    Switch(config)exit


    正确答案:(8)switchport mode access (9)switchport access vlan 10
    (8)switchport mode access (9)switchport access vlan 10 解析:本问题考查的是将端口划入VPN的基本操作。其命令及解释如下。
    Switch(config)#interface f0/7(进入端口 7的配置模式)
    Switch(config-if)# switchpcrt mode access(设置端口为静态VLAN访问模式)
    Switch(config-if)#switchport access vlan 10(把端口7分配给VLAN10)
    Switch(config-if)#exit
    Switch(config)#exit

  • 第18题:

    下面的交换机命令中哪一条为2950交换机端口指定VLAN?(61)。

    A.S1(config-if)# vlan-membership static

    B.S1(config-if)# vlan database

    C.S1(config-if)# switchport mode access

    D.S1(config-if)# switchport access vlan 1


    正确答案:D
    解析:这4条命令解释如下。
      . S1(config-if)# vlan-membership static vlan_#:该命令为Cisco 1900交换机端口分配VLAN,后面必须说明端口号。
      . S1(config-iO#vlan database:该命令用于Cisco 2950交换机,从特权模式进入 VLAN配置模式。
      . S1(config-if)# switchport mode access:将端口设置为接入链路连接。
      . S1(config-if)# switchport access vlan 1:该命令用于Cisco 2950交换机,把当前端口分配给VLAN1。

  • 第19题:

    Refertotheexhibit.YouareaskedtoenableredirectionforanetworkoptimizationenginethatwillbeconnecteddirectlytoyourcompanyCPE.Whatisthecorrectconfigurationtoenableredirectionfortrafficoptimization?()

    A.(config)#interfaces0/0(config-if)#ipwccp61out(config)#interfacee0/0(config-if)#ipwccp62out

    B.(config)#interfaces0/0(config-if)#ipwccp62in(config)#interfacee0/0(config-if)#ipwccp61in

    C.(config)#interfaces0/0(config-if)#ipwccp61in(config-if)#ipwccp62out

    D.(config)#interfacee0/0(config-if)#ipwccp61in(config-if)#ipwccp62out

    E.(config)#interfacee0/0(config-if)#ipwccp61out(config-if)#ipwccp62in

    F.(config)#interfaces0/0(config-if)#ipwccp61out(config-if)#ipwccp62in


    参考答案:D

  • 第20题:

    如图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

  • 第21题:

    下面的交换机命令中(59) 为端口指定VLAN。

    A.Sl(config-if)# vlan-menbership static
    B.S1(config-if)# vlan database
    C.Sl(config-iif)# switchport mode access
    D.Sl(config-if)#switchport access vlan 1

    答案:D
    解析:

  • 第22题:

    华为交换机中,display interface vlan命令用来查看主接口下所有配置指定VLAN ID的子接口或untagged的子接口。


    正确答案:正确

  • 第23题:

    问答题
    如下图所示,某校园网使用三台Catalyst 6500交换机构成万兆以太网的主干,其中交换机S1使用千兆以太网技术下连到学生宿舍楼的一台Catalyst 3548交换机S4,S4下连的用户被划分在VLAN ID为2~5,VLAN名为jszx2~jszx5的四个VLAN中,要求S1和S4之间使用IEEE802.1Q国际标准,且在S1和S4之间只允许传输jszx2~jszx5的信息。校园网连接图  请阅读下列关于交换机S4的VLAN配置信息,并补充空白处的配置命令或参数,按题目要求完成交换机S4的相关配置。    Switch-S4-3548(config)#interface【1】(进入端口配置模式)  Switch-S4-3548(config-if)#switchport【2】(配置VLAN trunk模式)  Switch-S4-3548(config-if)#switchport trunk encapsulation【3】(封装协议)  Switch-S4-3548(config-if)#switchport truck allowed【4】(设置可中继的VLAN)  Switch-S43548(config-if)#switchport truck allowed【5】(去除不允许中继的VLAN)  Switch-S4-3548(config-if)#exit  Switch S43548(config)#exit  Switch-S4-3548#

    正确答案: 【1】g2/2
    【2】mode trunk
    【3】dot1q
    【4】vlan
    【5】vlan except 6—1000
    解析:except是从允许的VLAN列表中去掉一些VLAN号,也就是参数中给出的是不允许中继的VLAN。
    解析: 暂无解析