API Guide
Vlan 320 is up, line protocol is up
Address is , Current address is
Interface index is 69209184
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:
Identifier GUID-C4B6CA10-AE2C-454F-9B78-AA65BCC12FBF
Version 6
Status Translation approved
访问模式
访问端口是唯一一个 VLAN 的未标记成员。在访问模式中配置端口,然后配置哪些 VLAN 将传输该接口的流量。如果未在访问模式
或访问端口中配置某个端口的 VLAN,该接口将为 VLAN 1(默认 VLAN)传输流量。
通过指定新 VLAN,更改 VLAN 中的访问端口成员资格。您必须先创建 VLAN,然后才能在访问模式下将端口分配给该 VLAN。使用
no switchport access vlan 命令重置为默认 VLAN。
1. 在 INTERFACE 模式下配置端口。
interface ethernet node/slot/port[:subport]
2. 在 INTERFACE 模式下访问时将接口设置为交换机端口模式。
switchport mode access
3. 在 INTERFACE 模式下输入未标记端口的 VLAN 编号。
switchport access vlan vlan-id
在访问模式下配置端口
OS10(config)# interface ethernet 1/1/9
OS10(config-if-eth1/1/9)# switchport mode access
OS10(config-if-eth1/1/9)# switchport access vlan 604
显示正在运行的配置
OS10# show running-configuration
...
!
interface ethernet1/1/5
...
switchport access vlan 604
no shutdown
!
interface vlan1
no shutdown
...
Identifier
GUID-5B97F49A-8BCC-4950-B914-C94E5C0E254D
Version 7
Status Translation approved
中继模式
中继端口可以是在接口上设置的多个 VLAN 的成员。中继端口为所有 VLAN 传输流量。要在具有多个 VLAN 的中继端口上传输流
量,OS10 使用标记或 802.1q 封装方法。
476 第 2 层