「HUAWEI-ENSP」- 实验学习:L3VPN over SRv6 BE | Intra-AS

实验拓扑

实验需求

实验过程

IPv4 over IPv6

ip vpn-inst

rt

rd

Intef Lo

ip bind vpn-inft

bgp

peer <ipv6>

ipv4-family vpnv4
peer … enable

peer … prefix-sid

ipv4-family vpn-inst xxxx
import …

bgp

ipv4-family vpnv4
peer … prefix-sid //
ipv4-family vpn-inst xxxx
seg-rt ipv6 localtor Foo // Foo 是预先定义的 Locator,一关联到特定的 SRv6 上。注意,该处分配的 SID 将在 Foo 范围内,所以才能路由;

seg-rt ipv6 best-effor // 使用 BE 进行转发;

dis bgp vpnv4 all peer

// 问题:现在 BGP Nexthop 是 Peer <ipv6> 地址,但是路由递归后是无法转发的,VPNv4 路由中显示无效;
// 分析:原因是 Nexthop 是 Peer <ipv6> 地址,而此地址没有封装方法;
// 方案:BGP 传递路由时,需要为路由分配 SRv6 SID(END.DT4),该 SID 用于标识某个 VPN Instance,以将数据转发到特定 VPN Instance 中。

dis bgp vpnv4 all peer routing-table x.x.x.

// 关注 Prefix-sid 字段,而非 SR MPLS 中的 Label 字段

dis seg-rt ipv6 loc-sid end-dt4 forwarding