若管理员需要在Switch上创建VLAN2,并要在GE1/0/1和GE1/0/2接入PC,PC属于VLAN2,完成以下命令填空或者解释

[HUAWEI](1)[Switch]vlanbatch2//创建VLAN2[Switch]interfacegigabitethernet1/0/1[Switch-GigabitEthernet1/0/1](2)[Switch-GigabitEthernet1/0/1]portdefaultvlan2//(3)[Switch-GigabitEthernet1/0/1]quit
正确答案及解析
正确答案
解析
(1)sysname Switch (2) port link-type access (3)接口GE1/0/1加入VLAN 2或者指定端口默认vlan
在Switch上创建VLAN 2,并把接口GE1/0/1和GE1/0/2加入VLAN 2

[HUAWEI] sysname Switch [Switch] vlan batch 2 //创建VLAN 2 [Switch] interface gigabitethernet 1/0/1 [Switch-GigabitEthernet1/0/1] port link-type access //和接入设备PC相连接口类型必须是access, 接口默认类型不是access,需要手动配置为access [Switch-GigabitEthernet1/0/1] port default vlan 2 //接口GE1/0/1加入VLAN 2 [Switch-GigabitEthernet1/0/1] quit 在考试中,第(2)和第(3)空命令考比较多,,一定要特别注意,能达到填空和解释命令能力,不一定要在模拟器上练习,但是这一段一定要熟悉。 类似把接口配置成hybrid接口,如下: [Quidway] sysname SwitchA [SwitchA] vlan batch 100 200 [SwitchA] interface gigabitethernet 0/0/1 [SwitchA-GigabitEthernet0/0/1] port hybrid pvid vlan 100 [SwitchA-GigabitEthernet0/0/1] port hybrid untagged vlan 100 [SwitchA-GigabitEthernet0/0/1] quit
你可能感兴趣的试题

-
- A.V(S2)和P(S4)
- B.P(S2)和V(S4)
- C.P(S2)和P(S4)
- D.V(S2)和V(S4)
- 查看答案

-
- A.V(S1)P(S2)和V(S3)
- B.P(S1)V(S2)和V(S3)
- C.V(S1)V(S2)和V(S3)
- D.P(S1)P(S2)和V(S3)
- 查看答案

-
- A.P(S4)和V(S4)V(S5)
- B.V(S5)和P(S4)P(S5)
- C.V(S3)和V(S4)V(S5)
- D.P(S3)和P(S4)V(P5)
- 查看答案

-
- A.P(S3)和V(S4)V(S5)
- B.V(S3)和P(S4)P(S5)
- C.P(S3)和P(S4)P(S5)
- D.V(S3)和V(S4)V(S5)
- 查看答案

-
- A.P(S2)和P(S4)
- B.P(S2)和V(S4)
- C.V(S2)和P(S4)
- D.V(S2)和V(S4)
- 查看答案