配置E2E SR-MPLS TE隧道示例(使用显式路径)
配置跨域E2E SR-MPLS TE隧道,为跨域VPN等业务提供安全数据通道。
组网需求
如图2-20所示,PE1和ASBR1处于AS 100,PE2和ASBR2处于AS 200,ASBR1与ASBR2之间通过两条物理链路直连。PE1要建立一条到PE2的双向E2E隧道,路径的生成和数据的转发采用SR(segment routing)协议。在PE1到PE2方向,PE1为路径的Ingress节点,PE2为Egress节点;在PE2到PE1方向,PE2为路径的Ingress节点,PE1为Egress节点。
配置思路
采用如下的思路配置E2E SR-MPLS TE手动隧道:
在AS 100和AS 200内分别配置域内SR-MPLS TE隧道。同时为SR-MPLS TE隧道配置Binding SID。
在ASBR1和ASBR2之间配置EBGP邻居,使能BGP EPE和BGP LS,生成BGP Peer SID。
在PE1和PE2节点创建E2E SR-MPLS TE隧道接口,指定隧道的IP地址、隧道协议、以及目的地址等,路径计算采用显式路径。
数据准备
为完成此配置例,需准备如下的数据:
各接口的IP地址,如图2-20所示。
IS-IS的进程号为1,IS-IS级别为Level-2,各节点的IS-IS System ID分别是10.0000.0000.0001.00,10.0000.0000.0002.00,10.0000.0000.0003.00,10.0000.0000.0004.00。
PE1和ASBR1处于AS 100,PE2和ASBR2处于AS 200。
AS 100和AS 200内域内SR-MPLS TE隧道接口名称是tunnel 1和tunnel 2。PE1到PE2的E2E SR-MPLS TE隧道接口名称是tunnel 3,PE2到PE1的E2E SR-MPLS TE隧道接口名称也是tunnel 3。
操作步骤
- 配置各接口的IP地址
配置各接口的IP地址和掩码,具体配置过程见配置文件。
- 在AS 100域内配置SR-MPLS TE隧道
# 配置PE1。
[~PE1] mpls lsr-id 1.1.1.1
[~PE1] mpls
[*PE1-mpls] mpls te
[*PE1-mpls] quit
[*PE1] segment-routing
[*PE1-segment-routing] quit
[*PE1] isis 1
[*PE1-isis-1] is-level level-2
[*PE1-isis-1] network-entity 10.0000.0000.0001.00
[*PE1-isis-1] cost-style wide
[*PE1-isis-1] traffic-eng level-2
[*PE1-isis-1] segment-routing mpls
[*PE1-isis-1] quit
[*PE1] commit
[*PE1] interface loopback 1
[*PE1-LoopBack1] isis enable 1
[*PE1-LoopBack1] isis prefix-sid absolute 16100
[*PE1-LoopBack1] quit
[*PE1] interface gigabitethernet0/1/0
[*PE1-GigabitEthernet0/1/0] isis enable 1
[*PE1-GigabitEthernet0/1/0] mpls
[*PE1-GigabitEthernet0/1/0] mpls te
[*PE1-GigabitEthernet0/1/0] quit
[*PE1] commit
[~PE1] explicit-path path2asbr1
[*PE1-explicit-path-path2asbr1] next sid label 330102 type adjacency
[*PE1-explicit-path-path2asbr1] quit
[*PE1] interface tunnel1
[*PE1-Tunnel1] ip address unnumbered interface loopback 1
[*PE1-Tunnel1] tunnel-protocol mpls te
[*PE1-Tunnel1] destination 2.2.2.2
[*PE1-Tunnel1] mpls te tunnel-id 1
[*PE1-Tunnel1] mpls te signal-protocol segment-routing
[*PE1-Tunnel1] mpls te path explicit-path path2asbr1
[*PE1-Tunnel1] commit
[~PE1-Tunnel1] quit
上述步骤中,next sid label命令使用的是PE1–>ASBR1的邻接标签,通过IS-IS协议动态生成。用户在配置之前可以通过display segment-routing adjacency mpls forwarding命令查询获得,例如:
[~PE1] display segment-routing adjacency mpls forwarding Segment Routing Adjacency MPLS Forwarding Information Label Interface NextHop Type MPLSMtu Mtu ----------------------------------------------------------------------------- 330102 GE0/1/0 10.0.1.2 ISIS-V4 --- 1500 Total information(s): 1
# 配置ASBR1。
[~ASBR1] mpls lsr-id 2.2.2.2
[~ASBR1] mpls
[*ASBR1-mpls] mpls te
[*ASBR1-mpls] quit
[*ASBR1] segment-routing
[*ASBR1-segment-routing] quit
[*ASBR1] isis 1
[*ASBR1-isis-1] is-level level-2
[*ASBR1-isis-1] network-entity 10.0000.0000.0002.00
[*ASBR1-isis-1] cost-style wide
[*ASBR1-isis-1] traffic-eng level-2
[*ASBR1-isis-1] segment-routing mpls
[*ASBR1-isis-1] quit
[*ASBR1] commit
[*ASBR1] interface loopback 1
[*ASBR1-LoopBack1] isis enable 1
[*ASBR1-LoopBack1] isis prefix-sid absolute 16200
[*ASBR1-LoopBack1] quit
[*ASBR1] interface gigabitethernet0/3/0
[*ASBR1-GigabitEthernet0/3/0] isis enable 1
[*ASBR1-GigabitEthernet0/3/0] mpls
[*ASBR1-GigabitEthernet0/3/0] mpls te
[*ASBR1-GigabitEthernet0/3/0] quit
[*ASBR1] commit
[~ASBR1] explicit-path path2pe1
[*ASBR1-explicit-path-path2pe1] next sid label 330201 type adjacency
[*ASBR1-explicit-path-path2pe1] quit
[*ASBR1] interface tunnel1
[*ASBR1-Tunnel1] ip address unnumbered interface loopback 1
[*ASBR1-Tunnel1] tunnel-protocol mpls te
[*ASBR1-Tunnel1] destination 1.1.1.1
[*ASBR1-Tunnel1] mpls te tunnel-id 1
[*ASBR1-Tunnel1] mpls te signal-protocol segment-routing
[*ASBR1-Tunnel1] mpls te path explicit-path path2pe1
[*ASBR1-Tunnel1] commit
[~ASBR1-Tunnel1] quit
上述步骤中,next sid label命令使用的是ASBR1–>PE1的邻接标签,通过IS-IS协议动态生成。用户在配置之前可以通过display segment-routing adjacency mpls forwarding命令查询获得,例如:
[~ASBR1] display segment-routing adjacency mpls forwarding Segment Routing Adjacency MPLS Forwarding Information Label Interface NextHop Type MPLSMtu Mtu ----------------------------------------------------------------------------- 330201 GE0/3/0 10.0.1.1 ISIS-V4 --- 1500 Total information(s): 1
- 在AS 200域内配置SR-MPLS TE隧道
# 配置ASBR2。
[~ASBR2] mpls lsr-id 3.3.3.3
[~ASBR2] mpls
[*ASBR2-mpls] mpls te
[*ASBR2-mpls] quit
[*ASBR2] segment-routing
[*ASBR2-segment-routing] quit
[*ASBR2] isis 1
[*ASBR2-isis-1] is-level level-2
[*ASBR2-isis-1] network-entity 10.0000.0000.0002.00
[*ASBR2-isis-1] cost-style wide
[*ASBR2-isis-1] traffic-eng level-2
[*ASBR2-isis-1] segment-routing mpls
[*ASBR2-isis-1] quit
[*ASBR2] commit
[*ASBR2] interface loopback 1
[*ASBR2-LoopBack1] isis enable 1
[*ASBR2-LoopBack1] isis prefix-sid absolute 16300
[*ASBR2-LoopBack1] quit
[*ASBR2] interface gigabitethernet0/3/0
[*ASBR2-GigabitEthernet0/3/0] isis enable 1
[*ASBR2-GigabitEthernet0/3/0] mpls
[*ASBR2-GigabitEthernet0/3/0] mpls te
[*ASBR2-GigabitEthernet0/3/0] quit
[*ASBR2] commit
[~ASBR2] explicit-path path2pe2
[*ASBR2-explicit-path-path2pe2] next sid label 330304 type adjacency
[*ASBR2-explicit-path-path2pe2] quit
[*ASBR2] interface tunnel2
[*ASBR2-Tunnel2] ip address unnumbered interface loopback 1
[*ASBR2-Tunnel2] tunnel-protocol mpls te
[*ASBR2-Tunnel2] destination 4.4.4.4
[*ASBR2-Tunnel2] mpls te tunnel-id 1
[*ASBR2-Tunnel2] mpls te signal-protocol segment-routing
[*ASBR2-Tunnel2] mpls te path explicit-path path2pe2
[*ASBR2-Tunnel2] commit
[~ASBR2-Tunnel2] quit
上述步骤中,next sid label命令使用的是ASBR2–>PE2的邻接标签,通过IS-IS协议动态生成。用户在配置之前可以通过display segment-routing adjacency mpls forwarding命令查询获得,例如:
[~ASBR2] display segment-routing adjacency mpls forwarding Segment Routing Adjacency MPLS Forwarding Information Label Interface NextHop Type MPLSMtu Mtu ----------------------------------------------------------------------------- 330304 GE0/3/0 10.9.1.1 ISIS-V4 --- 1500 Total information(s): 1
# 配置PE2。
[~PE2] mpls lsr-id 4.4.4.4
[~PE2] mpls
[*PE2-mpls] mpls te
[*PE2-mpls] quit
[*PE2] segment-routing
[*PE2-segment-routing] quit
[*PE2] isis 1
[*PE2-isis-1] is-level level-2
[*PE2-isis-1] network-entity 10.0000.0000.0001.00
[*PE2-isis-1] cost-style wide
[*PE2-isis-1] traffic-eng level-2
[*PE2-isis-1] segment-routing mpls
[*PE2-isis-1] quit
[*PE2] commit
[*PE2] interface loopback 1
[*PE2-LoopBack1] isis enable 1
[*PE2-LoopBack1] isis prefix-sid absolute 16400
[*PE2-LoopBack1] quit
[*PE2] interface gigabitethernet0/1/0
[*PE2-GigabitEthernet0/1/0] isis enable 1
[*PE2-GigabitEthernet0/1/0] mpls
[*PE2-GigabitEthernet0/1/0] mpls te
[*PE2-GigabitEthernet0/1/0] quit
[*PE2] commit
[~PE2] explicit-path path2asbr2
[*PE2-explicit-path-path2asbr2] next sid label 330403 type adjacency
[*PE2-explicit-path-path2asbr2] quit
[*PE2] interface tunnel2
[*PE2-Tunnel2] ip address unnumbered interface loopback 1
[*PE2-Tunnel2] tunnel-protocol mpls te
[*PE2-Tunnel2] destination 3.3.3.3
[*PE2-Tunnel2] mpls te tunnel-id 1
[*PE2-Tunnel2] mpls te signal-protocol segment-routing
[*PE2-Tunnel2] mpls te path explicit-path path2asbr2
[*PE2-Tunnel2] commit
[~PE2-Tunnel2] quit
上述步骤中,next sid label命令使用的是PE2–>ASBR2的邻接标签,通过IS-IS协议动态生成。用户在配置之前可以通过display segment-routing adjacency mpls forwarding命令查询获得,例如:
[~PE2] display segment-routing adjacency mpls forwarding Segment Routing Adjacency MPLS Forwarding Information Label Interface NextHop Type MPLSMtu Mtu ----------------------------------------------------------------------------- 330403 GE0/1/0 10.9.1.1 ISIS-V4 --- 1500 Total information(s): 1
- 在ASBR间建立EBGP邻居,同时使能BGP EPE和BGP LS功能
本例使用Loopback接口建立多跳EBGP邻居,在此之前需要保证ASBR1和ASBR2的Loopback接口之间可以路由互通。
当前BGP EPE仅支持EBGP邻居场景,对于多跳EBGP邻居,也必须是通过物理链路直连,因为如果存在中间节点,则中间节点上没有BGP Peer SID信息,会造成转发失败。
# 配置ASBR1。
[~ASBR1] ip route-static 3.3.3.3 32 gigabitethernet0/1/0 10.1.1.2 description asbr1toasbr2
[*ASBR1] ip route-static 3.3.3.3 32 gigabitethernet0/2/0 10.2.1.2 description asbr1toasbr2
[*ASBR1] bgp 100
[*ASBR1-bgp] peer 3.3.3.3 as-number 200
[*ASBR1-bgp] peer 3.3.3.3 connect-interface loopback 1
[*ASBR1-bgp] peer 3.3.3.3 ebgp-max-hop 2
[*ASBR1-bgp] peer 3.3.3.3 egress-engineering
[*ASBR1-bgp] link-state-family unicast
[*ASBR1-bgp-af-ls] quit
[*ASBR1-bgp] ipv4-family unicast
[*ASBR1-bgp-af-ipv4] network 2.2.2.2 32
[*ASBR1-bgp-af-ipv4] network 10.1.1.0 24
[*ASBR1-bgp-af-ipv4] network 10.2.1.0 24
[*ASBR1-bgp-af-ipv4] import-route isis 1
[*ASBR1-bgp-af-ipv4] commit
[~ASBR1-bgp-af-ipv4] quit
[~ASBR1-bgp] quit
# 配置ASBR2。
[~ASBR2] ip route-static 2.2.2.2 32 gigabitethernet0/1/0 10.1.1.1 description asbr2toasbr1
[~ASBR2] ip route-static 2.2.2.2 32 gigabitethernet0/2/0 10.2.1.1 description asbr2toasbr1
[*ASBR2] bgp 200
[*ASBR2-bgp] peer 2.2.2.2 as-number 100
[*ASBR2-bgp] peer 2.2.2.2 connect-interface loopback 1
[*ASBR2-bgp] peer 2.2.2.2 ebgp-max-hop 2
[*ASBR2-bgp] peer 2.2.2.2 egress-engineering
[*ASBR1-bgp] link-state-family unicast
[*ASBR1-bgp-af-ls] quit
[*ASBR2-bgp] ipv4-family unicast
[*ASBR2-bgp-af-ipv4] network 3.3.3.3 32
[*ASBR2-bgp-af-ipv4] network 10.1.1.0 24
[*ASBR2-bgp-af-ipv4] network 10.2.1.0 24
[*ASBR2-bgp-af-ipv4] import-route isis 1
[*ASBR2-bgp-af-ipv4] commit
[~ASBR2-bgp-af-ipv4] quit
[~ASBR2-bgp] quit
完成配置后,执行display bgp egress-engineering命令查看BGP EPE信息。例如:
[~ASBR1] display bgp egress-engineering Peer Node : 3.3.3.3 Peer Adj Num : 2 Local ASN : 100 Remote ASN : 200 Local Router Id : 2.2.2.2 Remote Router Id : 3.3.3.3 Local Interface Address : 2.2.2.2 Remote Interface Address : 3.3.3.3 SID Label : 32768 Peer Set SID Label : -- Nexthop : 10.2.1.2 Out interface : GigabitEthernet0/2/0 Nexthop : 10.1.1.2 Out interface : GigabitEthernet0/1/0 Peer Adj : 10.2.1.2 Local ASN : 100 Remote ASN : 200 Local Router Id : 2.2.2.2 Remote Router Id : 3.3.3.3 Interface Identifier : 7 Local Interface Address : 10.2.1.1 Remote Interface Address : 10.2.1.2 SID Label : 32769 Nexthop : 10.2.1.2 Out interface : GigabitEthernet0/2/0 Peer Adj : 10.1.1.2 Local ASN : 100 Remote ASN : 200 Local Router Id : 2.2.2.2 Remote Router Id : 3.3.3.3 Interface Identifier : 6 Local Interface Address : 10.1.1.1 Remote Interface Address : 10.1.1.2 SID Label : 32770 Nexthop : 10.1.1.2 Out interface : GigabitEthernet0/1/0
[~ASBR2] display bgp egress-engineering Peer Node : 2.2.2.2 Peer Adj Num : 2 Local ASN : 200 Remote ASN : 100 Local Router Id : 3.3.3.3 Remote Router Id : 2.2.2.2 Local Interface Address : 3.3.3.3 Remote Interface Address : 2.2.2.2 SID Label : 31768 Peer Set SID Label : -- Nexthop : 10.2.1.1 Out interface : GigabitEthernet0/2/0 Nexthop : 10.1.1.1 Out interface : GigabitEthernet0/1/0 Peer Adj : 10.2.1.1 Local ASN : 200 Remote ASN : 100 Local Router Id : 3.3.3.3 Remote Router Id : 2.2.2.2 Interface Identifier : 7 Local Interface Address : 10.2.1.2 Remote Interface Address : 10.2.1.1 SID Label : 31769 Nexthop : 10.2.1.1 Out interface : GigabitEthernet0/2/0 Peer Adj : 10.1.1.1 Local ASN : 200 Remote ASN : 100 Local Router Id : 3.3.3.3 Remote Router Id : 2.2.2.2 Interface Identifier : 6 Local Interface Address : 10.1.1.2 Remote Interface Address : 10.1.1.1 SID Label : 31770 Nexthop : 10.1.1.1 Out interface : GigabitEthernet0/1/0
- 在AS域内为SR-MPLS TE隧道配置Binding SID
配置PE1到PE2方向。
# 配置PE1。
[~PE1] interface tunnel1
[*PE1-Tunnel1] mpls te binding-sid label 1000
[*PE1-Tunnel1] commit
[~PE1-Tunnel1] quit
# 配置ASBR2。
[~ASBR2] interface tunnel2
[*ASBR2-Tunnel2] mpls te binding-sid label 2000
[*ASBR2-Tunnel2] commit
[~ASBR2-Tunnel2] quit
配置PE2到PE1方向。
# 配置PE2。
[~PE2] interface tunnel2
[*PE2-Tunnel2] mpls te binding-sid label 3000
[*PE2-Tunnel2] commit
[~PE2-Tunnel2] quit
# 配置ASBR1。
[~ASBR1] interface tunnel1
[*ASBR1-Tunnel1] mpls te binding-sid label 4000
[*ASBR1-Tunnel1] commit
[~ASBR1-Tunnel1] quit
- 配置PE1和PE2之间的双向E2E SR-MPLS TE隧道。
配置PE1到PE2方向。
# 配置PE1。其中ASBR间存在多条链路,可以任选其一使用。本例选择链路ASBR1(GigabitEthernet0/1/0) -> ASBR2(GigabitEthernet0/1/0)。
[~PE1] explicit-path path2pe2
[*PE1-explicit-path-path2pe2] next sid label 1000 type binding-sid
[*PE1-explicit-path-path2pe2] next sid label 32770 type adjacency
[*PE1-explicit-path-path2pe2] next sid label 2000 type binding-sid
[*PE1-explicit-path-path2pe2] quit
[*PE1] interface tunnel3
[*PE1-Tunnel3] ip address unnumbered interface loopback 1
[*PE1-Tunnel3] tunnel-protocol mpls te
[*PE1-Tunnel3] destination 4.4.4.4
[*PE1-Tunnel3] mpls te tunnel-id 100
[*PE1-Tunnel3] mpls te signal-protocol segment-routing
[*PE1-Tunnel3] mpls te path explicit-path path2pe2
[*PE1-Tunnel3] commit
[~PE1-Tunnel3] quit
配置PE2到PE1方向。
# 配置PE2。其中ASBR间存在多条链路,可以任选其一使用。本例选择链路ASBR2(GigabitEthernet0/1/0) -> ASBR1(GigabitEthernet0/1/0)。
[~PE2] explicit-path path2pe1
[*PE2-explicit-path-path2pe1] next sid label 3000 type binding-sid
[*PE2-explicit-path-path2pe1] next sid label 31770 type adjacency
[*PE2-explicit-path-path2pe1] next sid label 4000 type binding-sid
[*PE2-explicit-path-path2pe1] quit
[*PE2] interface tunnel3
[*PE2-Tunnel3] ip address unnumbered interface loopback 1
[*PE2-Tunnel3] tunnel-protocol mpls te
[*PE2-Tunnel3] destination 1.1.1.1
[*PE2-Tunnel3] mpls te tunnel-id 400
[*PE2-Tunnel3] mpls te signal-protocol segment-routing
[*PE2-Tunnel3] mpls te path explicit-path path2pe1
[*PE2-Tunnel3] commit
[~PE2-Tunnel3] quit
- 检查配置结果
完成上述配置后,执行display mpls te tunnel-interface tunnel-name命令,可以看到E2E SR-MPLS TE隧道Tunnel3的状态为Up。例如:
# PE1的显示。[~PE1] display mpls te tunnel-interface tunnel3 Tunnel Name : tunnel3 Signalled Tunnel Name: - Tunnel State Desc : CR-LSP is Up Tunnel Attributes : Active LSP : Primary LSP Traffic Switch : - Session ID : 100 Ingress LSR ID : 1.1.1.1 Egress LSR ID: 4.4.4.4 Admin State : UP Oper State : UP Signaling Protocol : Segment-Routing FTid : 2 Tie-Breaking Policy : None Metric Type : None Bfd Cap : Enabled Reopt : Disabled Reopt Freq : - Auto BW : Disabled Threshold : - Current Collected BW: - Auto BW Freq : - Min BW : - Max BW : - Offload : Disabled Offload Freq : - Low Value : - High Value : - Readjust Value : - Offload Explicit Path Name: - Tunnel Group : Primary Interfaces Protected: - Excluded IP Address : - Referred LSP Count : 0 Primary Tunnel : - Pri Tunn Sum : - Backup Tunnel : - Group Status : Up Oam Status : None IPTN InLabel : - Tunnel BFD Status : Down BackUp LSP Type : None BestEffort : Disabled Secondary HopLimit : - BestEffort HopLimit : - Secondary Explicit Path Name: - Secondary Affinity Prop/Mask: 0x0/0x0 BestEffort Affinity Prop/Mask: 0x0/0x0 IsConfigLspConstraint: - Hot-Standby Revertive Mode: Revertive Hot-Standby Overlap-path: Disabled Hot-Standby Switch State: CLEAR Bit Error Detection: Disabled Bit Error Detection Switch Threshold: - Bit Error Detection Resume Threshold: - Ip-Prefix Name : - P2p-Template Name : - PCE Delegate : No LSP Control Status : Local control Entropy Label : None Associated Tunnel Group ID: - Associated Tunnel Group Type: - Auto BW Remain Time : - Reopt Remain Time : - Segment-Routing Remote Label : - Binding Sid : 2001 Reverse Binding Sid : 2002 Primary LSP ID : 1.1.1.1:3 LSP State : UP LSP Type : Primary Setup Priority : 7 Hold Priority: 7 IncludeAll : 0x0 IncludeAny : 0x0 ExcludeAny : 0x0 Affinity Prop/Mask : 0x0/0x0 Resv Style : SE Configured Bandwidth Information: CT0 Bandwidth(Kbit/sec): 0 CT1 Bandwidth(Kbit/sec): 0 CT2 Bandwidth(Kbit/sec): 0 CT3 Bandwidth(Kbit/sec): 0 CT4 Bandwidth(Kbit/sec): 0 CT5 Bandwidth(Kbit/sec): 0 CT6 Bandwidth(Kbit/sec): 0 CT7 Bandwidth(Kbit/sec): 0 Actual Bandwidth Information: CT0 Bandwidth(Kbit/sec): 0 CT1 Bandwidth(Kbit/sec): 0 CT2 Bandwidth(Kbit/sec): 0 CT3 Bandwidth(Kbit/sec): 0 CT4 Bandwidth(Kbit/sec): 0 CT5 Bandwidth(Kbit/sec): 0 CT6 Bandwidth(Kbit/sec): 0 CT7 Bandwidth(Kbit/sec): 0 Explicit Path Name : path2pe2 Hop Limit: - Record Route : Disabled Record Label : Disabled Route Pinning : Disabled FRR Flag : Disabled IdleTime Remain : - BFD Status : DOWN Soft Preemption : Disabled Reroute Flag : Enabled Pce Flag : Normal Path Setup Type : CSPF Create Modify LSP Reason: -
# PE2的显示。[~PE2] display mpls te tunnel-interface tunnel3 Tunnel Name : tunnel3 Signalled Tunnel Name: - Tunnel State Desc : CR-LSP is Up Tunnel Attributes : Active LSP : Primary LSP Traffic Switch : - Session ID : 400 Ingress LSR ID : 4.4.4.4 Egress LSR ID: 1.1.1.1 Admin State : UP Oper State : UP Signaling Protocol : Segment-Routing FTid : 65 Tie-Breaking Policy : None Metric Type : None Bfd Cap : None Reopt : Disabled Reopt Freq : - Auto BW : Disabled Threshold : - Current Collected BW: - Auto BW Freq : - Min BW : - Max BW : - Offload : Disabled Offload Freq : - Low Value : - High Value : - Readjust Value : - Offload Explicit Path Name: - Tunnel Group : Primary Interfaces Protected: - Excluded IP Address : - Referred LSP Count : 0 Primary Tunnel : - Pri Tunn Sum : - Backup Tunnel : - Group Status : Up Oam Status : None IPTN InLabel : - Tunnel BFD Status : - BackUp LSP Type : None BestEffort : Disabled Secondary HopLimit : - BestEffort HopLimit : - Secondary Explicit Path Name: - Secondary Affinity Prop/Mask: 0x0/0x0 BestEffort Affinity Prop/Mask: 0x0/0x0 IsConfigLspConstraint: - Hot-Standby Revertive Mode: Revertive Hot-Standby Overlap-path: Disabled Hot-Standby Switch State: CLEAR Bit Error Detection: Disabled Bit Error Detection Switch Threshold: - Bit Error Detection Resume Threshold: - Ip-Prefix Name : - P2p-Template Name : - PCE Delegate : No LSP Control Status : Local control Entropy Label : None Associated Tunnel Group ID: - Associated Tunnel Group Type: - Auto BW Remain Time : - Reopt Remain Time : - Segment-Routing Remote Label : - Binding Sid : 2002 Reverse Binding Sid : 2001 Primary LSP ID : 4.4.4.4:4 LSP State : UP LSP Type : Primary Setup Priority : 7 Hold Priority: 7 IncludeAll : 0x0 IncludeAny : 0x0 ExcludeAny : 0x0 Affinity Prop/Mask : 0x0/0x0 Resv Style : SE Configured Bandwidth Information: CT0 Bandwidth(Kbit/sec): 0 CT1 Bandwidth(Kbit/sec): 0 CT2 Bandwidth(Kbit/sec): 0 CT3 Bandwidth(Kbit/sec): 0 CT4 Bandwidth(Kbit/sec): 0 CT5 Bandwidth(Kbit/sec): 0 CT6 Bandwidth(Kbit/sec): 0 CT7 Bandwidth(Kbit/sec): 0 Actual Bandwidth Information: CT0 Bandwidth(Kbit/sec): 0 CT1 Bandwidth(Kbit/sec): 0 CT2 Bandwidth(Kbit/sec): 0 CT3 Bandwidth(Kbit/sec): 0 CT4 Bandwidth(Kbit/sec): 0 CT5 Bandwidth(Kbit/sec): 0 CT6 Bandwidth(Kbit/sec): 0 CT7 Bandwidth(Kbit/sec): 0 Explicit Path Name : path2pe1 Hop Limit: - Record Route : Disabled Record Label : Disabled Route Pinning : Disabled FRR Flag : Disabled IdleTime Remain : - BFD Status : - Soft Preemption : Disabled Reroute Flag : Enabled Pce Flag : Normal Path Setup Type : CSPF Create Modify LSP Reason: -
配置文件
PE1的配置文件
# sysname PE1 # mpls lsr-id 1.1.1.1 # mpls mpls te # segment-routing # isis 1 is-level level-2 network-entity 10.0000.0000.0001.00 cost-style wide traffic-eng level-2 segment-routing mpls # interface loopback 1 ip address 1.1.1.1 255.255.255.255 isis enable 1 isis prefix-sid absolute 16100 # interface GigabitEthernet0/1/0 undo shutdown ip address 10.0.1.1 255.255.255.0 isis enable 1 mpls mpls te # explicit-path path2asbr1 next sid label 330102 type adjacency # explicit-path path2pe2 next sid label 1000 type binding-sid next sid label 32770 type adjacency next sid label 2000 type binding-sid # interface tunnel1 ip address unnumbered interface loopback 1 tunnel-protocol mpls te destination 2.2.2.2 mpls te tunnel-id 1 mpls te signal-protocol segment-routing mpls te path explicit-path path2asbr1 mpls te binding-sid label 1000 # interface tunnel3 ip address unnumbered interface loopback 1 tunnel-protocol mpls te destination 4.4.4.4 mpls te tunnel-id 100 mpls te signal-protocol segment-routing mpls te path explicit-path path2pe2 # return #
ASBR1的配置文件
# sysname ASBR1 # mpls lsr-id 2.2.2.2 # mpls mpls te # segment-routing # isis 1 is-level level-2 network-entity 10.0000.0000.0002.00 cost-style wide traffic-eng level-2 segment-routing mpls # interface loopback 1 ip address 2.2.2.2 255.255.255.255 isis enable 1 isis prefix-sid absolute 16200 # interface GigabitEthernet0/1/0 undo shutdown ip address 10.1.1.1 255.255.255.0 mpls mpls te # interface GigabitEthernet0/2/0 undo shutdown ip address 10.2.1.1 255.255.255.0 mpls mpls te # interface GigabitEthernet0/3/0 undo shutdown ip address 10.0.1.2 255.255.255.0 isis enable 1 mpls mpls te # ip route-static 3.3.3.3 32 gigabitethernet0/1/0 10.1.1.2 description asbr1toasbr2 ip route-static 3.3.3.3 32 gigabitethernet0/2/0 10.2.1.2 description asbr1toasbr2 # bgp 100 peer 3.3.3.3 as-number 200 peer 3.3.3.3 connect-interface loopback 1 peer 3.3.3.3 ebgp-max-hop 2 peer 3.3.3.3 egress-engineering ipv4-family unicast network 2.2.2.2 32 network 10.1.1.0 24 network 10.2.1.0 24 import-route isis 1 link-state-family unicast # explicit-path path2pe1 next sid label 330201 type adjacency # interface tunnel1 ip address unnumbered interface loopback 1 tunnel-protocol mpls te destination 1.1.1.1 mpls te tunnel-id 1 mpls te signal-protocol segment-routing mpls te path explicit-path path2pe1 mpls te binding-sid label 4000 # return #
ASBR2的配置文件
# sysname ASBR2 # mpls lsr-id 3.3.3.3 # mpls mpls te # segment-routing # isis 1 is-level level-2 network-entity 10.0000.0000.0003.00 cost-style wide traffic-eng level-2 segment-routing mpls # interface loopback 1 ip address 3.3.3.3 255.255.255.255 isis enable 1 isis prefix-sid absolute 16300 # interface GigabitEthernet0/1/0 undo shutdown ip address 10.1.1.2 255.255.255.0 mpls mpls te # interface GigabitEthernet0/2/0 undo shutdown ip address 10.2.1.2 255.255.255.0 mpls mpls te # interface GigabitEthernet0/3/0 undo shutdown ip address 10.9.1.1 255.255.255.0 isis enable 1 mpls mpls te # ip route-static 2.2.2.2 32 gigabitethernet0/1/0 10.1.1.1 description asbr2toasbr1 ip route-static 2.2.2.2 32 gigabitethernet0/2/0 10.2.1.1 description asbr2toasbr1 # bgp 200 peer 2.2.2.2 as-number 100 peer 2.2.2.2 connect-interface loopback 1 peer 2.2.2.2 ebgp-max-hop 2 peer 2.2.2.2 egress-engineering ipv4-family unicast network 3.3.3.3 32 network 10.1.1.0 24 network 10.2.1.0 24 import-route isis 1 link-state-family unicast # explicit-path path2pe2 next sid label 330304 type adjacency # interface tunnel2 ip address unnumbered interface loopback 1 tunnel-protocol mpls te destination 4.4.4.4 mpls te tunnel-id 1 mpls te signal-protocol segment-routing mpls te path explicit-path path2pe2 mpls te binding-sid label 2000 # return #
PE2的配置文件
# sysname PE2 # mpls lsr-id 4.4.4.4 # mpls mpls te # segment-routing # isis 1 is-level level-2 network-entity 10.0000.0000.0004.00 cost-style wide traffic-eng level-2 segment-routing mpls # interface loopback 1 ip address 4.4.4.4 255.255.255.255 isis enable 1 isis prefix-sid absolute 16400 # interface GigabitEthernet0/1/0 undo shutdown ip address 10.9.1.2 255.255.255.0 isis enable 1 mpls mpls te # explicit-path path2asbr2 next sid label 330403 type adjacency # explicit-path path2pe1 next sid label 3000 type binding-sid next sid label 31770 type adjacency next sid label 4000 type binding-sid # interface tunnel2 ip address unnumbered interface loopback 1 tunnel-protocol mpls te destination 3.3.3.3 mpls te tunnel-id 1 mpls te signal-protocol segment-routing mpls te path explicit-path path2asbr2 mpls te binding-sid label 3000 # interface tunnel3 ip address unnumbered interface loopback 1 tunnel-protocol mpls te destination 1.1.1.1 mpls te tunnel-id 400 mpls te signal-protocol segment-routing mpls te path explicit-path path2pe1 # return #