Having a second connection that can move data in the event the primary connection fails is a wise move for today's corporate environment. You can back up a permanent connection or use dial backup, as it's usually called, in several ways to both alleviate congested conditions and provide an alternate route in the event of a link failure. Dial backup should not be confused with load sharing. Load sharing uses multiple paths to the same destination to send packets. Although dial backup can do this, this feature is usually secondary to making sure that data has a means to get to its destination. Because of this need, dial backup is usually performed on much slower links than load sharing is. Dial backup can use several different types of interfaces. It's normally configured for an ISDN Basic Rate Interface (BRI) or an analog modem attached to an asynchronous interface, but in advanced setups it might be configured to use a dialer pool or another serial interface. In addition to backing up a primary link in the event it goes down, a backup interface can also be configured to support a primary line in the event of congestion. The administrator can establish that the backup interface begins to transport data when a given bandwidth threshold on the primary is reached or exceeded. Configuring Dial Backup for Primary Link FailureTo configure a dial backup link to take over data transport in the event a primary link goes down, you have to do several things. See Listing 11.1 for an example. Listing 11.1 Dial backup configuration exampleRouter(config)# interface serial 0/0 Router(config-if)# backup interface bri0/0 Router(config-if)# backup delay ? <0-4294967294> Seconds never Never activate the backup line Router(config-if)# backup delay 20 ? <0-4294967294> Seconds never Never activate the backup line Router(config-if)# backup delay 20 20 The tasks can be broken down as follows:
The backup interface command options are as follows:
Once you configure both the primary and backup interfaces, you place the backup interface in a standby mode. The standby mode simulates a down interface until needed. No traffic passes through the backup interface, and traffic doesn't use the properly configured routes through the interface. The router with the backup interface configured monitors the status of keepalives, small packets that networking devices send to each other. If carrier isn't detected on the primary link or if keepalives don't arrive from the neighbor router on a regular basis, then your router assumes the primary link has failed and activates the backup. Floating Static RoutesA static route is a route that someone has manually configured. It tells the router that to reach a certain network you must send data out this interface. Here are two examples of static routes: Router(config)#ip route 192.168.4.0 255.255.255.0 BRI0/0 Router(config)#ip route 192.168.5.0 255.255.255.0 172.16.4.1 The first route points all data that wants to go to the 192.168.4.0/24 network out local interface BRI0/0. Whatever this interface is connected to will be able to forward the data to the destination network. The second instance tells the router to forward all data going to the 192.168.5.0/24 network to a specific remote host, 172.16.4.1. This host might be a device the router is directly connected to or it might be a few hops away. In any case, the router must have a route to this device to forward traffic to it. Because a router must have a way to determine the best route, it prefers certain routing protocols to others. Cisco routers believe the information provided by static routes is extremely accurate and prefer those routes instead of routes learned via dynamic routing protocols. Table 11.1 shows the relative importance of some routing processes.
This preference leads to a problem. If you're running a dynamic routing protocol across the primary link on your router, you need to establish a static route to the other networks via the dial backup interface. But if you do so, then the router will prefer to use the dial backup interface rather than the (probably faster) primary interface. A solution exists in the form of a floating static route. In a floating static route, like the one shown in the next line of code, the AD for a static route is changed from 0 or 1 to something higher than the AD for the dynamic routing protocol you're using across the primary: Router(config)#ip route 192.168.4.0 255.255.255.0 172.16.4.1 130 This example shows an alternate route to the 192.168.4.0/24 network. The primary method of getting to the destination network is through BRI0/0, but this command has added a less desirable but still valid option. The router compares the AD of the two routes and use the one pointing to BRI0/0 first because it has the lower AD; 0 is lower than 130. If the BRI interface is ever inactive, the router begins looking for alternatives and uses this route if it has the best AD of those available. If you have a router running OSPF, the AD is 110. If you set up a static route pointing to an IP network that OSPF already knows about, then the router will prefer to use the path specified by the static route. You can fool the router by changing the AD the static route uses to something higher than the value your routing protocol uses. If you establish a static route and tell the router that the AD for this route is 130, then the router will prefer to use OSPF routes if they are available. This technique allows you to run a dynamic routing protocol across the primary link but have an alternate route via the backup link. The command follows: ip route <destination-network> <destination-network mask> {local-interface | remote device address} <AD> The ip route command's options follow:
An example is ip route 10.1.2.0 255.255.255.0 BRI0 130. This command tells the router that to send routes to network 10.1.2.0, it should use interface BRI0. By adding the AD of 130, you make the router compare this route to its existing routing table. In the event of multiple paths to the 10.1.2.0 network, the router uses the active route with the lowest AD. The command ip route 10.1.2.0 255.255.255.0 192.168.1.4 130 also makes the router check its routing table, but instead of sending packets out of the BRI0 interface, the router forwards packets to the device 192.168.1.4. To keep things simple, this device should be a neighboring device. Activating Dial Backup to Support a Primary LinkYou can configure dial backup to activate an interface when the amount of traffic on the primary link reaches or exceeds a certain threshold. Once you select and configure the primary link interface, you need to add this command: backup load {enable-threshold | never} {disable-threshold | never} Listing 11.2 shows the console output of a router as this command is being entered. Listing 11.2 Configuring the backup loadRouter(config)# interface serial 0/0 Router(config-if)# backup load ? <0-100> Percentage never Never activate the backup line Router(config-if)# backup load 70 <0-100> Percentage never Never activate the backup line Router(config-if)# backup load 70 40 The backup load command's threshold options follow:
|