如下图所示,在一台Cisco Catalyst 3500交换机上连接2台PC机,使用端口划分方法将它们分别划分在VLAN ID为21、22,VLAN名为VL21、VL22的VLAN中,下列关于交换机VLAN的配置,正确的是()。
- A.Switch-3548 #vlan data
Switch-3548 (vlan)#vlan 21 name vl21
Switch-3548 (vlan)#vlan 22 name vl22
Switch-3548 (vlan)#exit
Switch-3548 #configure terminal
Switch-3548 (config)#int f0/1
Switch-3548 (config-if)#switchport access vlan 21
Switch-3548 (config)#int f0/2
Switch-3548 (config-if)#switchport access vlan 22
- B.Switch-3548 #vlan data
Switch-3548 (vlan)#set vlan 21 name vl21
Switch-3548 (vlan)#set vlan 22 name vl22
Switch-3548 (vlan)#exit
Switch-3548 #configure terminal
Switch-3548 (config)#int f0/1
Switch-3548 (config-if)#switchport access vlan 21
Switch-3548 (config)#int f0/2
Switch-3548 (config-if)#switchport access vlan 22
- C.Switch-3548 #vlan data
Switch-3548 (vlan)#vlan 21 name vl21
Switch-3548 (vlan)#vlan 22 name vl22
Switch-3548 (vlan)#exit
Switch-3548 #configure terminal
Switch-3548 (config)#int f0/1
Switch-3548 (config-if)#switchport allowed vlan 21
Switch-3548 (config)#int f0/2
Switch-3548 (config-if)#switchport allowed vlan 22
- D.Switch-3548 #vlan data
Switch-3548 (vlan)#vlan 21 name vl21
Switch-3548 (vlan)#vlan 22 name vl22
Switch-3548 (vlan)#exit
Switch-3548 #configure terminal
Switch-3548 (config)#int f0/1
Switch-3548 (config-if)#switchport access 21
Switch-3548 (config)#int f0/2
Switch-3548 (config-if)#switchport access 22
热度🔥452
解析:打开微信小程序查看本题解析