API Guide

Codes: * - Default VLAN, G-GVRP VLANs, R-Remote Port Mirroring VLANs, P-Primary, C-Community,
I-Isolated
Q: A-Access (Untagged), T-Tagged
x-Dot1x untagged, X-Dot1x tagged
G-GVRP tagged, M-Vlan-stack, H-VSN tagged
i-Internal untagged, I-Internal tagged, v-VLT untagged, V-VLT tagged
NUM Status Description Q Ports
* 1 up A Eth1/1/2 1/1/3:2 1/1/3:3 1/1/3:4 1/1/4
1/1/5 1/1/6 1/1/7 1/1/8 1/1/9 1/1/10 1/1/11 1/1/12 1/1/13 1/1/14 1/1/15 1/1/16 1/1/17 1/1/18
1/1/19 1/1/20 1/1/21 1/1/22 1/1/23 1/1/24 1/1/25:1 1/1/25:2 1/1/25:3 1/1/25:4 1/1/26 1/1/27
1/1/28 1/1/30 1/1/32
A Po40
200 up T Eth1/1/3:2
T Po40
A Eth1/1/31
320 up T Eth1/1/25:4 1/1/32
T Po40
A Eth1/1/3:1
49 1/1/50 1/1/51 1/1/52 1/1/53 1/1/54
shutdown 命令将停止 L3 级路由流量。L2 流量将继续通过 VLAN。如果 VLAN 不是使用 IP 地址配置的路由 VLAN则此 shutdown
命令对 VLAN 流量没有影响。
使用 no interface vlan vlan-id 命令删除 VLAN 分配给该 VLAN 的任何接口都将分配给默认 VLAN 作为未标记接口。
要配置基于端口的 VLAN请针对与 VLAN 相关的配置任务进入 INTERFACE-VLAN 模式并创建 VLAN。要启用 VLAN请在 L2 模式
下分配成员接口。
1. 创建 VLAN 并在 INTERFACE 模式下输入 VLAN 编号 1 4093
interface vlan vlan-id
2. CONFIGURATION 模式下删除 VLAN
no interface vlan vlan-id
创建 VLAN
OS10(config)# interface vlan 108
删除 VLAN
OS10(config)# no interface vlan 108
查看配置的 VLAN
OS10(config)# do show interface vlan
Vlan 1 is up, line protocol is up
Address is , Current address is
Interface index is 69208865
Internet address is not set
MTU 1532 bytes
LineSpeed auto
Flowcontrol rx off tx off
ARP type: ARPA, ARP Timeout: 240
Last clearing of "show interface" counters Queueing strategy: fifo Time since last interface
status change:
Vlan 200 is up, line protocol is up
Address is , Current address is
Interface index is 69209064
Internet address is not set
MTU 1532 bytes
LineSpeed auto
Flowcontrol rx off tx off
ARP type: ARPA, ARP Timeout: 240
Last clearing of "show interface" counters Queueing strategy: fifo Time since last interface
status change:
2 475