「MPLS-TE」- MPLS TE

基础实验

MPLS TE 要求 IGP 同个区域(其要进行算路,需要全网路由,所以不能使用多区域)

基本 IP 互通配置

WIP

配置 OSPF 协议

WIP
mpls lsr-id
mpls

mpls te

mpls te rsvp-te

ospf router-id x.x.x.x

opaque-capability enable # 通过不透明 LSA 来传递信息

area …
network …

mpls te

interface …

mpls

mpls te

mpls te rsvp-te

display ospf mpls-te

通过 ISIS 建立:

isis

network-entity …

is-level level-2 # 或 1

is-name Foo

cost-style wide # 可选

traffic-eng level-2

建立隧道

display mpls lsp

interface Tunnel

ip address unnumbered interface lookback0

destination <remote-ip-address>

tunnel-protocol mpls te

mpls te tunnel-id 1

mpls te signale-protocol rsvp-te

mpls te record-route label # 可选,用于 display mpls te tunnel path 显示路径

mple te commit

display mpls te tunnel path

查看隧道

display mpls tunnel
display mpls tunnel verbose
display mpls te tunnel path
tracert lsp te Tunnel 0/0/1
display ospf mpls-te …
display isis traffic-eng …
mpls te reoptimiza

引导流量

通过静态路由将流量指向 Tunnel,并通过 preference 9 来提升优先级;

MPLS TE 属性相关实验

WIP !! MPLS TE 实验:16、MPLS TE 属性相关实验

TE Metrics

WIP

Bandwidth

mpls

mpls te cspf

Interface …

mpls te bandwidth max-reserved-bandwidth …

mpls te bandwidth bc0 …

display ospf mpls te

Interface Tunnel

mpls te bandwidth ct0

Explicit Path

explicit-path …

next-hop …

next-hop …

Interface Tunnel

mpls te path explicit-path

Admin Group and Affinity

Interface GE …

mpls te link admin group …

display ospf mpls te

Interface Tunnel …

mpls te affinity property … mask …

mpls te commit

tracert mpls te Tunnel …

MPLS TE 显式路径实验

WIP !! MPLS TE 实验:18、MPLS TE 显式路径实验

Explicit Path

explicit-path …

next-hop … include …

next-hop … exclude …

list hop

Interface Tunnel

mpls te path explicit-path

mpls te tie-breaking …

mpls te commit

MPLS TE 流量转发实验

WIP !! MPLS TE 实验:21、MPLS TE 流量转发实验

转发捷径

Interface Tunnel …

mpls te igp shortcut ospf

mpls te igp metric …

ospf enable area 0

mpls te commit

ospf

enable traffic-adjustment

转发邻接

Interface Tunnel …

mpls te igp adver ..

ospf

enable traffic-adjustment adver …

注,在华为中,需要创建双向的隧道,但是 IGP 通过后,才能正常选路;

基于 MPLS TE 的 MPLS VPN

ip vpn-instance

rd

rt

Interface <TO-CE>

ip bind vpn-instance

bgp

peer …

ipv4-family vpnv4

ipv4-family vpn-instance <TO-CE>
network ….

通过将流量引导到 MPLS(如此,在进行路由迭代时,才会使用 Tunnle 接口):

# 配置隧道策略 policy1,选择 CR-LSP 进行流量转发,并指定负载分担的隧道条数为 1:

[PE1] tunnel-policy policy1
[PE1-tunnel-policy-policy1] tunnel select-seq cr-lsp load-balance-number 1

# 在 PE 上配置 L3VPN 接入,并应用隧道策略:

[PE1] ip vpn-instance vpn1
[PE1-vpn-instance-vpn1] ipv4-family
[PE1-vpn-instance-vpn1-af-ipv4] tnl-policy policy1

当存在多条隧道时,为用户选择不同隧道

Inteface Tunnel x/x/x
Inteface Tunnel y/y/y

tunnel-policy m

tunnel binding desktionation x.x.x.x te Tunnel x/x/x

tunnel-policy n

tunnel binding desktionation x.x.x.x te Tunnel y/y/y

其他实验

WIP !! MPLS TE 实验:24、MPLS TE 可靠性实验(HSB、FRR)