L2私有專用網 僞線縫補

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


 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章