API Guide
9. 在连接到 CNA 1 的接口上应用服务策略。
OS10(config)# interface ethernet 1/1/50
OS10(conf‐if‐eth1/1/50)# service‐policy input type network‐qos pmap1
10. 配置连接到 NPG2 的接口。
OS10(config)# interface fibrechannel 1/1/5
OS10(config-if‐fc1/1/5)# vfabric 2
NPG2 交换机配置
1. 启用 NPG 功能。
OS10(config)# feature fc npg
2. 配置 vFabric。
OS10(config)# vfabric 2
OS10(conf‐vfabric‐2)# vlan 1000
OS10(conf‐vfabric‐2)# name fcoe_fabric
OS10(conf‐vfabric‐2)# fcoe fcmap 0efc02
3. 在连接到 NPG1 交换机的接口上应用 vFabric 配置。将端口模式更改为 F_Port。
OS10(config)# interface fibrechannel 1/1/5
OS10(conf‐if‐fc1/1/21)# vfabric 2
OS10(conf‐if‐fc1/1/21)# fc port‐mode f
4. 在连接到 CNA 2 的接口上应用 vFabric 配置。
OS10(config)# interface ethernet 1/1/1
OS10(conf‐if‐eth1/1/1)# vfabric 2
5. 全局启用 DCBX。
OS10(config)# dcbx enable
6. 创建类别映射和策略映射。
OS10(config)# class‐map type network‐qos cmap1
OS10(config‐cmap‐nqos)# match qos‐group 3
OS10(config)# policy‐map type network‐qos pmap1
OS10(config‐pmap‐network‐qos)# class cmap1
OS10(config‐pmap‐c‐nqos)# pause
OS10(config‐pmap‐c‐nqos)# pfc‐cos 3
7. 禁用连接到 CNA 2 的接口上的 LLFC。
OS10(config)# interface ethernet 1/1/1
OS10(conf‐if‐eth1/1/1)# no flowcontrol receive
8. 在连接到 CNA 2 的接口上启用 PFC 模式。
OS10(config)# interface ethernet 1/1/1
OS10(conf‐if‐eth1/1/1)# priority‐flow‐control mode on
9. 在连接到 CNA 2 的接口上应用服务策略。
OS10(config)# interface ethernet 1/1/1
OS10(conf‐if‐eth1/1/1)# service‐policy input type network‐qos pmap1
10. 配置连接到 FCF 的接口。
OS10(config)# interface fibrechannel 1/1/21
OS10(config-if‐fc1/1/21)# vfabric 2
344
光纤通道