通常VLAN有哪两种实现方式。 以下为Cisco以太网交换机Catalyst 2924(ws-c2924xlA,拥有24个10/100Mbit/s自适应端口)的VLAN划分命令,请解释(1)~(3)处的标有下划线部分配置命令的含义。(“//”后为注释内容

admin2010-01-17  25

问题 通常VLAN有哪两种实现方式。
以下为Cisco以太网交换机Catalyst 2924(ws-c2924xlA,拥有24个10/100Mbit/s自适应端口)的VLAN划分命令,请解释(1)~(3)处的标有下划线部分配置命令的含义。(“//”后为注释内容)
   switch>en//进入特权执行态
   switch# config term//进入通用配置状态
   switch(config)#interface vlan 1//配置vlan 1(ID为1的Vlan)
   (1)(此处有2条下划线)
   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 faO/1//配置第一模块的第2个端口
   (2)(此处有2条下划线)
   switch(config-if)# switchport mode access
   switch(config-if)#switchport acess vlan
   switch(conflg-if)# exit//退出对端口的配置状态
   ……
   ……
   switch(config)# interface fa0/2//配置第一模块的第3个端口
   (3)(此处有2条下划线)
   switch(config-if)#switchport mode multi
   switch(config-if)#switchport multi vlan add 2,3
   switch(config-if)#exit//退出对端口的配置状态

选项

答案配置命令的含义如下: 1.设置ID为l的VLAN为Management,配置该设备在Management VLAN中的IP地址。 2.设置2号端口的VLAN模式为access,并将该端口加入2号 VLAN。 3.设置3号端口的VLAN模式为multi,并将该端口同时加入2、3号VLAN。

解析
转载请注明原文地址:https://kaotiyun.com/show/7RPZ777K
0

最新回复(0)