Mr.Chan

导航

MPLS TE Basic Config



 

r4#sh ru
Building configuration...

Current configuration : 1220 bytes
!
version 12.2
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname r4
!
!
clock timezone CET 1
ip subnet-zero
no ip domain lookup
!
ip cef
mpls label range 400 499
mpls traffic-eng tunnels
!
!
!
interface Loopback0
 ip address 4.4.4.4 255.255.255.255
!        
interface Tunnel0
 ip unnumbered Loopback0
 mpls traffic-eng tunnels
 tunnel destination 8.8.8.8
 tunnel mode mpls traffic-eng
 tunnel mpls traffic-eng autoroute announce
 tunnel mpls traffic-eng priority 3 3
 tunnel mpls traffic-eng bandwidth  500
 tunnel mpls traffic-eng path-option 10 dynamic
!
interface Ethernet0/0
 no ip address
 shutdown
!
interface Serial1/0
 no ip address
 shutdown
!
interface Serial2/0
 ip address 192.168.45.4 255.255.255.0
 mpls traffic-eng tunnels
 fair-queue 64 256 32
 ip rsvp bandwidth 1000 1000
!
interface Serial3/0
 no ip address
 shutdown
!
router ospf 1
 router-id 4.4.4.4
 log-adjacency-changes
 network 4.4.4.4 0.0.0.0 area 0
 network 192.168.45.0 0.0.0.255 area 0
 mpls traffic-eng router-id Loopback0
 mpls traffic-eng area 0
!
ip classless
no ip http server
!
!
!
!
!
line con 0
 exec-timeout 0 0
 logging synchronous
line aux 0
line vty 0 4
 login
!
end

r4#sh ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
       * - candidate default, U - per-user static route, o - ODR
       P - periodic downloaded static route

Gateway of last resort is not set

C    192.168.45.0/24 is directly connected, Serial2/0
     4.0.0.0/32 is subnetted, 1 subnets
C       4.4.4.4 is directly connected, Loopback0
     5.0.0.0/32 is subnetted, 1 subnets
O       5.5.5.5 [110/65] via 192.168.45.5, 00:03:44, Serial2/0
O    192.168.57.0/24 [110/128] via 192.168.45.5, 00:03:44, Serial2/0
O    192.168.78.0/24 [110/138] via 192.168.45.5, 00:03:44, Serial2/0
     6.0.0.0/32 is subnetted, 1 subnets
O       6.6.6.6 [110/129] via 192.168.45.5, 00:03:44, Serial2/0
O    192.168.56.0/24 [110/128] via 192.168.45.5, 00:03:44, Serial2/0
     7.0.0.0/32 is subnetted, 1 subnets
O       7.7.7.7 [110/129] via 192.168.45.5, 00:03:44, Serial2/0
     8.0.0.0/32 is subnetted, 1 subnets
O       8.8.8.8 [110/139] via 0.0.0.0, 00:03:44, Tunnel0
O    192.168.67.0/24 [110/192] via 192.168.45.5, 00:03:44, Serial2/0

r4#sh mpls traffic-eng ?
  autoroute        Autorouted tunnel destination information
  link-management  Link Management information
  topology         Show topology Commands
  tunnels          MPLS traffic-eng tunnel status

r4#sh mpls traffic-eng tunnels

Name: r4_t0                               (Tunnel0) Destination: 8.8.8.8
  Status:
    Admin: up         Oper: up     Path: valid       Signalling: connected

    path option 10, type dynamic (Basis for Setup, path weight 202)

  Config Parameters:
    Bandwidth: 500      kbps (Global)  Priority: 3  3   Affinity: 0x0/0xFFFF
    Metric Type: TE (default)
    AutoRoute:  enabled   LockDown: disabled  Loadshare: 500      bw-based
    auto-bw: disabled

  InLabel  :  -
  OutLabel : Serial2/0, 500
  RSVP Signalling Info:
       Src 4.4.4.4, Dst 8.8.8.8, Tun_Id 0, Tun_Instance 151
    RSVP Path Info:
      My Address: 4.4.4.4  
      Explicit Route: 192.168.45.5 192.168.56.6 192.168.67.7 192.168.78.7
                      192.168.78.8 8.8.8.8
      Record   Route:  NONE
      Tspec: ave rate=500 kbits, burst=1000 bytes, peak rate=500 kbits
    RSVP Resv Info:
      Record   Route:  NONE
      Fspec: ave rate=500 kbits, burst=1000 bytes, peak rate=500 kbits
  History:
    Tunnel:
      Time since created: 1 hours, 14 minutes
      Time since path change: 9 seconds
    Current LSP:
      Uptime: 9 seconds
    Prior LSP:
      ID: path option 10 [107]
      Removal Trigger: path error

 

r4#sh mpls traffic-eng autoroute
MPLS TE autorouting enabled
  destination 8.8.8.8 has 1 tunnels
    Tunnel0 (load balancing metric 4000000, nexthop 8.8.8.8)

r4#sh mpls traffic-eng link-management ?
  admission-control     Link Management admission-control
  advertisements        Link Management advertisements
  bandwidth-allocation  Link Management bandwidth-allocation
  igp-neighbors         Link Management igp-neighbors
  interfaces            Link Management Traffic Engineering interfaces
  statistics            Link Management Traffic Engineering statistics
  summary               Link Management summary

r4#sh mpls traffic-eng link-management admission-control
System Information::
    Tunnels Count:        1
    Tunnels Selected:     1
TUNNEL ID              UP IF     DOWN IF  PRIORITY STATE           BW (kbps)
4.4.4.4 0_152          -         Se2/0    3/3      Resv Admitted   500        RG
r4#sh mpls traffic-eng link-management ad               
r4#sh mpls traffic-eng link-management adv
r4#sh mpls traffic-eng link-management advertisements
Flooding Status:      ready
Configured Areas:     1
IGP Area[1] ID::  ospf area 0
  System Information::
    Flooding Protocol:    OSPF
  Header Information::
    IGP System ID:        4.4.4.4
    MPLS TE Router ID:    4.4.4.4
    Flooded Links:        1
  Link ID::  0
    Link IP Address:      192.168.45.4
    IGP Neighbor:         ID 5.5.5.5, IP 192.168.45.5
    TE metric:            64
    IGP metric:           64
    Physical Bandwidth:   1544 kbits/sec
    Res. Global BW:       1000 kbits/sec
    Res. Sub BW:          0 kbits/sec
    Downstream::
                                Global Pool   Sub Pool 
                                -----------   ----------
      Reservable Bandwidth[0]:         1000            0 kbits/sec
      Reservable Bandwidth[1]:         1000            0 kbits/sec
      Reservable Bandwidth[2]:         1000            0 kbits/sec
      Reservable Bandwidth[3]:          500            0 kbits/sec
      Reservable Bandwidth[4]:          500            0 kbits/sec
      Reservable Bandwidth[5]:          500            0 kbits/sec
      Reservable Bandwidth[6]:          500            0 kbits/sec
      Reservable Bandwidth[7]:          500            0 kbits/sec
    Attribute Flags:      0x00000000
         
r4#sh mpls traffic-eng link-management bandwidth-allocation
System Information::
    Links Count:          2
    Bandwidth Hold Time:  max. 15 seconds
Link ID::  Se2/0 (192.168.45.4)
    Link Status:
      Physical Bandwidth:   1544 kbits/sec
      Max Res Global BW:    1000 kbits/sec (reserved: 0% in, 50% out)
      Max Res Sub BW:       0 kbits/sec (reserved: 100% in, 100% out)
      BW Descriptors:       1
      MPLS TE Link State:   MPLS TE on, RSVP on, admin-up, flooded
      Inbound Admission:    allow-all
      Outbound Admission:   allow-if-room
      Admin. Weight:        64 (IGP)
      IGP Neighbor Count:   1
      Up Thresholds:        15 30 45 60 75 80 85 90 95 96 97 98 99 100 (default)
      Down Thresholds:      100 99 98 97 96 95 90 85 80 75 60 45 30 15 (default)
    Downstream Global Pool Bandwidth Information (kbits/sec):
      KEEP PRIORITY     BW HELD  BW TOTAL HELD   BW LOCKED  BW TOTAL LOCKED
                  0           0              0           0                0
                  1           0              0           0                0
                  2           0              0           0                0
                  3           0              0         500              500
                  4           0              0           0              500
                  5           0              0           0              500
                  6           0              0           0              500
                  7           0              0           0              500
    Downstream Sub Pool Bandwidth Information (kbits/sec):
      KEEP PRIORITY     BW HELD  BW TOTAL HELD   BW LOCKED  BW TOTAL LOCKED
                  0           0              0           0                0
                  1           0              0           0                0
                  2           0              0           0                0
                  3           0              0           0                0
                  4           0              0           0                0
                  5           0              0           0                0
                  6           0              0           0                0
                  7           0              0           0                0
Link ID::  Tu0 (4.4.4.4)
    Link Status:
      Physical Bandwidth:   9 kbits/sec
      Max Res Global BW:    0 kbits/sec (reserved: 100% in, 100% out)
      Max Res Sub BW:       0 kbits/sec (reserved: 100% in, 100% out)
      BW Descriptors:       0
      MPLS TE Link State:   MPLS TE on, RSVP on, admin-up
      Inbound Admission:    allow-all
      Outbound Admission:   allow-if-room
      Admin. Weight:        11111 (IGP)
      IGP Neighbor Count:   0
      Up Thresholds:        15 30 45 60 75 80 85 90 95 96 97 98 99 100 (default)
      Down Thresholds:      100 99 98 97 96 95 90 85 80 75 60 45 30 15 (default)
    Downstream Global Pool Bandwidth Information (kbits/sec):
      KEEP PRIORITY     BW HELD  BW TOTAL HELD   BW LOCKED  BW TOTAL LOCKED
                  0           0              0           0                0
                  1           0              0           0                0
                  2           0              0           0                0
                  3           0              0           0                0
                  4           0              0           0                0
                  5           0              0           0                0
                  6           0              0           0                0
                  7           0              0           0                0
    Downstream Sub Pool Bandwidth Information (kbits/sec):
      KEEP PRIORITY     BW HELD  BW TOTAL HELD   BW LOCKED  BW TOTAL LOCKED
                  0           0              0           0                0
                  1           0              0           0                0
                  2           0              0           0                0
                  3           0              0           0                0
                  4           0              0           0                0
                  5           0              0           0                0
                  6           0              0           0                0
                  7           0              0           0                0
              
r4#sh mpls traffic-eng link-management igp-neighbors
Link ID::  Se2/0
    Neighbor ID:  5.5.5.5 (area: ospf area 0, IP: 192.168.45.5)
Link ID::  Tu0
r4#sh mpls traffic-eng link-management inte         
r4#sh mpls traffic-eng link-management interfaces
System Information::
    Links Count:          2
Link ID::  Se2/0 (192.168.45.4)
    Link Status:
      Physical Bandwidth:   1544 kbits/sec
      Max Res Global BW:    1000 kbits/sec (reserved: 0% in, 50% out)
      Max Res Sub BW:       0 kbits/sec (reserved: 100% in, 100% out)
      MPLS TE Link State:   MPLS TE on, RSVP on, admin-up, flooded
      Inbound Admission:    allow-all
      Outbound Admission:   allow-if-room
      Admin. Weight:        64 (IGP)
      IGP Neighbor Count:   1
      IGP Neighbor:         ID 5.5.5.5, IP 192.168.45.5 (Up)
    Flooding Status for each configured area [1]:
      IGP Area[1]:  ospf area 0:  flooded
Link ID::  Tu0 (4.4.4.4)
    Link Status:
      Physical Bandwidth:   9 kbits/sec
      Max Res Global BW:    0 kbits/sec (reserved: 100% in, 100% out)
      Max Res Sub BW:       0 kbits/sec (reserved: 100% in, 100% out)
      MPLS TE Link State:   MPLS TE on, RSVP on, admin-up
      Inbound Admission:    allow-all
      Outbound Admission:   allow-if-room
      Admin. Weight:        11111 (IGP)
      IGP Neighbor Count:   0
    Flooding Status for each configured area [1]:
      IGP Area[1]:  ospf area 0:  not flooded
                  (Reason: Link has no IGP adjacencies for this area)
r4#sh mpls traffic-eng link-management st        
r4#sh mpls traffic-eng link-management statistics
System Information::
  LSP Admission Statistics:
    Path:       53 setup requests, 53 admits, 0 rejects, 0 setup errors
                26 tear requests, 0 preempts, 0 tear errors
    Resv:       6 setup requests, 6 admits, 0 rejects, 0 setup errors
                2 tear requests, 0 preempts, 0 tear errors
Link ID::  Se2/0 (192.168.45.4)
  Link Admission Statistics:
    Up Path:    0 setup requests, 0 admits, 0 rejects, 0 setup errors
                0 tear requests, 0 preempts, 0 tear errors
    Up Resv:    0 setup requests, 0 admits, 0 rejects, 0 setup errors
                2 tear requests, 0 preempts, 0 tear errors
    Down Path:  53 setup requests, 53 admits, 0 rejects, 0 setup errors
                26 tear requests, 0 preempts, 0 tear errors
    Down Resv:  6 setup requests, 6 admits, 0 rejects, 0 setup errors
                0 tear requests, 0 preempts, 0 tear errors
Link ID::  Tu0 (4.4.4.4)
  Link Admission Statistics:
    Up Path:    0 setup requests, 0 admits, 0 rejects, 0 setup errors
                0 tear requests, 0 preempts, 0 tear errors
    Up Resv:    0 setup requests, 0 admits, 0 rejects, 0 setup errors
                0 tear requests, 0 preempts, 0 tear errors
    Down Path:  0 setup requests, 0 admits, 0 rejects, 0 setup errors
                0 tear requests, 0 preempts, 0 tear errors
    Down Resv:  0 setup requests, 0 admits, 0 rejects, 0 setup errors
                0 tear requests, 0 preempts, 0 tear errors


r4#sh ip rsvp installed
RSVP: Serial2/0
BPS    To              From            Protoc DPort  Sport
500K   8.8.8.8         4.4.4.4         0      0      152  
RSVP: Tunnel0 has no installed reservations
r4#sh mpls traffic-eng link-management su        
r4#sh mpls traffic-eng link-management summary
System Information::
    Links Count:          2
    Flooding System:      enabled
IGP Area ID::  ospf area 0
    Flooding Protocol:    OSPF
    Flooding Status:      data flooded
    Periodic Flooding:    enabled (every 180 seconds)
    Flooded Links:        1
    IGP System ID:        4.4.4.4
    MPLS TE Router ID:    4.4.4.4
    IGP Neighbors:        1
Link ID::  Se2/0 (192.168.45.4)
    Link Status:
      Physical Bandwidth:   1544 kbits/sec
      Max Res Global BW:    1000 kbits/sec (reserved: 0% in, 50% out)
      Max Res Sub BW:       0 kbits/sec (reserved: 100% in, 100% out)
      MPLS TE Link State:   MPLS TE on, RSVP on, admin-up, flooded
      Inbound Admission:    allow-all
      Outbound Admission:   allow-if-room
      Admin. Weight:        64 (IGP)
      IGP Neighbor Count:   1
Link ID::  Tu0 (4.4.4.4)
    Link Status:
      Physical Bandwidth:   9 kbits/sec
      Max Res Global BW:    0 kbits/sec (reserved: 100% in, 100% out)
      Max Res Sub BW:       0 kbits/sec (reserved: 100% in, 100% out)
      MPLS TE Link State:   MPLS TE on, RSVP on, admin-up
      Inbound Admission:    allow-all
      Outbound Admission:   allow-if-room
      Admin. Weight:        11111 (IGP)
      IGP Neighbor Count:   0

r4#sh mpls traffic-eng topology ?
  A.B.C.D  Show topology based router-id or interface ip address
  brief    Use brief format
  igp-id   Show topology based on igp-id
  path     MPLS traffic-eng path information
  |        Output modifiers
  <cr>

r4#sh mpls traffic-eng topology
My_System_id: 4.4.4.4, Globl Link Generation 40
Signalling error holddown: 10 sec

IGP Id: 4.4.4.4, MPLS TE Id:4.4.4.4 Router Node
      link[0 ]:Nbr IGP Id: 5.5.5.5, gen:35
          frag_id 0, Intf Address:192.168.45.4, Nbr Intf Address:192.168.45.5
          TE metric:64, IGP metric:64, attribute_flags:0x0
          physical_bw: 1544 (kbps), max_reservable_bw_global: 1000 (kbps)
          max_reservable_bw_sub: 0 (kbps)

                                 Global Pool       Sub Pool
               Total Allocated   Reservable        Reservable
               BW (kbps)         BW (kbps)         BW (kbps)
               ---------------   -----------       ----------
        bw[0]:            0             1000                0
        bw[1]:            0             1000                0
        bw[2]:            0             1000                0
        bw[3]:          500              500                0
        bw[4]:            0              500                0
        bw[5]:            0              500                0
        bw[6]:            0              500                0
        bw[7]:            0              500                0

IGP Id: 5.5.5.5, MPLS TE Id:5.5.5.5 Router Node
      link[0 ]:Nbr IGP Id: 4.4.4.4, gen:29
          frag_id 0, Intf Address:192.168.45.5, Nbr Intf Address:192.168.45.4
          TE metric:64, IGP metric:0, attribute_flags:0x0
          physical_bw: 1544 (kbps), max_reservable_bw_global: 1000 (kbps)
          max_reservable_bw_sub: 0 (kbps)

                                 Global Pool       Sub Pool
               Total Allocated   Reservable        Reservable
               BW (kbps)         BW (kbps)         BW (kbps)
               ---------------   -----------       ----------
        bw[0]:            0             1000                0
        bw[1]:            0             1000                0
        bw[2]:            0             1000                0
        bw[3]:            0             1000                0
        bw[4]:            0             1000                0
        bw[5]:            0             1000                0
        bw[6]:            0             1000                0
        bw[7]:            0             1000                0

      link[1 ]:Nbr IGP Id: 6.6.6.6, gen:39
          frag_id 1, Intf Address:192.168.56.5, Nbr Intf Address:192.168.56.6
          TE metric:64, IGP metric:64, attribute_flags:0x0
          physical_bw: 1544 (kbps), max_reservable_bw_global: 1000 (kbps)
          max_reservable_bw_sub: 0 (kbps)

                                 Global Pool       Sub Pool
               Total Allocated   Reservable        Reservable
               BW (kbps)         BW (kbps)         BW (kbps)
               ---------------   -----------       ----------
        bw[0]:            0             1000                0
        bw[1]:            0             1000                0
        bw[2]:            0             1000                0
        bw[3]:            0             1000                0
        bw[4]:            0             1000                0
        bw[5]:            0             1000                0
        bw[6]:            0             1000                0
        bw[7]:            0             1000                0

      link[2 ]:Nbr IGP Id: 7.7.7.7, gen:38
          frag_id 2, Intf Address:192.168.57.5, Nbr Intf Address:192.168.57.7
          TE metric:64, IGP metric:64, attribute_flags:0x0
          physical_bw: 1544 (kbps), max_reservable_bw_global: 1000 (kbps)
          max_reservable_bw_sub: 0 (kbps)

                                 Global Pool       Sub Pool
               Total Allocated   Reservable        Reservable
               BW (kbps)         BW (kbps)         BW (kbps)
               ---------------   -----------       ----------
        bw[0]:            0             1000                0
        bw[1]:            0             1000                0
        bw[2]:            0             1000                0
        bw[3]:          500              500                0
        bw[4]:            0              500                0
        bw[5]:            0              500                0
        bw[6]:            0              500                0
        bw[7]:            0              500                0

IGP Id: 6.6.6.6, MPLS TE Id:6.6.6.6 Router Node
      link[0 ]:Nbr IGP Id: 5.5.5.5, gen:31
          frag_id 0, Intf Address:192.168.56.6, Nbr Intf Address:192.168.56.5
          TE metric:64, IGP metric:0, attribute_flags:0x0
          physical_bw: 1544 (kbps), max_reservable_bw_global: 1000 (kbps)
          max_reservable_bw_sub: 0 (kbps)

                                 Global Pool       Sub Pool
               Total Allocated   Reservable        Reservable
               BW (kbps)         BW (kbps)         BW (kbps)
               ---------------   -----------       ----------
        bw[0]:            0             1000                0
        bw[1]:            0             1000                0
        bw[2]:            0             1000                0
        bw[3]:            0             1000                0
        bw[4]:            0             1000                0
        bw[5]:            0             1000                0
        bw[6]:            0             1000                0
        bw[7]:            0             1000                0

      link[1 ]:Nbr IGP Id: 7.7.7.7, gen:40
          frag_id 1, Intf Address:192.168.67.6, Nbr Intf Address:192.168.67.7
          TE metric:64, IGP metric:64, attribute_flags:0x0
          physical_bw: 1544 (kbps), max_reservable_bw_global: 1000 (kbps)
          max_reservable_bw_sub: 0 (kbps)

                                 Global Pool       Sub Pool
               Total Allocated   Reservable        Reservable
               BW (kbps)         BW (kbps)         BW (kbps)
               ---------------   -----------       ----------
        bw[0]:            0             1000                0
        bw[1]:            0             1000                0
        bw[2]:            0             1000                0
        bw[3]:            0             1000                0
        bw[4]:            0             1000                0
        bw[5]:            0             1000                0
        bw[6]:            0             1000                0
        bw[7]:            0             1000                0

IGP Id: 7.7.7.7, MPLS TE Id:7.7.7.7 Router Node
      link[0 ]:DR Intf Address: 192.168.78.8, gen:33
          frag_id 1, Intf Address:192.168.78.7
          TE metric:10, IGP metric:10, attribute_flags:0x0
          physical_bw: 10000 (kbps), max_reservable_bw_global: 1000 (kbps)
          max_reservable_bw_sub: 0 (kbps)

                                 Global Pool       Sub Pool
               Total Allocated   Reservable        Reservable
               BW (kbps)         BW (kbps)         BW (kbps)
               ---------------   -----------       ----------
        bw[0]:            0             1000                0
        bw[1]:            0             1000                0
        bw[2]:            0             1000                0
        bw[3]:          500              500                0
        bw[4]:            0              500                0
        bw[5]:            0              500                0
        bw[6]:            0              500                0
        bw[7]:            0              500                0

      link[1 ]:Nbr IGP Id: 5.5.5.5, gen:32
          frag_id 0, Intf Address:192.168.57.7, Nbr Intf Address:192.168.57.5
          TE metric:64, IGP metric:0, attribute_flags:0x0
          physical_bw: 1544 (kbps), max_reservable_bw_global: 1000 (kbps)
          max_reservable_bw_sub: 0 (kbps)

                                 Global Pool       Sub Pool
               Total Allocated   Reservable        Reservable
               BW (kbps)         BW (kbps)         BW (kbps)
               ---------------   -----------       ----------
        bw[0]:            0             1000                0
        bw[1]:            0             1000                0
        bw[2]:            0             1000                0
        bw[3]:            0             1000                0
        bw[4]:            0             1000                0
        bw[5]:            0             1000                0
        bw[6]:            0             1000                0
        bw[7]:            0             1000                0

      link[2 ]:Nbr IGP Id: 6.6.6.6, gen:32
          frag_id 2, Intf Address:192.168.67.7, Nbr Intf Address:192.168.67.6
          TE metric:64, IGP metric:0, attribute_flags:0x0
          physical_bw: 1544 (kbps), max_reservable_bw_global: 1000 (kbps)
          max_reservable_bw_sub: 0 (kbps)

                                 Global Pool       Sub Pool
               Total Allocated   Reservable        Reservable
               BW (kbps)         BW (kbps)         BW (kbps)
               ---------------   -----------       ----------
        bw[0]:            0             1000                0
        bw[1]:            0             1000                0
        bw[2]:            0             1000                0
        bw[3]:            0             1000                0
        bw[4]:            0             1000                0
        bw[5]:            0             1000                0
        bw[6]:            0             1000                0
        bw[7]:            0             1000                0

IGP Id: 8.8.8.8, MPLS TE Id:8.8.8.8 Router Node
      link[0 ]:DR Intf Address: 192.168.78.8, gen:9
          frag_id 0, Intf Address:192.168.78.8
          TE metric:10, IGP metric:10, attribute_flags:0x0
          physical_bw: 10000 (kbps), max_reservable_bw_global: 1000 (kbps)
          max_reservable_bw_sub: 0 (kbps)
         
                                 Global Pool       Sub Pool
               Total Allocated   Reservable        Reservable
               BW (kbps)         BW (kbps)         BW (kbps)
               ---------------   -----------       ----------
        bw[0]:            0             1000                0
        bw[1]:            0             1000                0
        bw[2]:            0             1000                0
        bw[3]:            0             1000                0
        bw[4]:            0             1000                0
        bw[5]:            0             1000                0
        bw[6]:            0             1000                0
        bw[7]:            0             1000                0

IGP Id: 192.168.78.8, Network Node
      link[0 ]:Nbr IGP Id: 8.8.8.8, gen:30

      link[1 ]:Nbr IGP Id: 7.7.7.7, gen:30
r4# 


r4#sh ip cef d
IP CEF with switching (Table Version 40), flags=0x0
  15 routes, 0 reresolve, 0 unresolved (0 old, 0 new), peak 0
  18 leaves, 26 nodes, 29344 bytes, 39 inserts, 21 invalidations
  0 load sharing elements, 0 bytes, 0 references
  universal per-destination load sharing algorithm, id B7E4AF56
  2(0) CEF resets, 3 revisions of existing leaves
  Resolution Timer: Exponential (currently 1s, peak 1s)
  4 in-place/0 aborted modifications
  refcounts:  6921 leaf, 6912 node

  Table epoch: 0 (18 entries at this epoch)

Adjacency Table has 3 adjacencies
0.0.0.0/0, version 0, epoch 0, attached, default route handler
0 packets, 0 bytes
  via 0.0.0.0, 0 dependencies
    valid null adjacency
0.0.0.0/32, version 0, epoch 0, receive
4.4.4.4/32, version 4, epoch 0, connected, receive
5.5.5.5/32, version 33, epoch 0, cached adjacency to Serial2/0
0 packets, 0 bytes
  via 192.168.45.5, Serial2/0, 0 dependencies
    next hop 192.168.45.5, Serial2/0
    valid cached adjacency
6.6.6.6/32, version 32, epoch 0, cached adjacency to Serial2/0
0 packets, 0 bytes
  via 192.168.45.5, Serial2/0, 0 dependencies
    next hop 192.168.45.5, Serial2/0
    valid cached adjacency
7.7.7.7/32, version 34, epoch 0, cached adjacency to Serial2/0
0 packets, 0 bytes
  via 192.168.45.5, Serial2/0, 0 dependencies
    next hop 192.168.45.5, Serial2/0
    valid cached adjacency
8.8.8.8/32, version 39, epoch 0
0 packets, 0 bytes
  tag information set
    local tag: tunnel-head
    fast tag rewrite with Tu0, point2point, tags imposed: {501}
  via 0.0.0.0, Tunnel0, 0 dependencies
    next hop 0.0.0.0, Tunnel0
    valid adjacency
    tag rewrite with Tu0, point2point, tags imposed: {501}
192.168.45.0/24, version 11, epoch 0, attached, connected, cached adjacency to Serial2/0
0 packets, 0 bytes
  via Serial2/0, 0 dependencies
    valid cached adjacency
192.168.45.0/32, version 9, epoch 0, receive
192.168.45.4/32, version 8, epoch 0, receive
192.168.45.255/32, version 10, epoch 0, receive
192.168.56.0/24, version 26, epoch 0, cached adjacency to Serial2/0
0 packets, 0 bytes
  via 192.168.45.5, Serial2/0, 0 dependencies
    next hop 192.168.45.5, Serial2/0
    valid cached adjacency
192.168.57.0/24, version 30, epoch 0, cached adjacency to Serial2/0
0 packets, 0 bytes
  via 192.168.45.5, Serial2/0, 0 dependencies
    next hop 192.168.45.5, Serial2/0
    valid cached adjacency
192.168.67.0/24, version 35, epoch 0, cached adjacency to Serial2/0
0 packets, 0 bytes
  via 192.168.45.5, Serial2/0, 0 dependencies
    next hop 192.168.45.5, Serial2/0
    valid cached adjacency
192.168.78.0/24, version 36, epoch 0, cached adjacency to Serial2/0
0 packets, 0 bytes
  via 192.168.45.5, Serial2/0, 0 dependencies
    next hop 192.168.45.5, Serial2/0
    valid cached adjacency
224.0.0.0/4, version 6, epoch 0
0 packets, 0 bytes, Precedence routine (0)
  via 0.0.0.0, 0 dependencies
    next hop 0.0.0.0
    valid drop adjacency
224.0.0.0/24, version 2, epoch 0, receive
255.255.255.255/32, version 1, epoch 0, receive


====================================================================================================
r5#sh ru
Building configuration...

Current configuration : 1208 bytes
!
version 12.2
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname r5
!
!
clock timezone CET 1
ip subnet-zero
no ip domain lookup
!
ip cef
mpls label range 500 599
mpls traffic-eng tunnels
!
!
!
interface Loopback0
 ip address 5.5.5.5 255.255.255.0
!        
interface Ethernet0/0
 no ip address
 shutdown
!
interface Serial1/0
 ip address 192.168.56.5 255.255.255.0
 mpls traffic-eng tunnels
 fair-queue 64 256 32
 ip rsvp bandwidth 1000 1000
!
interface Serial2/0
 ip address 192.168.45.5 255.255.255.0
 mpls traffic-eng tunnels
 fair-queue 64 256 32
 ip rsvp bandwidth 1000 1000
!
interface Serial3/0
 ip address 192.168.57.5 255.255.255.0
 mpls traffic-eng tunnels
 fair-queue 64 256 32
 ip rsvp bandwidth 1000 1000
!
router ospf 1
 router-id 5.5.5.5
 log-adjacency-changes
 passive-interface Loopback0
 network 5.5.5.5 0.0.0.0 area 0
 network 192.168.45.0 0.0.0.255 area 0
 network 192.168.56.0 0.0.0.255 area 0
 network 192.168.57.0 0.0.0.255 area 0
 mpls traffic-eng router-id Loopback0
 mpls traffic-eng area 0
!
ip classless
no ip http server
!
!
!
!
!
line con 0
 exec-timeout 0 0
 logging synchronous
line aux 0
line vty 0 4
 login   
!
end

r5#sh ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
       * - candidate default, U - per-user static route, o - ODR
       P - periodic downloaded static route

Gateway of last resort is not set

C    192.168.45.0/24 is directly connected, Serial2/0
     4.0.0.0/32 is subnetted, 1 subnets
O       4.4.4.4 [110/65] via 192.168.45.4, 00:10:48, Serial2/0
     5.0.0.0/24 is subnetted, 1 subnets
C       5.5.5.0 is directly connected, Loopback0
C    192.168.57.0/24 is directly connected, Serial3/0
O    192.168.78.0/24 [110/74] via 192.168.57.7, 00:10:48, Serial3/0
     6.0.0.0/32 is subnetted, 1 subnets
O       6.6.6.6 [110/65] via 192.168.56.6, 00:10:48, Serial1/0
C    192.168.56.0/24 is directly connected, Serial1/0
     7.0.0.0/32 is subnetted, 1 subnets
O       7.7.7.7 [110/65] via 192.168.57.7, 00:10:48, Serial3/0
     8.0.0.0/32 is subnetted, 1 subnets
O       8.8.8.8 [110/75] via 192.168.57.7, 00:10:48, Serial3/0
O    192.168.67.0/24 [110/128] via 192.168.57.7, 00:10:48, Serial3/0
                     [110/128] via 192.168.56.6, 00:10:48, Serial1/0

r5#sh ip rsvp installed
RSVP: Serial1/0 has no installed reservations
RSVP: Serial2/0 has no installed reservations
RSVP: Serial3/0
BPS    To              From            Protoc DPort  Sport
500K   8.8.8.8         4.4.4.4         0      0      152  
r5#sh tag for
Local  Outgoing    Prefix            Bytes tag  Outgoing   Next Hop   
tag    tag or VC   or Tunnel Id      switched   interface             
501    701         4.4.4.4 0 [152]   312        Se3/0      point2point

==============================================================================================
r6#sh ru
Building configuration...

Current configuration : 1080 bytes
!
version 12.2
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname r6
!
!
clock timezone CET 1
ip subnet-zero
no ip domain lookup
!
ip cef
mpls label range 600 699
mpls traffic-eng tunnels
!
!
!
interface Loopback0
 ip address 6.6.6.6 255.255.255.255
!        
interface Ethernet0/0
 no ip address
 shutdown
!
interface Serial1/0
 ip address 192.168.56.6 255.255.255.0
 mpls traffic-eng tunnels
 fair-queue 64 256 32
 ip rsvp bandwidth 1000 1000
!
interface Serial2/0
 ip address 192.168.67.6 255.255.255.0
 mpls traffic-eng tunnels
 fair-queue 64 256 32
 ip rsvp bandwidth 1000 1000
!
interface Serial3/0
 no ip address
 shutdown
!
router ospf 1
 router-id 6.6.6.6
 log-adjacency-changes
 passive-interface Loopback0
 network 6.6.6.6 0.0.0.0 area 0
 network 192.168.56.0 0.0.0.255 area 0
 network 192.168.67.0 0.0.0.255 area 0
 mpls traffic-eng router-id Loopback0
 mpls traffic-eng area 0
!
ip classless
no ip http server
!
!
!
!
!
line con 0
 exec-timeout 0 0
 logging synchronous
line aux 0
line vty 0 4
 login
!
end
         

r6#sh tag f
Local  Outgoing    Prefix            Bytes tag  Outgoing   Next Hop   
tag    tag or VC   or Tunnel Id      switched   interface


==================================================================================

r7#sh ru
Building configuration...

Current configuration : 1181 bytes
!
version 12.2
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname r7
!
!
clock timezone CET 1
ip subnet-zero
no ip domain lookup
!
ip cef
mpls label range 700 799
mpls traffic-eng tunnels
!
!
!
interface Loopback0
 ip address 7.7.7.7 255.255.255.255
!        
interface Ethernet0/0
 ip address 192.168.78.7 255.255.255.0
 mpls traffic-eng tunnels
 fair-queue 64 256 32
 ip rsvp bandwidth 1000 1000
!
interface Serial1/0
 no ip address
 shutdown
!
interface Serial2/0
 ip address 192.168.67.7 255.255.255.0
 mpls traffic-eng tunnels
 fair-queue 64 256 32
 ip rsvp bandwidth 1000 1000
!
interface Serial3/0
 ip address 192.168.57.7 255.255.255.0
 mpls traffic-eng tunnels
 fair-queue 64 256 32
 ip rsvp bandwidth 1000 1000
!
router ospf 1
 router-id 7.7.7.7
 log-adjacency-changes
 network 7.7.7.7 0.0.0.0 area 0
 network 192.168.57.0 0.0.0.255 area 0
 network 192.168.67.0 0.0.0.255 area 0
 network 192.168.78.0 0.0.0.255 area 0
 mpls traffic-eng router-id Loopback0
 mpls traffic-eng area 0
!
ip classless
no ip http server
!
!
!
!
!
line con 0
 exec-timeout 0 0
 logging synchronous
line aux 0
line vty 0 4
 login
!        
end

r7#sh ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
       * - candidate default, U - per-user static route, o - ODR
       P - periodic downloaded static route

Gateway of last resort is not set

O    192.168.45.0/24 [110/128] via 192.168.57.5, 00:13:01, Serial3/0
     4.0.0.0/32 is subnetted, 1 subnets
O       4.4.4.4 [110/129] via 192.168.57.5, 00:13:01, Serial3/0
     5.0.0.0/32 is subnetted, 1 subnets
O       5.5.5.5 [110/65] via 192.168.57.5, 00:13:01, Serial3/0
C    192.168.57.0/24 is directly connected, Serial3/0
C    192.168.78.0/24 is directly connected, Ethernet0/0
     6.0.0.0/32 is subnetted, 1 subnets
O       6.6.6.6 [110/65] via 192.168.67.6, 00:13:01, Serial2/0
O    192.168.56.0/24 [110/128] via 192.168.57.5, 00:13:01, Serial3/0
                     [110/128] via 192.168.67.6, 00:13:01, Serial2/0
     7.0.0.0/32 is subnetted, 1 subnets
C       7.7.7.7 is directly connected, Loopback0
     8.0.0.0/32 is subnetted, 1 subnets
O       8.8.8.8 [110/11] via 192.168.78.8, 00:13:01, Ethernet0/0
C    192.168.67.0/24 is directly connected, Serial2/0
r7# sh tag f
Local  Outgoing    Prefix            Bytes tag  Outgoing   Next Hop   
tag    tag or VC   or Tunnel Id      switched   interface             
701    Pop tag     4.4.4.4 0 [152]   768        Et0/0      192.168.78.8

=====================================================================================


r8#sh ru
Building configuration...

Current configuration : 868 bytes
!
version 12.2
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname r8
!
!
clock timezone CET 1
ip subnet-zero
no ip domain lookup
!
ip cef
mpls label range 800 899
mpls traffic-eng tunnels
!
!
!
interface Loopback0
 ip address 8.8.8.8 255.255.255.255
!        
interface Ethernet0/0
 ip address 192.168.78.8 255.255.255.0
 mpls traffic-eng tunnels
 ip rsvp bandwidth 1000 1000
!
interface Serial1/0
 no ip address
 shutdown
!
interface Serial2/0
 no ip address
 shutdown
!
interface Serial3/0
 no ip address
 shutdown
!
router ospf 1
 router-id 8.8.8.8
 log-adjacency-changes
 network 0.0.0.0 255.255.255.255 area 0
 mpls traffic-eng router-id Loopback0
 mpls traffic-eng area 0
!
ip classless
no ip http server
!
!
!
!
!
line con 0
 exec-timeout 0 0
 logging synchronous
line aux 0
line vty 0 4
 login
!
end

r8#  sh tag f
Local  Outgoing    Prefix            Bytes tag  Outgoing   Next Hop   
tag    tag or VC   or Tunnel Id      switched   interface     

===================================================================================
现象:

r4#traceroute 8.8.8.8

Type escape sequence to abort.
Tracing the route to 8.8.8.8

  1 192.168.45.5 [MPLS: Label 501 Exp 0] 20 msec 20 msec 20 msec
  2 192.168.57.7 [MPLS: Label 701 Exp 0] 20 msec 16 msec 20 msec
  3 192.168.78.8 28 msec *  28 msec

这时候

 

r6#sh tag f
Local  Outgoing    Prefix            Bytes tag  Outgoing   Next Hop   
tag    tag or VC   or Tunnel Id      switched   interface


在r5上做如下配置:
r5#sh ru int s3/0
Building configuration...

Current configuration : 141 bytes
!
interface Serial3/0
 ip address 192.168.57.5 255.255.255.0
 mpls traffic-eng tunnels
 fair-queue 64 256 32
 ip rsvp bandwidth 400 400
end


这时候:

r4#sh mpls traffic-eng tunnels

Name: r4_t0                               (Tunnel0) Destination: 8.8.8.8
  Status:
    Admin: up         Oper: up     Path: valid       Signalling: connected

    path option 10, type dynamic (Basis for Setup, path weight 202)

  Config Parameters:
    Bandwidth: 500      kbps (Global)  Priority: 3  3   Affinity: 0x0/0xFFFF
    Metric Type: TE (default)
    AutoRoute:  enabled   LockDown: disabled  Loadshare: 500      bw-based
    auto-bw: disabled

  InLabel  :  -
  OutLabel : Serial2/0, 500
  RSVP Signalling Info:
       Src 4.4.4.4, Dst 8.8.8.8, Tun_Id 0, Tun_Instance 178
    RSVP Path Info:
      My Address: 4.4.4.4  
      Explicit Route: 192.168.45.5 192.168.56.6 192.168.67.7 192.168.78.7
                      192.168.78.8 8.8.8.8
      Record   Route:  NONE
      Tspec: ave rate=500 kbits, burst=1000 bytes, peak rate=500 kbits
    RSVP Resv Info:
      Record   Route:  NONE
      Fspec: ave rate=500 kbits, burst=1000 bytes, peak rate=500 kbits
  History:
    Tunnel:
      Time since created: 1 hours, 32 minutes
      Time since path change: 2 minutes, 26 seconds
    Current LSP:
      Uptime: 2 minutes, 26 seconds
    Prior LSP:
      ID: path option 10 [177]
      Removal Trigger: path error

并且在r6上生成标签转发表:
r6#sh tag f
Local  Outgoing    Prefix            Bytes tag  Outgoing   Next Hop   
tag    tag or VC   or Tunnel Id      switched   interface             
600    700         4.4.4.4 0 [178]   840        Se2/0      point2point 

traceroute的结果:

r4#traceroute 8.8.8.8

Type escape sequence to abort.
Tracing the route to 8.8.8.8

  1 192.168.45.5 [MPLS: Label 500 Exp 0] 20 msec 32 msec 32 msec
  2 192.168.56.6 [MPLS: Label 600 Exp 0] 32 msec 32 msec 20 msec
  3 192.168.67.7 [MPLS: Label 700 Exp 0] 20 msec 20 msec 20 msec
  4 192.168.78.8 20 msec *  16 msec

接着恢复R5的接口配置,经过重新优化以后,应该选择R4-R5-R7-R8的路径。

 

r4#sh mpls traffic-eng tunnels

Name: r4_t0                               (Tunnel0) Destination: 8.8.8.8
  Status:
    Admin: up         Oper: up     Path: valid       Signalling: connected

    path option 10, type dynamic (Basis for Setup, path weight 202)

  Config Parameters:
    Bandwidth: 500      kbps (Global)  Priority: 3  3   Affinity: 0x0/0xFFFF
    Metric Type: TE (default)
    AutoRoute:  enabled   LockDown: disabled  Loadshare: 500      bw-based
    auto-bw: disabled

  InLabel  :  -
  OutLabel : Serial2/0, 500
  RSVP Signalling Info:
       Src 4.4.4.4, Dst 8.8.8.8, Tun_Id 0, Tun_Instance 151
    RSVP Path Info:
      My Address: 4.4.4.4  
      Explicit Route: 192.168.45.5 192.168.56.6 192.168.67.7 192.168.78.7
                      192.168.78.8 8.8.8.8
      Record   Route:  NONE
      Tspec: ave rate=500 kbits, burst=1000 bytes, peak rate=500 kbits
    RSVP Resv Info:
      Record   Route:  NONE
      Fspec: ave rate=500 kbits, burst=1000 bytes, peak rate=500 kbits
  History:
    Tunnel:
      Time since created: 1 hours, 14 minutes
      Time since path change: 9 seconds
    Current LSP:
      Uptime: 9 seconds
    Prior LSP:
      ID: path option 10 [107]
      Removal Trigger: path error

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

traceroute结果:

r4#traceroute 8.8.8.8

Type escape sequence to abort.
Tracing the route to 8.8.8.8

  1 192.168.45.5 [MPLS: Label 500 Exp 0] 20 msec 32 msec 20 msec
  2 192.168.57.7 [MPLS: Label 700 Exp 0] 40 msec 32 msec 32 msec
  3 192.168.78.8 20 msec *  20 msec

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

再在R4上的tunnel接口下配置:

r4(config-if)# tunnel mpls traffic-eng path-option 5 explicit name first

因为path-option 是5,比10小,它会优选手动定义的这条,
并且手动定义显式路径
ip explicit-path name first enable
 next-address 192.168.45.5
 next-address 192.168.56.6
 next-address 192.168.67.7
 next-address 192.168.78.8

r4# sh ip explicit-paths
PATH first (strict source route, path complete, generation 13)
    1: next-address 192.168.45.5
    2: next-address 192.168.56.6
    3: next-address 192.168.67.7
    4: next-address 192.168.78.8

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

手动优化以后:
r4#mpls traffic-eng reoptimize

r4#sh mpls traffic-eng tunnels

Name: r4_t0                               (Tunnel0) Destination: 8.8.8.8
  Status:
    Admin: up         Oper: up     Path: valid       Signalling: connected

    path option 5, type explicit first (Basis for Setup, path weight 202)
    path option 10, delayed clean in progress

  Config Parameters:
    Bandwidth: 500      kbps (Global)  Priority: 3  3   Affinity: 0x0/0xFFFF
    Metric Type: TE (default)
    AutoRoute:  enabled   LockDown: disabled  Loadshare: 500      bw-based
    auto-bw: disabled

  InLabel  :  -
  OutLabel : Serial2/0, 501
  RSVP Signalling Info:
       Src 4.4.4.4, Dst 8.8.8.8, Tun_Id 0, Tun_Instance 357
    RSVP Path Info:
      My Address: 4.4.4.4  
      Explicit Route: 192.168.45.5 192.168.56.6 192.168.67.7 192.168.78.7
                      192.168.78.8 8.8.8.8
      Record   Route:  NONE
      Tspec: ave rate=500 kbits, burst=1000 bytes, peak rate=500 kbits
    RSVP Resv Info:
      Record   Route:  NONE
      Fspec: ave rate=500 kbits, burst=1000 bytes, peak rate=500 kbits
  History:
    Tunnel:
      Time since created: 1 hours, 55 minutes
      Time since path change: 32 seconds
    Current LSP:
      Uptime: 32 seconds
      Selection: reoptimation
    Prior LSP:
      ID: path option 10 [356]
      Removal Trigger: reoptimization completed

这时候应该选R4-R5-R6-R7-R8

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

traceroute的结果:
r4#traceroute 8.8.8.8

Type escape sequence to abort.
Tracing the route to 8.8.8.8

  1 192.168.45.5 [MPLS: Label 501 Exp 0] 16 msec 32 msec 32 msec
  2 192.168.56.6 [MPLS: Label 600 Exp 0] 32 msec 20 msec 16 msec
  3 192.168.67.7 [MPLS: Label 701 Exp 0] 20 msec 16 msec 20 msec
  4 192.168.78.8 28 msec *  20 msec


=========================

 

 

posted on 2005-08-13 13:29  cunshen  阅读(867)  评论(0)    收藏  举报