14-L2PT命令
本章節下載: 14-L2PT命令 (211.82 KB)
目 錄
1.1.1 display l2protocol statistics
1.1.4 l2protocol type tunnel-dmac
1.1.5 reset l2protocol statistics
display l2protocol statistics命令用來顯示L2PT報文統計信息。
【命令】
display l2protocol statistics [ interface interface-type interface-number ]
【視圖】
任意視圖
【缺省用戶角色】
network-admin
network-operator
【參數】
interface interface-type interface-number:顯示指定二層以太網接口或二層聚合接口上的L2PT報文統計信息。interface-type interface-number表示接口類型和接口編號。如未指定本參數,將顯示所有二層以太網接口和二層聚合接口的L2PT報文統計信息。
【舉例】
# 顯示所有二層以太網接口和二層聚合接口的L2PT報文統計信息。
<Sysname> display l2protocol statistics
L2PT statistics information on interface Bridge-Aggregation1:
Protocol Encapsulated Decapsulated Forwarded Dropped
CDP 0 0 0 0
DLDP 0 3 0 0
EOAM 0 2 0 0
GVRP 8 4 9 2
LACP 0 0 0 0
LLDP 0 3 0 0
MVRP 0 0 0 0
PAGP 0 1 0 0
PVST 0 0 0 0
STP 5 5 5 0
Tunnel N/A N/A 100 10
VTP 0 6 0 0
UDLD 0 0 0 0
DTP 0 0 0 0
CFD 0 0 0 0
L2PT statistics information on interface GigabitEthernet1/0/1:
Protocol Encapsulated Decapsulated Forwarded Dropped
CDP 0 0 0 0
DLDP 2 3 3 0
EOAM 5 2 9 0
GVRP 8 4 9 2
LACP 0 0 0 0
LLDP 3 3 3 3
MVRP 0 0 0 0
PAGP 5 1 7 3
PVST 0 0 0 0
STP 5 5 5 0
Tunnel N/A N/A 100 10
VTP 0 6 0 0
UDLD 0 0 0 0
DTP 0 0 0 0
CFD 0 0 0 0
表1-1 display l2protocol statistics命令顯示信息描述表
字段 |
描述 |
Protocol |
(僅Release 6331及以上版本支持DTP協議、CFD協議)協議類型 |
Encapsulated |
封裝統計計數 用戶側收到協議報文後封裝成Tunnel報文,對應的協議封裝統計計數加1 對於Tunnel(表示Tunnel報文),對應值顯示為N/A,為無效統計計數 |
Decapsulated |
解封裝統計計數 網絡側收到Tunnel報文後解封裝成協議報文,對應的協議解封裝統計計數加1 對於Tunnel,對應值顯示為N/A,為無效統計計數 |
Forwarded |
轉發統計計數 · 用戶側或網絡側收到協議報文後轉發,對應的協議轉發統計計數加1 · 網絡側收到Tunnel報文後轉發,對應的Tunnel轉發統計計數加1(如果網絡側收到Tunnel報文時,設備沒有任何用戶側端口,則Tunnel轉發統計計數不會增加) |
Dropped |
丟棄統計計數 · 接口收到協議報文後丟棄,對應的協議丟棄統計計數加1(如果協議報文被硬件丟棄,則協議丟棄統計計數不會增加) · 接口收到Tunnel報文後丟棄,對應的Tunnel丟棄統計計數加1 |
l2protocol tunnel dot1q命令用來開啟指定協議的L2PT功能。
undo l2protocol tunnel dot1q命令用來關閉指定協議的L2PT功能。
【命令】
在二層以太網接口視圖下:
l2protocol { cdp | cfd | dldp | dtp | eoam | gvrp | lacp | lldp | mvrp | pagp | pvst | stp | udld | vtp } tunnel dot1q
undo l2protocol { cdp | cfd | dldp | dtp | eoam | gvrp | lacp | lldp | mvrp | pagp | pvst | stp | udld | vtp } tunnel dot1q
在二層聚合接口視圖下:
l2protocol { cdp | cfd | gvrp | lacp | lldp | mvrp | pagp | pvst | stp | udld | vtp } tunnel dot1q
undo l2protocol { cdp | cfd | gvrp | lacp | lldp | mvrp | pagp | pvst | stp | udld | vtp } tunnel dot1q
【缺省情況】
各協議的L2PT功能均處於關閉狀態。
【視圖】
二層以太網接口視圖
二層聚合接口視圖
【缺省用戶角色】
network-admin
【參數】
cdp:表示CDP協議。
cfd:表示CFD參數。
dldp:表示DLDP協議。
dtp:表示DTP協議。
eoam:表示EOAM協議。
gvrp:表示GVRP協議。
lacp:表示LACP協議。
lldp:表示LLDP協議。
mvrp:表示MVRP協議。
pagp:表示PAGP協議。
pvst:表示PVST協議。
stp:表示STP協議。
udld:表示UDLD協議。
vtp:表示VTP協議。
僅Release 6331及以上版本支持dtp、cfd參數。
【使用指導】
L2PT功能僅需在用戶側接口上開啟。如果在網絡側接口上開啟了L2PT功能,則會將該接口認為是用戶側接口。
在接口上開啟某協議的L2PT功能時,對應的CE上應啟用該協議,同時當前接口必須關閉該協議。
如果CE上與PE開啟L2PT功能的接口相連的聚合接口上正在運行某協議(例如STP),則PE設備上對應的接口必須關閉該協議。
允許在二層聚合組的成員端口上開啟L2PT功能,但配置不生效。
對於LLDP協議,L2PT功能隻支持Nearest Bridge(最近橋代理)類型的LLDP報文。
【舉例】
# 在接口GigabitEthernet1/0/1上關閉STP協議,並開啟STP協議的L2PT功能。
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] undo stp enable
[Sysname-GigabitEthernet1/0/1] l2protocol stp tunnel dot1q
# 在二層聚合接口Bridge-Aggregation1上關閉STP協議,並開啟STP協議的L2PT功能。
<Sysname> system-view
[Sysname] interface bridge-aggregation 1
[Sysname-Bridge-Aggregation1] undo stp enable
[Sysname-Bridge-Aggregation1] l2protocol stp tunnel dot1q
l2protocol tunnel-dmac命令用來配置所有協議的Tunnel報文的組播目的MAC地址。
undo l2protocol tunnel-dmac命令用來恢複缺省情況。
【命令】
l2protocol tunnel-dmac mac-address
undo l2protocol tunnel-dmac
【缺省情況】
Tunnel報文的組播目的MAC地址為010f-e200-0003。
【視圖】
係統視圖
【缺省用戶角色】
network-admin
【參數】
mac-address:Tunnel報文的組播目的MAC地址。取值為0100-0ccd-cdd0、0100-0ccd-cdd1、0100-0ccd-cdd2或010f-e200-0003。
【使用指導】
通過本命令,可以配置所有協議的Tunnel報文組播目的MAC地址;通過l2protocol type tunnel-dmac命令,可以為特定協議配置該協議的Tunnel報文組播目的MAC地址。如果同時配置了二者,則設備在透傳特定協議的報文時,選取為該協議指定的Tunnel報文組播目的MAC地址。
僅Release 6331及以上版本支持l2protocol type tunnel-dmac命令。
【舉例】
# 配置Tunnel報文的組播目的MAC地址為0100-0ccd-cdd0。
<Sysname> system-view
[Sysname] l2protocol tunnel-dmac 0100-0ccd-cdd0
【相關命令】
· l2protocol type tunnel-dmac
l2protocol type tunnel-dmac命令用來配置指定協議Tunnel報文的組播目的MAC地址。
undo l2protocol type tunnel-dmac命令用來取消該配置。
僅Release 6331及以上版本支持本命令。
【命令】
l2protocol type { cdp | cfd | dldp | dtp | eoam | gvrp | lacp | lldp | mvrp | pagp | pvst | stp | udld | vtp } tunnel-dmac mac-address
undo l2protocol type { cdp | cfd | dldp | dtp | eoam | gvrp | lacp | lldp | mvrp | pagp | pvst | stp | udld | vtp } tunnel-dmac
【缺省情況】
所有協議Tunnel報文的組播目的MAC地址均為010f-e200-0003。
【視圖】
係統視圖
【缺省用戶角色】
network-admin
【參數】
cdp:表示CDP協議。
cfd:表示CFD參數。
dldp:表示DLDP協議。
dtp:表示DTP協議。
eoam:表示EOAM協議。
gvrp:表示GVRP協議。
lacp:表示LACP協議。
lldp:表示LLDP協議。
mvrp:表示MVRP協議。
pagp:表示PAGP協議。
pvst:表示PVST協議。
stp:表示STP協議。
udld:表示UDLD協議。
vtp:表示VTP協議。
mac-address:指定協議Tunnel報文的組播目的MAC地址,取值範圍為0100-0000-0000~01ff-ffff-ffff。
【使用指導】
通過l2protocol tunnel-dmac命令,可以配置所有協議的Tunnel報文組播目的MAC地址;通過本命令,可以為特定協議配置該協議的Tunnel報文組播目的MAC地址。如果同時配置了二者,則設備在透傳特定協議的報文時,選取為該協議指定的Tunnel報文組播目的MAC地址。
對於同一協議,同一用戶網絡對應的運營商網絡邊緣設備上配置的Tunnel報文的組播目的MAC地址必須一致,否則這些邊緣設備將無法正確識別Tunnel報文。
多次執行本命令,為同一協議配置不同Tunnel報文的組播目的MAC地址時,最後一次執行的命令生效。
【舉例】
# 配置STP協議Tunnel報文的組播目的MAC地址為0100-0ccd-cddc。
<Sysname> system-view
[Sysname] l2protocol type stp tunnel-dmac 0100-0ccd-cddc
【相關命令】
· l2protocol tunnel-dmac
reset l2protocol statistics命令用來清除L2PT報文的統計信息。
【命令】
reset l2protocol statistics [ interface interface-type interface-number ]
【視圖】
用戶視圖
【缺省用戶角色】
network-admin
【參數】
interface interface-type interface-number:清除指定二層以太網接口或二層聚合接口上的L2PT報文統計信息。interface-type interface-number表示接口類型和接口編號。如未指定本參數,將清除所有二層以太網接口和二層聚合接口的L2PT報文統計信息。
【舉例】
# 清除所有二層以太網接口和二層聚合接口的L2PT報文統計信息。
<Sysname> reset l2protocol statistics
不同款型規格的資料略有差異, 詳細信息請向具體銷售和400谘詢。H3C保留在沒有任何通知或提示的情況下對資料內容進行修改的權利!