show vpls connections
语法
show vpls connections <brief | extensive> <down | up | up-down> <history> <instance instance-name local-site local-site-name remote-site remote-site-name> <instance-history> <logical-system (all | logical-system-name)> <status> <summary>
描述
(T 系列和 M 系列路由器,M160 路由器除外)显示虚拟专用 LAN 服务 (VPLS) 连接信息。
选项
none | 显示有关所有路由实例的所有 VPLS 连接的信息。 |
brief | extensive | (可选)显示指定的输出级别。 |
down | up | up-down | (可选)显示非操作型、操作型或两种类型的连接。 |
history | (可选)显示有关连接历史记录的信息。 |
instance instance-name | (可选)仅显示指定路由实例的 VPLS 连接。 |
instance-history | (可选)显示有关特定实例的连接历史记录的信息。 |
local-site local-site-name | (可选)仅显示指定本地站点名称或 ID 的 VPLS 连接。 |
remote-site remote-site-name | (可选)仅显示指定远程站点名称或 ID 的 VPLS 连接。使用此选项时,标签块大小信息始终显示为 0。 |
logical-system (all | logical-system-name) | (可选)在所有逻辑系统或特定逻辑系统上执行此操作。 |
status | (可选)显示有关连接和接口状态的信息。 |
summary | (可选)显示所有 VPLS 连接信息的摘要。 |
所需权限级别
视图
输出字段
表 1 列出了命令 show vpls connections
的输出字段。输出字段按其出现的大致顺序列出。
字段名称 |
字段说明 |
---|---|
|
VPLS 实例的名称。 |
|
本地站点的名称。 |
|
VPLS 站点的标识符。 |
|
为本地站点配置的接口数。 |
|
为当前已启动的本地站点配置的接口数。 |
|
指示集成路由和桥接 (IRB) 接口 |
|
为本地站点配置的所有接口的列表。接口类型可以包括 VPLS 虚拟环路隧道接口和标签交换接口。可以在此处列出支持 VPLS 的任何接口。 虚拟环路隧道接口使用以下格式显示 每个接口可能包含以下信息:
|
|
与接口关联的标志。可以包括以下内容:
|
|
标签块中的第一个标签。远程 PE 路由器在向播发 PE 路由器发送流量时使用第一个标签。 |
|
显示第 2 层 VPN NLRI 中的 VPLS 边缘 (VE) 块偏移量。VE 块偏移用于标识标签块,从中选择特定标签值以设置远程站点的 pseduowire。块偏移值本身指示映射到 VPLS NLRI 通告中包含的标签库的起始 VE ID。 |
|
标签块大小。一个可配置值,表示覆盖远程对等方的所有伪线所需的标签块数。可接受的配置值为: |
|
标签块范围。跟踪在每个标签块内发现的远程站点数的值。 |
|
为 VPLS 站点播发的首选项值。当为多个 PE 路由器分配相同的 VE ID 以进行多宿主时,您可能需要通过配置站点首选项值来指定特定 PE 路由器充当指定的转发器。站点首选项指示特定客户站点的首选项程度。站点首选项是指定转发器选择中使用的平局标准之一。 |
|
向远程 PE 路由器播发本地 PE-CE 电路状态的位矢量。位值 of |
|
连接站点的名称。 |
|
VPLS 邻接方的 IP 地址和 VPLS 标识符。如果配置了多个伪线,IP 地址还将显示特定于 PW 的 vpls-id 列表,例如 203.0.113.144 (vpls-id 200)。 |
|
连接类型: |
|
VPLS 连接的状态(对应于连接状态的图例):
|
|
时间连接是条件中的 |
|
从 |
|
(本地或远程电路)本地接口的状态:
|
|
封装类型: |
|
远程提供商边缘路由器的地址。 |
|
是否已协商控制字: |
|
传入标签的名称。 |
|
传出标签的名称。 |
|
指示是否已为 VPLS 连接协商伪线状态 TLV。 |
|
提供有关为 VPLS 邻接方配置的本地接口的以下信息:
|
|
VPLS 连接事件的日期和时间。 |
|
事件类型。 |
|
接口、标签或 PE 路由器。 |
|
每个条目可以包含日期、时间、年份和连接事件。连接事件包括与 VPLS 连接相关的各种事件中的任何一个,例如路由更改、标签更新以及接口关闭或即将启动。 |
示例输出
显示 VPLS 连接
user@host> show vpls connections Layer-2 VPN connections: Legend for connection status (St) EI -- encapsulation invalid NC -- interface encapsulation not CCC/TCC/VPLS EM -- encapsulation mismatch WE -- interface and instance encaps not same VC-Dn -- Virtual circuit down NP -- interface hardware not present CM -- control-word mismatch -< -- only outbound connection is up CN -- circuit not provisioned >- -- only inbound connection is up OR -- out of range Up -- operational OL -- no outgoing label Dn -- down LD -- local site signaled down CF -- call admission control failure RD -- remote site signaled down SC -- local and remote site ID collision LN -- local site not designated LM -- local site ID not minimum designated RN -- remote site not designated RM -- remote site ID not minimum designated XX -- unn connection status IL -- no incoming label MM -- MTU mismatch MI -- Mesh-Group ID not available BK -- Backup connection ST -- Standby connection PF -- Profile parse failure PB -- Profile busy Legend for interface status Up -- operational Dn -- down Instance: vpls-1 Local site: 1 (11) Number of local interfaces: 1 Number of local interfaces up: 1 IRB interface present: no lt-1/3/0.10496 vt-1/3/0.1048588 1 Intf - vpls vpls-1 local site 11 remote site 1 vt-1/2/0.1048591 2 Intf - vpls vpls-1 local site 11 remote site 2 vt-1/2/0.1048585 3 Intf - vpls vpls-1 local site 11 remote site 3 vt-1/2/0.1048587 4 Intf - vpls vpls-1 local site 11 remote site 4 vt-1/2/0.1048589 5 Intf - vpls vpls-1 local site 11 remote site 5 vt-1/3/0.1048586 6 Intf - vpls vpls-1 local site 11 remote site 6 vt-1/3/0.1048590 7 Intf - vpls vpls-1 local site 11 remote site 7 vt-1/3/0.1048584 8 Intf - vpls vpls-1 local site 11 remote site 8 Label-base Offset Size Range Preference 800256 1 16 16 100 Timer Values: Startup wait time: 120 seconds New site wait-time: 20 seconds Collision detect time: 30 seconds Reclaim wait time: 748 milliseconds connection-site Type St Time last up # Up trans 1 rmt Up Apr 28 13:28:24 2009 2 Remote PE: 192.0.2.1, Negotiated control-word: No Incoming label: 800256, Outgoing label: 800026 Local interface: vt-1/3/0.1048588, Status: Up, Encapsulation: VPLS Description: Intf - vpls vpls-1 local site 11 remote site 1 Connection History: Apr 28 13:28:24 2009 status update timer Apr 28 13:28:24 2009 PE route down Apr 28 13:24:27 2009 status update timer Apr 28 13:24:27 2009 loc intf up vt-1/3/0.1048588 Apr 28 13:24:27 2009 PE route changed Apr 28 13:24:27 2009 Out lbl Update 800026 Apr 28 13:24:27 2009 In lbl Update 800256 Apr 28 13:24:27 2009 loc intf down 2 rmt Up Apr 28 13:28:24 2009 2 Remote PE: 192.0.2.71, Negotiated control-word: No Incoming label: 800257, Outgoing label: 800034 Local interface: vt-1/2/0.1048591, Status: Up, Encapsulation: VPLS Description: Intf - vpls vpls-1 local site 11 remote site 2 Connection History: Apr 28 13:28:24 2009 status update timer Apr 28 13:28:24 2009 PE route down Apr 28 13:24:28 2009 status update timer Apr 28 13:24:28 2009 loc intf up vt-1/2/0.1048591 Apr 28 13:24:28 2009 PE route changed Apr 28 13:24:28 2009 Out lbl Update 800034 Apr 28 13:24:28 2009 In lbl Update 800257 Apr 28 13:24:28 2009 loc intf down
显示 VPLS 连接(FEC128 和 FEC129 在同一路由实例中)
user@host> show vpls connections Instance: fec129 L2vpn-id: 1:1 Local-id: 203.0.113.0 FEC129-VPLS State: Mesh-group connections: __ves__ Remote-id Type St Time last up # Up trans 203.0.3.3 rmt Up Sep 19 09:59:56 2017 1 Remote PE: 203.0.3.3, Negotiated control-word: No Incoming label: 262155, Outgoing label: 262164 Negotiated PW status TLV: No Local interface: lsi.1048844, Status: Up, Encapsulation: ETHERNET Description: Intf - vpls fec129 local-id 10.4.4.4 remote-id 203.0.3.3 neighbor 203.0.3.3 Flow Label Transmit: No, Flow Label Receive: No 203.0.2.2 rmt Up Sep 19 09:59:52 2017 1 Remote PE: 203.0.2.2, Negotiated control-word: No Incoming label: 262154, Outgoing label: 262157 Negotiated PW status TLV: No Local interface: lsi.1048846, Status: Up, Encapsulation: ETHERNET Description: Intf - vpls fec129 local-id 10.4.4.4 remote-id 203.0.2.2 neighbor 203.0.2.2 Flow Label Transmit: No, Flow Label Receive: No 203.0.1.1 rmt Up Sep 19 09:59:48 2017 1 Remote PE: 203.0.1.1, Negotiated control-word: No Incoming label: 262156, Outgoing label: 262157 Negotiated PW status TLV: No Local interface: lsi.1048845, Status: Up, Encapsulation: ETHERNET Description: Intf - vpls fec129 local-id 10.4.4.4 remote-id 203.0.1.1 neighbor 203.0.1.1 Flow Label Transmit: No, Flow Label Receive: No LDP-VPLS State Mesh-group connections: MG1 Neighbor Type St Time last up # Up trans 203.0.6.6(vpls-id 1) rmt Up Sep 17 19:17:11 2017 1 Remote PE: 203.0.6.6, Negotiated control-word: No Incoming label: 262423, Outgoing label: 262145 Negotiated PW status TLV: No Local interface: lsi.1049859, Status: Up, Encapsulation: ETHERNET Description: Intf - vpls bgp-vpls neighbor 203.0.6.6 vpls-id 1 Flow Label Transmit: No, Flow Label Receive: No 203.0.7.7(vpls-id 1) rmt Up Sep 17 19:17:04 2017 1 Remote PE: 203.0.7.7, Negotiated control-word: No Incoming label: 262424, Outgoing label: 262145 Negotiated PW status TLV: No Local interface: lsi.1049857, Status: Up, Encapsulation: ETHERNET Description: Intf - vpls bgp-vpls neighbor 203.0.7.7 vpls-id 1 Flow Label Transmit: No, Flow Label Receive: No Mesh-group connections: MG2 Neighbor Type St Time last up # Up trans 203.0.5.5(vpls-id 1) rmt Up Sep 17 19:17:00 2017 1 Remote PE: 203.0.5.5, Negotiated control-word: No Incoming label: 262425, Outgoing label: 299872 Negotiated PW status TLV: No Local interface: lsi.1049856, Status: Up, Encapsulation: ETHERNET Description: Intf - vpls bgp-vpls neighbor 203.0.5.5 vpls-id 1 Flow Label Transmit: No, Flow Label Receive: No
显示 VPLS 连接(具有多个伪线)
user@host> show vpls connections Layer-2 VPN connections: Legend for connection status (St) EI -- encapsulation invalid NC -- interface encapsulation not CCC/TCC/VPLS EM -- encapsulation mismatch WE -- interface and instance encaps not same VC-Dn -- Virtual circuit down NP -- interface hardware not present CM -- control-word mismatch -> -- only outbound connection is up CN -- circuit not provisioned <- -- only inbound connection is up OR -- out of range Up -- operational OL -- no outgoing label Dn -- down LD -- local site signaled down CF -- call admission control failure RD -- remote site signaled down SC -- local and remote site ID collision LN -- local site not designated LM -- local site ID not minimum designated RN -- remote site not designated RM -- remote site ID not minimum designated XX -- unknown connection status IL -- no incoming label MM -- MTU mismatch MI -- Mesh-Group ID not available BK -- Backup connection ST -- Standby connection PF -- Profile parse failure PB -- Profile busy RS -- remote site standby SN -- Static Neighbor LB -- Local site not best-site RB -- Remote site not best-site VM -- VLAN ID mismatch Legend for interface status Up -- operational Dn -- down Instance: vpls VPLS-id: 100 Mesh-group connections: __ves__ Neighbor Type St Time last up # Up trans 10.255.114.3 (vpls-id 100) rmt Up Apr 11 23:38:38 2013 1 Remote PE: 10.255.114.3, Negotiated control-word: No Incoming label: 262145, Outgoing label: 262145 Negotiated PW status TLV: No Local interface: lsi.1049090, Status: Up, Encapsulation: ETHERNET Description: Intf - vpls h-vpls neighbor 10.255.114.3 vpls-id 100 Mesh-group connections: spokes Neighbor Type St Time last up # Up trans 10.255.114.4 (vpls-id 200) rmt Up Apr 11 23:39:25 2013 1 Remote PE: 10.255.114.4, Negotiated control-word: No Incoming label: 262148, Outgoing label: 304224 Negotiated PW status TLV: Yes local PW status code: 0x00000000, Neighbor PW status code: 0x00000000 Local interface: lsi.1049091, Status: Up, Encapsulation: ETHERNET Description: Intf - vpls h-vpls neighbor 10.255.114.4 vpls-id 200 10.255.114.4 (vpls-id 201) rmt Up Apr 11 23:39:25 2013 1 Remote PE: 10.255.114.4, Negotiated control-word: No Incoming label: 262149, Outgoing label: 304225 Negotiated PW status TLV: Yes local PW status code: 0x00000000, Neighbor PW status code: 0x00000000 Local interface: lsi.1049096, Status: Up, Encapsulation: ETHERNET Description: Intf - vpls h-vpls neighbor 10.255.114.4 vpls-id 201
显示 VPLS 广泛连接(静态 VPLS 邻居)
user@host> show vpls connections extensive instance red Layer-2 VPN connections: Legend for connection status (St) EI -- encapsulation invalid NC -- interface encapsulation not CCC/TCC/VPLS EM -- encapsulation mismatch WE -- interface and instance encaps not same VC-Dn -- Virtual circuit down NP -- interface hardware not present CM -- control-word mismatch -> -- only outbound connection is up CN -- circuit not provisioned <- -- only inbound connection is up OR -- out of range Up -- operational OL -- no outgoing label Dn -- down LD -- local site signaled down CF -- call admission control failure RD -- remote site signaled down SC -- local and remote site ID collision LN -- local site not designated LM -- local site ID not minimum designated RN -- remote site not designated RM -- remote site ID not minimum designated XX -- unn connection status IL -- no incoming label MM -- MTU mismatch MI -- Mesh-Group ID not available BK -- Backup connection ST -- Standby connection PF -- Profile parse failure PB -- Profile busy RS -- remote site standby SN -- Static Neighbor Legend for interface status Up -- operational Dn -- down Instance: static VPLS-id: 1 Number of local interfaces: 1 Number of local interfaces up: 1 ge-0/0/5.0 lsi.1049344 Intf - vpls static neighbor 10.255.114.3 vpls-id 1 Neighbor Type St Time last up # Up trans 10.255.114.3(vpls-id 1)(SN) rmt Up Mar 4 08:48:41 2010 1 Remote PE: 10.255.114.3, Negotiated control-word: No Incoming label: 29696, Outgoing label: 29697 Negotiated PW status TLV: No Local interface: lsi.1049344, Status: Up, Encapsulation: ETHERNET Description: Intf - vpls static neighbor 10.255.114.3 vpls-id 1 Connection History: Mar 4 08:48:41 2010 status update timer Mar 4 08:48:41 2010 PE route changed Mar 4 08:48:41 2010 Out lbl Update 29697 Mar 4 08:48:41 2010 In lbl Update 29696 Mar 4 08:48:41 2010 loc intf up lsi.1049344
命令名称
user@PE1> show vpls connections extensive (Multihoming with FEC 129) Layer-2 VPN connections: Legend for connection status (St) EI -- encapsulation invalid NC -- interface encapsulation not CCC/TCC/VPLS EM -- encapsulation mismatch WE -- interface and instance encaps not same VC-Dn -- Virtual circuit down NP -- interface hardware not present CM -- control-word mismatch -> -- only outbound connection is up CN -- circuit not provisioned <- -- only inbound connection is up OR -- out of range Up -- operational OL -- no outgoing label Dn -- down LD -- local site signaled down CF -- call admission control failure RD -- remote site signaled down SC -- local and remote site ID collision LN -- local site not designated LM -- local site ID not minimum designated RN -- remote site not designated RM -- remote site ID not minimum designated XX -- unknown connection status IL -- no incoming label MM -- MTU mismatch MI -- Mesh-Group ID not available BK -- Backup connection ST -- Standby connection PF -- Profile parse failure PB -- Profile busy RS -- remote site standby SN -- Static Neighbor LB -- Local site not best-site RB -- Remote site not best-site VM -- VLAN ID mismatch Legend for interface status Up -- operational Dn -- down Instance: green L2vpn-id: 100:100 Local-id: 192.0.2.2 Number of local interfaces: 2 Number of local interfaces up: 2 ge-0/3/1.0 ge-0/3/3.0 lsi.101711873 Intf - vpls green local-id 192.0.2.2 remote-id 192.0.2.4 neighbor 192.0.2.4 Remote-id Type St Time last up # Up trans 192.0.2.4 rmt Up Jan 31 13:49:52 2012 1 Remote PE: 192.0.2.4, Negotiated control-word: No Incoming label: 262146, Outgoing label: 262146 Local interface: lsi.101711873, Status: Up, Encapsulation: ETHERNET Description: Intf - vpls green local-id 192.0.2.2 remote-id 192.0.2.4 neighbor 192.0.2.4 Connection History: Jan 31 13:49:52 2012 status update timer Jan 31 13:49:52 2012 PE route changed Jan 31 13:49:52 2012 Out lbl Update 262146 Jan 31 13:49:52 2012 In lbl Update 262146 Jan 31 13:49:52 2012 loc intf up lsi.101711873 Multi-home: Local-site Id Pref State test 1 100 Up Number of interfaces: 1 Number of interfaces up: 1 ge-0/3/1.0 Received multi-homing advertisements: Remote-PE Pref flag Description 192.0.2.4 100 0x0
发布信息
在 Junos OS 7.4 版之前引入的命令。
instance-history
Junos OS 12.3R2 版中引入的选项。