WOLF-LAB沃尔夫网络实验室中国网络精英的发源地!
24小时咨询热线:173-1636-2402

技术文档

Technical documentation

您当前位置: 首页 > 技术文档 > 详情

HCIE Datacom培训考试学习-SR(Segment Routing)-MPLS L3 VPN

发布日期:2023-06-19 浏览次数:630 来源:WOLFLAB

HCIE Datacom培训考试学习-SR(Segment Routing)-MPLS L3 VPN

WOLFLAB网络技术实验室1.jpg

WOLFLAB官方微信:17316362402,关注【WOLF-LAB】网络技术实验室,华为认证HCIE培训Datacom课程循环开班,联系网站客服预约免费试听!

实验:实现192.168.1.0/24能够访问192.168.2.0/24

图片1(4).png


第一步:完成AS123的SR-MPLS BE的搭建

 

第二步:配置CX1和CX3的BGP VPNV4的邻居关系

[CX1-bgp]dis this 

#

bgp 123

 undo default ipv4-unicast

 peer 3.3.3.3 as-number 123

 peer 3.3.3.3 connect-interface LoopBack0

 #

 ipv4-family unicast

  undo synchronization

  undo peer 3.3.3.3 enable

 #

 ipv4-family vpnv4

  policy vpn-target

  peer 3.3.3.3 enable

 

[CE3-bgp]dis this 

#

bgp 123

 undo default ipv4-unicast

 peer 1.1.1.1 as-number 123

 peer 1.1.1.1 connect-interface LoopBack0

 #

 ipv4-family unicast

  undo synchronization

  undo peer 1.1.1.1 enable

 #

 ipv4-family vpnv4

  policy vpn-target

  peer 1.1.1.1 enable

图片1(5).png

第三步:配置PE和CE的接入协议

图片1(7).png

图片1(8).png

华为认证HCIE培训Datacom课程-流量走向:

第一步:AR1发送,数据包到了CX1的VRF A1中

icmp request:

sip:192.168.1.1 dip:192.168.2.1

 

第二步:CX1查看目的网段路由的详细信息

[CX1]dis ip routing-table vpn-instance A1 192.168.2.0 verbose 

Route Flags: R - relay, D - download to fib, T - to vpn-instance, B - black hole

 route

--------------------------------------

Routing Table : A1

Summary Count : 1

 

Destination: 192.168.2.0/24      

     Protocol: IBGP               Process ID: 0              

   Preference: 255                      Cost: 0              

      NextHop: 3.3.3.3             Neighbour: 3.3.3.3

        State: Active Adv Relied         Age: 00h01m15s           

          Tag: 0                    Priority: low            

        Label: 48120                 QoSInfo: 0x0           

   IndirectID: 0x100007E            Instance:                                 

 RelayNextHop: 1.1.12.2            Interface: Ethernet1/0/0

     TunnelID: 0x000000002900000083 Flags: RD  

 

[CX1]dis tunnel-info all 

Tunnel ID            Type                Destination                            

 Status

-------------------------------------

0x000000002900000082 srbe-lsp            2.2.2.2                                

 UP  

0x000000002900000083 srbe-lsp            3.3.3.3

 

[CX1]dis segment-routing prefix mpls forwarding 

 

                   Segment Routing Prefix MPLS Forwarding Information

-----------------------------------

             Role : I-Ingress, T-Transit, E-Egress, I&T-Ingress And Transit

 

Prefix             Label      OutLabel   Interface         NextHop          Role

  MPLSMtu   Mtu     State          

------------------------------------

1.1.1.1/32         16001      NULL       Loop0             127.0.0.1        E   

  ---       1500    Active          

2.2.2.2/32         16002      3          Eth1/0/0          1.1.12.2         I&T 

  ---       1500    Active          

3.3.3.3/32         16003      17003      Eth1/0/0          1.1.12.2         I&T 

  ---       1500    Active

 

CX1为该数据包打上私网标签,和SR-MPLS BE 分配的公网标签:

注意:CX1查看该路由的详细信息的TunnelID跟隧道的TunnelID是一样的,表示我使用哪个隧道

icmp request:

sip:192.168.1.1 dip:192.168.2.1 | MP-BGP:48120 | SR-MPLS BE:17003

图片1(9).png

第三步:CX2根据标签转发信息表转发报文

[CX2]dis segment-routing prefix mpls forwarding 

 

                   Segment Routing Prefix MPLS Forwarding Information

 ----------------------------

             Role : I-Ingress, T-Transit, E-Egress, I&T-Ingress And Transit

 

Prefix             Label      OutLabel   Interface         NextHop          Role

  MPLSMtu   Mtu     State          

-----------------------------------

1.1.1.1/32         17001      3          Eth1/0/0          1.1.12.1         I&T 

  ---       1500    Active          

2.2.2.2/32         17002      NULL       Loop0             127.0.0.1        E   

  ---       1500    Active          

3.3.3.3/32         17003      3          Eth1/0/1          1.1.23.3         I&T 

  ---       1500    Active

 

第四步:CX3根据携带的私网标签查找对应的VRF进行报文的转发

[CX3]dis mpls lsp 

---------------------------------

                 LSP Information: BGP LSP

---------------------------------

FEC                In/Out Label    In/Out IF                      Vrf Name

192.168.2.0/24     48120/NULL      -/-                             A2


https://www.wolf-lab.com/

WOLFLAB官方微信:17316362402

WOLFLAB官方QQ:2569790740

我们提供CCNA|CCNP|EI CCIE;HCIA|HCIP|HCIE Datacom|VMware等培训课程

返回目录
在线咨询