配置热备份CR-LSP动态带宽功能示例
组网需求
图4-56为MPLS VPN网络。要求从LSRA上建立一条TE隧道,目的地址为LSRC,并配置CR-LSP热备份(hot-standby)和逃生路径(best-effort)。其中:
主CR-LSP的路径为LSRA→LSRB→LSRC;
备份CR-LSP的路径为LSRA→LSRD→LSRC;
逃生路径为LSRA→LSRD→LSRB→LSRC。
当主CR-LSP故障时,流量切换到备份CR-LSP;当主CR-LSP故障恢复,延时15秒后再进行流量回切。如果主、备CR-LSP都故障,触发建立逃生路径,使流量切换到逃生路径上。
由于客户的带宽资源比较紧张,如果配置热备份CR-LSP,会降低客户的带宽使用效率,提高客户的成本。因为热备份CR-LSP占用的这部分带宽只有在流量切换到热备份时才会使用。
此时可以选择在入节点使能热备份CR-LSP动态带宽功能来解决以上的问题:
在主CR-LSP正常使用时,热备份CR-LSP将不占用带宽,节约了客户的带宽资源。
当主CR-LSP故障后,流量将切换到热备份CR-LSP上,此时隧道将采取尽力而为的方式进行流量传输。然后系统会采用Make-before-break机制并按照用户期望的带宽重建一条CR-LSP。当新的热备份CR-LSP建立成功后,流量就切换到新的CR-LSP上,然后将带宽值为0的热备份CR-LSP删除。
操作步骤
- 配置各接口的IP地址,并配置OSPF
# 配置LSRA。LSRB、LSRC和LSRD的配置与LSRA类似,不再赘述。
<Huawei> system-view [Huawei] sysname LSRA [LSRA] interface gigabitethernet 1/0/0 [LSRA-GigabitEthernet1/0/0] ip address 172.1.1.1 255.255.255.0 [LSRA-GigabitEthernet1/0/0] quit [LSRA] interface gigabitethernet 2/0/0 [LSRA-GigabitEthernet2/0/0] ip address 172.5.1.1 255.255.255.0 [LSRA-GigabitEthernet2/0/0] quit [LSRA] interface loopback 1 [LSRA-LoopBack1] ip address 1.1.1.9 255.255.255.255 [LSRA-LoopBack1] quit [LSRA] ospf 1 [LSRA-ospf-1] area 0 [LSRA-ospf-1-area-0.0.0.0] network 1.1.1.9 0.0.0.0 [LSRA-ospf-1-area-0.0.0.0] network 172.1.1.0 0.0.0.255 [LSRA-ospf-1-area-0.0.0.0] network 172.5.1.0 0.0.0.255 [LSRA-ospf-1-area-0.0.0.0] quit [LSRA-ospf-1] quit
配置完成后,在各节点上执行display ip routing-table命令,应可以看到相互之间都学到了到对方Loopback1的路由。
- 配置MPLS基本能力,使能MPLS TE、RSVP-TE和CSPF
在各节点的MPLS视图和接口视图下使能MPLS TE、RSVP-TE。在入节点使能CSPF功能,在主CR-LSP和热备份CR-LSP经过的所有节点出接口配置链路最大可预留带宽为100Mbit/s,BC0带宽为100Mbit/s。
# 配置LSRA。LSRB、LSRC和LSRD的配置与LSRA类似,不再赘述。其中,只需在主隧道和旁路隧道的入节点上使能CSPF。即只需在LSRA上使能CSPF,LSRB、LSRC和LSRD上无需使能CSPF。带宽相关配置只需要在LSRB的GE2/0/0接口和LSRD的GE1/0/0接口进行配置即可。
[LSRA] mpls lsr-id 1.1.1.9 [LSRA] mpls [LSRA-mpls] mpls te [LSRA-mpls] mpls rsvp-te [LSRA-mpls] mpls te cspf [LSRA-mpls] quit [LSRA] interface gigabitethernet 1/0/0 [LSRA-GigabitEthernet1/0/0] mpls [LSRA-GigabitEthernet1/0/0] mpls te [LSRA-GigabitEthernet1/0/0] mpls rsvp-te [LSRA-GigabitEthernet1/0/0] mpls te bandwidth max-reservable-bandwidth 100000 [LSRA-GigabitEthernet1/0/0] mpls te bandwidth bc0 100000 [LSRA-GigabitEthernet1/0/0] quit [LSRA] interface gigabitethernet 2/0/0 [LSRA-GigabitEthernet2/0/0] mpls [LSRA-GigabitEthernet2/0/0] mpls te [LSRA-GigabitEthernet2/0/0] mpls rsvp-te [LSRA-GigabitEthernet2/0/0] mpls te bandwidth max-reservable-bandwidth 100000 [LSRA-GigabitEthernet2/0/0] mpls te bandwidth bc0 100000 [LSRA-GigabitEthernet2/0/0] quit
- 配置OSPF TE
# 配置LSRA。LSRB、LSRC和LSRD的配置与LSRA类似,不再赘述。
[LSRA] ospf [LSRA-ospf-1] opaque-capability enable [LSRA-ospf-1] area 0 [LSRA-ospf-1-area-0.0.0.0] mpls-te enable [LSRA-ospf-1-area-0.0.0.0] quit [LSRA-ospf-1] quit
- 配置主、备CR-LSP使用的显式路径
# 在LSRA上配置主CR-LSP使用的显式路径。
[LSRA] explicit-path pri-path [LSRA-explicit-path-pri-path] next hop 172.1.1.2 [LSRA-explicit-path-pri-path] next hop 172.2.1.2 [LSRA-explicit-path-pri-path] next hop 3.3.3.9 [LSRA-explicit-path-pri-path] quit
# 在LSRA上配置备份CR-LSP使用的显式路径。
[LSRA] explicit-path backup-path [LSRA-explicit-path-backup-path] next hop 172.5.1.2 [LSRA-explicit-path-backup-path] next hop 172.3.1.1 [LSRA-explicit-path-backup-path] next hop 3.3.3.9 [LSRA-explicit-path-backup-path] quit
完成以上配置后,可在LSRA上执行命令查看已经配置的显式路径。
[LSRA] display explicit-path pri-path Path Name : pri-path Path Status : Enabled 1 172.1.1.2 Strict Include 2 172.2.1.2 Strict Include 3 3.3.3.9 Strict Include [LSRA] display explicit-path backup-path Path Name : backup-path Path Status : Enabled 1 172.5.1.2 Strict Include 2 172.3.1.1 Strict Include 3 3.3.3.9 Strict Include
- 配置隧道接口
# 在LSRA上创建Tunnel接口,指定显式路径,配置隧道的CT0带宽为10Mbit/s。
[LSRA] interface tunnel 0/0/1 [LSRA-Tunnel0/0/1] ip address unnumbered interface loopback 1 [LSRA-Tunnel0/0/1] tunnel-protocol mpls te [LSRA-Tunnel0/0/1] destination 3.3.3.9 [LSRA-Tunnel0/0/1] mpls te tunnel-id 100 [LSRA-Tunnel0/0/1] mpls te path explicit-path pri-path [LSRA-Tunnel0/0/1] mpls te bandwidth ct0 10000
# 在该Tunnel接口配置CR-LSP热备份,回切时间为15秒,指定备份显式路径,并配置逃生路径。
[LSRA-Tunnel0/0/1] mpls te backup hot-standby wtr 15 [LSRA-Tunnel0/0/1] mpls te path explicit-path backup-path secondary [LSRA-Tunnel0/0/1] mpls te backup ordinary best-effort [LSRA-Tunnel0/0/1] mpls te commit [LSRA-Tunnel0/0/1] quit
完成以上配置后,在LSRA上执行display mpls te tunnel-interface tunnel 0/0/1命令,可发现主CR-LSP、备份CR-LSP建立成功。
[LSRA] display mpls te tunnel-interface tunnel 0/0/1 ---------------------------------------------------------------- Tunnel0/0/1 ---------------------------------------------------------------- Tunnel State Desc : UP Active LSP : Primary LSP Session ID : 100 Ingress LSR ID : 1.1.1.9 Egress LSR ID: 3.3.3.9 Admin State : UP Oper State : UP Primary LSP State : UP Main LSP State : READY LSP ID : 18 Hot-Standby LSP State : UP Main LSP State : READY LSP ID : 32799
在LSRA上使用display mpls te hot-standby state interface Tunnel 0/0/1命令查看热备份信息。
[LSRA] display mpls te hot-standby state interface Tunnel 0/0/1 --------------------------------------------------------------------- Verbose information about the Tunnel0/0/1 hot-standby state --------------------------------------------------------------------- session id : 100 main LSP token : 0x1d hot-standby LSP token : 0x1e HSB switch result : Primary LSP HSB switch reason : - WTR config time : 15s WTR remain time : - using overlapped path : no
- 配置热备份CR-LSP动态带宽功能
# 配置LSRA。
[LSRA] interface tunnel 0/0/1 [LSRA-Tunnel0/0/1] mpls te backup hot-standby dynamic-bandwidth [LSRA-Tunnel0/0/1] mpls te commit [LSRA-Tunnel0/0/1] quit
- 验证配置结果
# 完成以上配置后,在LSRA上执行display mpls te tunnel verbose命令和display mpls te link-administration bandwidth-allocation命令,可发现热备份CR-LSP未占用带宽。
[LSRA] display mpls te tunnel verbose No : 1 Tunnel-Name : Tunnel0/0/1 Tunnel Interface Name : Tunnel0/0/1 TunnelIndex : 1 LSP Index : 2050 Session ID : 100 LSP ID : 18 LSR Role : Ingress LSP Type : Primary Ingress LSR ID : 1.1.1.9 Egress LSR ID : 3.3.3.9 In-Interface : - Out-Interface : GE1/0/0 Sign-Protocol : RSVP TE Resv Style : SE IncludeAnyAff : 0x0 ExcludeAnyAff : 0x0 IncludeAllAff : 0x0 LspConstraint : - ER-Hop Table Index : 1 AR-Hop Table Index: 0 C-Hop Table Index : 2 PrevTunnelIndexInSession: 3 NextTunnelIndexInSession: - PSB Handle : 17444 Created Time : 2013/02/28 18:18:31 RSVP LSP Type : - -------------------------------- DS-TE Information -------------------------------- Bandwidth Reserved Flag : Reserved CT0 Bandwidth(Kbit/sec) : 10000 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 Setup-Priority : 7 Hold-Priority : 7 -------------------------------- FRR Information -------------------------------- Primary LSP Info TE Attribute Flag : 0x3 Protected Flag : 0x0 Bypass In Use : Not Exists Bypass Tunnel Id : - BypassTunnel : - Bypass LSP ID : - FrrNextHop : - ReferAutoBypassHandle : - FrrPrevTunnelTableIndex : - FrrNextTunnelTableIndex: - Bypass Attribute(Not configured) Setup Priority : - Hold Priority : - HopLimit : - Bandwidth : - IncludeAnyGroup : - ExcludeAnyGroup : - IncludeAllGroup : - Bypass Unbound Bandwidth Info(Kbit/sec) CT0 Unbound Bandwidth : - CT1 Unbound Bandwidth: - CT2 Unbound Bandwidth : - CT3 Unbound Bandwidth: - CT4 Unbound Bandwidth : - CT5 Unbound Bandwidth: - CT6 Unbound Bandwidth : - CT7 Unbound Bandwidth: - -------------------------------- BFD Information -------------------------------- NextSessionTunnelIndex : - PrevSessionTunnelIndex: - NextLspId : - PrevLspId : - No : 2 Tunnel-Name : Tunnel0/0/1 Tunnel Interface Name : Tunnel0/0/1 TunnelIndex : 3 LSP Index : 2048 Session ID : 100 LSP ID : 32801 LSR Role : Ingress LSP Type : Hot-Standby Ingress LSR ID : 1.1.1.9 Egress LSR ID : 3.3.3.9 In-Interface : - Out-Interface : GE2/0/0 Sign-Protocol : RSVP TE Resv Style : SE IncludeAnyAff : 0x0 ExcludeAnyAff : 0x0 IncludeAllAff : 0x0 LspConstraint : - ER-Hop Table Index : 2 AR-Hop Table Index: 3 C-Hop Table Index : 0 PrevTunnelIndexInSession: - NextTunnelIndexInSession: 1 PSB Handle : 17446 Created Time : 2013/02/28 18:27:32 RSVP LSP Type : - -------------------------------- DS-TE Information -------------------------------- Bandwidth Reserved Flag : Unreserved 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 Setup-Priority : 7 Hold-Priority : 7 -------------------------------- FRR Information -------------------------------- Primary LSP Info TE Attribute Flag : 0x3 Protected Flag : 0x0 Bypass In Use : Not Exists Bypass Tunnel Id : - BypassTunnel : - Bypass LSP ID : - FrrNextHop : - ReferAutoBypassHandle : - FrrPrevTunnelTableIndex : - FrrNextTunnelTableIndex: - Bypass Attribute(Not configured) Setup Priority : - Hold Priority : - HopLimit : - Bandwidth : - IncludeAnyGroup : - ExcludeAnyGroup : - IncludeAllGroup : - Bypass Unbound Bandwidth Info(Kbit/sec) CT0 Unbound Bandwidth : - CT1 Unbound Bandwidth: - CT2 Unbound Bandwidth : - CT3 Unbound Bandwidth: - CT4 Unbound Bandwidth : - CT5 Unbound Bandwidth: - CT6 Unbound Bandwidth : - CT7 Unbound Bandwidth: - -------------------------------- BFD Information -------------------------------- NextSessionTunnelIndex : - PrevSessionTunnelIndex: - NextLspId : - PrevLspId : -
[LSRA] display mpls te link-administration bandwidth-allocation Link ID: GigabitEthernet1/0/0 Bandwidth Constraint Model : Russian Dolls Model (RDM) Physical Link Bandwidth(Kbits/sec) : 1000000 Maximum Link Reservable Bandwidth(Kbits/sec): 100000 Reservable Bandwidth BC0(Kbits/sec) : 100000 Reservable Bandwidth BC1(Kbits/sec) : 0 Downstream Bandwidth (Kbits/sec) : 10000 IPUpdown Link Status : UP PhysicalUpdown Link Status : UP GracefulUpdown Link Status : DOWN ---------------------------------------------------------------------- TE-CLASS CT PRIORITY BW RESERVED BW AVAILABLE DOWNSTREAM (Kbit/sec) (Kbit/sec) RSVPLSPNODE COUNT ---------------------------------------------------------------------- 0 0 0 0 100000 0 1 0 1 0 100000 0 2 0 2 0 100000 0 3 0 3 0 100000 0 4 0 4 0 100000 0 5 0 5 0 100000 0 6 0 6 0 100000 0 7 0 7 10000 90000 1 8 1 0 0 0 0 9 1 1 0 0 0 10 1 2 0 0 0 11 1 3 0 0 0 12 1 4 0 0 0 13 1 5 0 0 0 14 1 6 0 0 0 15 1 7 0 0 0 ---------------------------------------------------------------------- Link ID: GigabitEthernet2/0/0 Bandwidth Constraint Model : Russian Dolls Model (RDM) Physical Link Bandwidth(Kbits/sec) : 1000000 Maximum Link Reservable Bandwidth(Kbits/sec): 100000 Reservable Bandwidth BC0(Kbits/sec) : 100000 Reservable Bandwidth BC1(Kbits/sec) : 0 Downstream Bandwidth (Kbits/sec) : 0 IPUpdown Link Status : UP PhysicalUpdown Link Status : UP GracefulUpdown Link Status : DOWN ---------------------------------------------------------------------- TE-CLASS CT PRIORITY BW RESERVED BW AVAILABLE DOWNSTREAM (Kbit/sec) (Kbit/sec) RSVPLSPNODE COUNT ---------------------------------------------------------------------- 0 0 0 0 100000 0 1 0 1 0 100000 0 2 0 2 0 100000 0 3 0 3 0 100000 0 4 0 4 0 100000 0 5 0 5 0 100000 0 6 0 6 0 100000 0 7 0 7 0 100000 0 8 1 0 0 0 0 9 1 1 0 0 0 10 1 2 0 0 0 11 1 3 0 0 0 12 1 4 0 0 0 13 1 5 0 0 0 14 1 6 0 0 0 15 1 7 0 0 0 ----------------------------------------------------------------------
# 在LSRA的GE1/0/0接口执行命令shutdown,模拟主CR-LSP故障。
[LSRA] interface gigabitethernet 1/0/0 [LSRA-GigabitEthernet1/0/0] shutdown [LSRA-GigabitEthernet1/0/0] quit
# 在LSRA上执行命令display mpls te tunnel-interface tunnel 0/0/1,可以发现在主CR-LSP故障后,热备份CR-LSP重新建立,建立完成后将流量切换到新的热备份CR-LSP上。
[LSRA] display mpls te tunnel-interface tunnel 0/0/1 ---------------------------------------------------------------- Tunnel0/0/1 ---------------------------------------------------------------- Tunnel State Desc : UP Active LSP : Hot-Standby LSP Session ID : 100 Ingress LSR ID : 1.1.1.9 Egress LSR ID: 3.3.3.9 Admin State : UP Oper State : UP Primary LSP State : DOWN Main LSP State : SETTING UP Hot-Standby LSP State : GRACEFUL SWITCH Main LSP State : READY LSP ID : 32801 Modify LSP State : READY
# 当重建成功后,在LSRA上执行display mpls te tunnel verbose命令和display mpls te link-administration bandwidth-allocation命令,可以发现热备份CR-LSP开始占用带宽。
[LSRA] display mpls te tunnel verbose No : 1 Tunnel-Name : Tunnel0/0/1 Tunnel Interface Name : Tunnel0/0/1 TunnelIndex : 1 LSP Index : 2049 Session ID : 100 LSP ID : 32802 LSR Role : Ingress LSP Type : Hot-Standby Ingress LSR ID : 1.1.1.9 Egress LSR ID : 3.3.3.9 In-Interface : - Out-Interface : GE2/0/0 Sign-Protocol : RSVP TE Resv Style : SE IncludeAnyAff : 0x0 ExcludeAnyAff : 0x0 IncludeAllAff : 0x0 LspConstraint : - ER-Hop Table Index : 2 AR-Hop Table Index: 0 C-Hop Table Index : 2 PrevTunnelIndexInSession: - NextTunnelIndexInSession: - PSB Handle : 17447 Created Time : 2013/02/28 18:44:53 RSVP LSP Type : - -------------------------------- DS-TE Information -------------------------------- Bandwidth Reserved Flag : Reserved CT0 Bandwidth(Kbit/sec) : 10000 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 Setup-Priority : 7 Hold-Priority : 7 -------------------------------- FRR Information -------------------------------- Primary LSP Info TE Attribute Flag : 0x3 Protected Flag : 0x0 Bypass In Use : Not Exists Bypass Tunnel Id : - BypassTunnel : - Bypass LSP ID : - FrrNextHop : - ReferAutoBypassHandle : - FrrPrevTunnelTableIndex : - FrrNextTunnelTableIndex: - Bypass Attribute(Not configured) Setup Priority : - Hold Priority : - HopLimit : - Bandwidth : - IncludeAnyGroup : - ExcludeAnyGroup : - IncludeAllGroup : - Bypass Unbound Bandwidth Info(Kbit/sec) CT0 Unbound Bandwidth : - CT1 Unbound Bandwidth: - CT2 Unbound Bandwidth : - CT3 Unbound Bandwidth: - CT4 Unbound Bandwidth : - CT5 Unbound Bandwidth: - CT6 Unbound Bandwidth : - CT7 Unbound Bandwidth: - -------------------------------- BFD Information -------------------------------- NextSessionTunnelIndex : - PrevSessionTunnelIndex: - NextLspId : - PrevLspId : -
[LSRA] display mpls te link-administration bandwidth-allocation Link ID: GigabitEthernet1/0/0 Bandwidth Constraint Model : Russian Dolls Model (RDM) Physical Link Bandwidth(Kbits/sec) : 1000000 Maximum Link Reservable Bandwidth(Kbits/sec): 100000 Reservable Bandwidth BC0(Kbits/sec) : 100000 Reservable Bandwidth BC1(Kbits/sec) : 0 Downstream Bandwidth (Kbits/sec) : 0 IPUpdown Link Status : DOWN PhysicalUpdown Link Status : DOWN GracefulUpdown Link Status : DOWN ---------------------------------------------------------------------- TE-CLASS CT PRIORITY BW RESERVED BW AVAILABLE DOWNSTREAM (Kbit/sec) (Kbit/sec) RSVPLSPNODE COUNT ---------------------------------------------------------------------- 0 0 0 0 100000 0 1 0 1 0 100000 0 2 0 2 0 100000 0 3 0 3 0 100000 0 4 0 4 0 100000 0 5 0 5 0 100000 0 6 0 6 0 100000 0 7 0 7 0 100000 0 8 1 0 0 0 0 9 1 1 0 0 0 10 1 2 0 0 0 11 1 3 0 0 0 12 1 4 0 0 0 13 1 5 0 0 0 14 1 6 0 0 0 15 1 7 0 0 0 ---------------------------------------------------------------------- Link ID: GigabitEthernet2/0/0 Bandwidth Constraint Model : Russian Dolls Model (RDM) Physical Link Bandwidth(Kbits/sec) : 1000000 Maximum Link Reservable Bandwidth(Kbits/sec): 100000 Reservable Bandwidth BC0(Kbits/sec) : 100000 Reservable Bandwidth BC1(Kbits/sec) : 0 Downstream Bandwidth (Kbits/sec) : 10000 IPUpdown Link Status : UP PhysicalUpdown Link Status : UP GracefulUpdown Link Status : DOWN ---------------------------------------------------------------------- TE-CLASS CT PRIORITY BW RESERVED BW AVAILABLE DOWNSTREAM (Kbit/sec) (Kbit/sec) RSVPLSPNODE COUNT ---------------------------------------------------------------------- 0 0 0 0 100000 0 1 0 1 0 100000 0 2 0 2 0 100000 0 3 0 3 0 100000 0 4 0 4 0 100000 0 5 0 5 0 100000 0 6 0 6 0 100000 0 7 0 7 10000 90000 1 8 1 0 0 0 0 9 1 1 0 0 0 10 1 2 0 0 0 11 1 3 0 0 0 12 1 4 0 0 0 13 1 5 0 0 0 14 1 6 0 0 0 15 1 7 0 0 0 ----------------------------------------------------------------------
配置文件
LSRA的配置文件
# sysname LSRA # mpls lsr-id 1.1.1.9 mpls mpls te mpls rsvp-te mpls te cspf # explicit-path backup-path next hop 172.5.1.2 next hop 172.3.1.1 next hop 3.3.3.9 # explicit-path pri-path next hop 172.1.1.2 next hop 172.2.1.2 next hop 3.3.3.9 # interface GigabitEthernet1/0/0 ip address 172.1.1.1 255.255.255.0 mpls mpls te mpls te bandwidth max-reservable-bandwidth 100000 mpls te bandwidth bc0 100000 mpls rsvp-te # interface GigabitEthernet2/0/0 ip address 172.5.1.1 255.255.255.0 mpls mpls te mpls te bandwidth max-reservable-bandwidth 100000 mpls te bandwidth bc0 100000 mpls rsvp-te # interface LoopBack1 ip address 1.1.1.9 255.255.255.255 # interface Tunnel0/0/1 ip address unnumbered interface LoopBack1 tunnel-protocol mpls te destination 3.3.3.9 mpls te tunnel-id 100 mpls te record-route mpls te bandwidth ct0 10000 mpls te path explicit-path pri-path mpls te path explicit-path backup-path secondary mpls te backup hot-standby mode revertive wtr 15 dynamic-bandwidth mpls te backup ordinary best-effort mpls te commit # ospf 1 opaque-capability enable area 0.0.0.0 network 1.1.1.9 0.0.0.0 network 172.1.1.0 0.0.0.255 network 172.5.1.0 0.0.0.255 mpls-te enable # return
LSRB的配置文件
# sysname LSRB # mpls lsr-id 2.2.2.9 mpls mpls te mpls rsvp-te # interface GigabitEthernet1/0/0 ip address 172.1.1.2 255.255.255.0 mpls mpls te mpls rsvp-te # interface GigabitEthernet2/0/0 ip address 172.2.1.1 255.255.255.0 mpls mpls te mpls te bandwidth max-reservable-bandwidth 100000 mpls te bandwidth bc0 100000 mpls rsvp-te # interface GigabitEthernet3/0/0 ip address 172.4.1.1 255.255.255.0 mpls mpls te mpls rsvp-te # interface LoopBack1 ip address 2.2.2.9 255.255.255.255 # ospf 1 opaque-capability enable area 0.0.0.0 network 2.2.2.9 0.0.0.0 network 172.1.1.0 0.0.0.255 network 172.2.1.0 0.0.0.255 network 172.4.1.0 0.0.0.255 mpls-te enable # return
LSRC的配置文件
# sysname LSRC # mpls lsr-id 3.3.3.9 mpls mpls te mpls rsvp-te # interface GigabitEthernet1/0/0 ip address 172.3.1.1 255.255.255.0 mpls mpls te mpls rsvp-te # interface GigabitEthernet2/0/0 ip address 172.2.1.2 255.255.255.0 mpls mpls te mpls rsvp-te # interface LoopBack1 ip address 3.3.3.9 255.255.255.255 # ospf 1 opaque-capability enable area 0.0.0.0 network 3.3.3.9 0.0.0.0 network 172.2.1.0 0.0.0.255 network 172.3.1.0 0.0.0.255 mpls-te enable # return
LSRD的配置文件
# sysname LSRD # mpls lsr-id 4.4.4.9 mpls mpls te mpls rsvp-te # interface GigabitEthernet1/0/0 ip address 172.3.1.2 255.255.255.0 mpls mpls te mpls te bandwidth max-reservable-bandwidth 100000 mpls te bandwidth bc0 100000 mpls rsvp-te # interface GigabitEthernet2/0/0 ip address 172.5.1.2 255.255.255.0 mpls mpls te mpls rsvp-te # interface GigabitEthernet3/0/0 ip address 172.4.1.2 255.255.255.0 mpls mpls te mpls rsvp-te # interface LoopBack1 ip address 4.4.4.9 255.255.255.255 # ospf 1 opaque-capability enable area 0.0.0.0 network 4.4.4.9 0.0.0.0 network 172.3.1.0 0.0.0.255 network 172.4.1.0 0.0.0.255 network 172.5.1.0 0.0.0.255 mpls-te enable # return