若管理员需要在Switch上创建VLAN 2,并要在GE1/0/1和GE1/0/

最全题库2022-08-02  28

问题 若管理员需要在Switch上创建VLAN 2,并要在GE1/0/1和GE1/0/2接入PC,PC属于VLAN 2,完成以下命令填空或者解释[HUAWEI] (1) [Switch] vlan batch 2 //创建VLAN 2 [Switch] interface gigabitethernet 1/0/1 [Switch-GigabitEthernet1/0/1] (2) [Switch-GigabitEthernet1/0/1] port default vlan 2 //(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
转载请注明原文地址:https://tihaiku.com/congyezige/2404836.html

最新回复(0)