Configuring the backup mechanism

Last Updated : Nov 06, 2012 |
Prolog information
  1. Define four RTRs to probe the four entrances to the main office.
    ADDITIONAL INFORMATION:
    Configure each RTR to run immediately and forever.
  2. Define four object trackers to track the four RTRs.
  3. Define a track list consisting of all four object trackers, and configure it so that if all object trackers are up, the track list is up, and if two or less of the object trackers are up, the track list is down.
  4. Register the WAN FastEthernet interface with the track list.
  5. Define Loopback 1 as a backup interface for the WAN FastEthernet interface.
    ADDITIONAL INFORMATION:
    Thus, when the track list is down the Loopback interface will be up until the track list is up again.
    Note that RTR packets continue to be sent over the PPPoE interface as long as the PPP-IPCP connection status is up.
    ! Define four object trackers to track the four RTRs.
    !
    track 1 rtr 1
        exit
    track 2 rtr 2
        exit
    track 3 rtr 3
        exit
    track 4 rtr 4
        exit
    !
    ! Define a track list consisting of the four object trackers.
    ! Define a threshold calculation such that if all four object trackers
    ! are up, the list is up, and if 2 or less are up, the list is down.
    !
    track 50 list threshold count
        threshold count up 4 down 2
        object 1
        object 2
        object 3
        object 4
        exit

    ! Configure PPPoE encapsulation on interface WAN FastEthernet 10/2, and
    ! register the interface with the track list.
    !
    interface fastethernet 10/2
        bandwidth 96
        encapsulation  pppoe
        traffic-shape rate 96000
        ip address negotiated
        keepalive-track 50
        exit
    !
    ! Configure the loopback 1 interface
    !
    interface loopback 1
    ip address 10.0.0.1        255.0.0.0      
     exit
    !
    ! Assign the loopback 1 interface to be the backup interface for
    ! interface WAN FastEthernet 10/2.
    !
    interface fastethernet 10/2
        backup interface loopback 1
        backup delay 0 60
        exit