Inter-AS Pseudowires-Tunnel Stitching Concepts(伪线缝补):
其中红色的伪线用于“缝补”黄色两个伪线的连接(意味着两个 Core 不能引入任何外部路由)
1、AS 100 和 AS 200 运行 IGP
2、AS 100 和 AS 200 内运行 LDP
3、R4 / R5 建立 IPv4 eBGP 邻居关系并通告各自的 Loopback 0
4、建立如上述拓扑图中的三段伪线
r4(config)#l2 vfi T5 point-to-point (vfi 相当于二层的 vrf)
r4(config-vfi)#neighbor 2.2.2.2 100 encapsulation mpls
r4(config-vfi)#neighbor 5.5.5.5 45 encapsulation mpls(其中红色的伪线 45 主要用于连接 100 和 200 伪线)
r5(config)#l2 vfi T4 point-to-point
r5(config-vfi)#neighbor 7.7.7.7 200 encapsulation mpls
r5(config-vfi)#neighbor 4.4.4.4 45 encapsulation mpls
r2(config-if)#xconnect 7.7.7.7 100 encapsulation mpls
r7(config-if)#xconnect 2.2.2.2 100 encapsulation mpls
5、r4 和 r5 之间运行 IGP & LDP 或者 IPv4-eBGP 之间 Send-label(如果不 send-label 伪线是 up 不起来的)
r4#show vfi
r4#show vfi
Legend: RT=Route-target, S=Split-horizon, Y=Yes, N=No
VFI name: T5, type: point-to-point
Neighbors connected via pseudowires:
Peer Address VC ID
5.5.5.5 45
2.2.2.2 100
r2#sh mpls l2transport vc 100 detail
Local interface: Et0/1 up, line protocol up, Ethernet up
Destination address: 4.4.4.4, VC ID: 100, VC status: up
Output interface: Et0/0.23, imposed label stack {3001 4005}
Preferred path: not configured
Default path: active
Next hop: 23.1.1.3
Create time: 00:35:11, last status change time: 00:10:12
Signaling protocol: LDP, peer 4.4.4.4:0 up
Targeted Hello: 2.2.2.2(LDP Id) -> 4.4.4.4
Status TLV support (local/remote) : enabled/supported
Label/status state machine : established, LruRru
Last local dataplane status rcvd: no fault
Last local SSS circuit status rcvd: no fault
Last local SSS circuit status sent: no fault
Last local LDP TLV status sent: no fault
Last remote LDP TLV status rcvd: no fault
MPLS VC labels: local 2003, remote 4005
Group ID: local 0, remote 0
MTU: local 1500, remote 1500
Remote interface description:
Sequencing: receive disabled, send disabled
VC statistics:
packet totals: receive 239, send 241
byte totals: receive 23677, send 31027
--More--
r4#show mpls forwarding-table
Local Outgoing Prefix Bytes Label Outgoing Next Hop
Label Label or Tunnel Id Switched interface
4000 3000 2.2.2.2/32 0 Et0/0.34 34.1.1.3
4001 Pop Label 3.3.3.3/32 0 Et0/0.34 34.1.1.3
4002 Pop Label 23.1.1.0/24 0 Et0/0.34 34.1.1.3
4003 Pop Label 45.1.1.5/32 0 Et0/1 45.1.1.5
4004 No Label l2ckt(45) 9157 Et0/0.34 34.1.1.3
4005 No Label l2ckt(100) 29401 Et0/1 45.1.1.5
Data-Plane 数据发送过程:
r1 --> r2 : 3001 | 4005 | 10.1.1.8
r2 --> r3 : pop | 4005 | 10.1.1.8
r3 --> r4 : No Label | 10.1.1.8
r4 --> r5 : ----------------------(相当于交换机直接传输)
r5 --> r6 : 6001 | 7003 | 10.1.1.8
r6 --> r7 : pop | 7003 | 10.1.1.8
r7 --> r8 : No Label | 10.1.1.8