Cisco CCNA / CCNP Certification Exam Tutorial: Floating Static Routes

By: Chris Bryant
Submitted: 2007-01-17 15:44:36
Print this article | Tell a friend | For publisher | Social Bookmarking
Rating:
 

To pass the Cisco CCNA and CCNP certification exams, as well as becoming a world-class networker, you've got to know how and when to use floating static routes. And if you're wondering what makes them "float" -- read on!

In this example, R1 and R2 are running OSPF over a Frame Relay network, 172.12.123.0 /24. They're also connected by a BRI ISDN link, 172.12.12.0 /24. R1 is advertising a loopback network, 1.1.1.1 /32, via OSPF. We want R2 to have a route to that loopback even if the frame goes down - and here, we'll use a floating static route to make that happen.

R2 sees the route to the loopback interface via OSPF, and can ping that interface successfully.

R2#show ip route ospf

1.0.0.0/32 is subnetted, 1 subnets

O 1.1.1.1 [110/65] via 172.12.123.1, 00:00:02, Serial0

R2#ping 1.1.1.1

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 68/68/68 ms

This is when it's important to know your administrative distances.... or at least know where to look to see them! The AD of OSPF is 110, which means we can configure a static route to 1.1.1.1 /32, and as long as the AD of the static route is higher than 110, it won't be used unless the OSPF route leaves the routing table. That's why this kind of route is called a "floating" static route - the route "floats" in the routing table and isn't seen unless the primary route leaves the table.

You learned how to write a static route in your CCNA studies, but you also remember that the default AD of a static route is either 1 or 0... and both of those values are less than 110! To change the AD of a static route, configure the desired distance at the end of the ip route command.

R2(config)#ip route 1.1.1.1 255.255.255.255 bri0 ?

<1-255> Distance metric for this route

A.B.C.D Forwarding router's address

name Specify name of the next hop

permanent permanent route

tag Set tag for this route

R2(config)#ip route 1.1.1.1 255.255.255.255 bri0 111

The static route has an AD that's only one higher than that of the OSPF route, but that's enough to make the route "float" and not yet be seen in the routing table.

R2#show ip route

1.0.0.0/32 is subnetted, 1 subnets

O 1.1.1.1 [110/65] via 172.12.123.1, 00:06:44, Serial0

172.12.0.0/24 is subnetted, 2 subnets

C 172.12.12.0 is directly connected, BRI0

C 172.12.123.0 is directly connected, Serial0

Let's see the effect on the routing table when the Serial0 interface is closed.

R2(config)#int s0

R2(config-if)#shutdown

12:04:53: %OSPF-5-ADJCHG: Process 1, Nbr 172.12.123.1 on Serial0 from FULL to DOWN, Neighbor Down: Interface down or detached

12:04:55: %SYS-5-CONFIG_I: Configured from console by console

12:04:55: %LINK-5-CHANGED: Interface Serial0, changed state to administratively down

12:04:56: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0, changed state to down

R2#show ip route

1.0.0.0/32 is subnetted, 1 subnets

S 1.1.1.1 is directly connected, BRI0

172.12.0.0/24 is subnetted, 1 subnets

C 172.12.12.0 is directly connected, BRI0

The floating static route appears in the table, but the ISDN link will not come up until the BRI interface has traffic to send. Let's ping 1.1.1.1 and see what happens. debug dialer was configured on R2 before sending the ping.

R2#ping 1.1.1.1

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:

12:16:01: BR0 DDR: Dialing cause ip (s=172.12.12.2, d=1.1.1.1)

12:16:01: BR0 DDR: Attempting to dial 8358661

12:16:01: %LINK-3-UPDOWN: Interface BRI0:1, changed state to up.!!

12:16:01: BR0:1 DDR: dialer protocol up!!

Success rate is 80 percent (4/5), round-trip min/avg/max = 36/37/40 ms

The link comes up and traffic can still reach 1.1.1.1. Once R2 becomes an OSPF neighbor of R1 again, the OSPF route will again become the primary path and the floating static route leaves the routing table.

R2(config)#int s0

R2(config-if)#no shut

R2#show ip ospf neighbor

Neighbor ID Pri State Dead Time Address Interface

172.12.123.1 1 FULL/DR 00:01:57 172.12.123.1 Serial0

R2#show ip route

1.0.0.0/32 is subnetted, 1 subnets

O 1.1.1.1 [110/65] via 172.12.123.1, 00:00:16, Serial0

172.12.0.0/24 is subnetted, 2 subnets

C 172.12.12.0 is directly connected, BRI0

C 172.12.123.0 is directly connected, Serial0

A floating static route is an excellent "back door" that will keep the ISDN link down while allowing that link to serve as a backup route. Just make sure the ISDN link comes down when you expect it to - always check that with show isdn status!

Chris Bryant, CCIE #12933, is the owner of The Bryant Advantage, home of free CCNA and CCNP tutorials, The Ultimate CCNA Study Package, and Ultimate CCNP Study Packages.

You can also join his RSS feed and visit his blog, which is updated several times daily with new Cisco certification articles, free tutorials, and daily CCNA / CCNP exam questions! Details are on the website.

For a FREE copy of his latest e-books, “How To Pass The CCNA” and “How To Pass The CCNP”, visit the website and download your free copies. You can also get FREE CCNA and CCNP exam questions every day! And coming in 2007 -- Microsoft Vista certification from The Bryant Advantage!

Article source: Expert Articles

Most Recent Articles in Certification Tests category

  • How to Take Local Business to Next Level - By: Sudesh Kumar
    A recent study by a leading marketing consultant reveals that most shoppers use the Internet to surf local business offers and opportunities. Local business marketing has grown significantly during the past few years. Many companies offer services such as local promotion, local advertising, local business directory, local ads, business profiling and merchant advertising at easily affordable rates.
  • Cathay School Offers One-on-One CISCO CCIE Routing and Switching Boot Camp Training - By: Fandy Du
    two tracks for CCIE Routing and Switching Training,one is called Intensive Track (CRSLT-I), which takes 14 days to have it done, the other is called Fast Track (CRSLT-F) which probably takes 18 days.
  • The Benefits of Latest Computer Training Courses - By: Alok Kumar
    The field of education encompasses a wide variety of career paths and can prepare individuals to be programmers, software developers, systems analysts, database administrators, or computer scientists.
  • Why should you avoid getting a Braindump Certification? - By: M. Aslam
    Generally speaking, Braindumps refers to lists of questions and answers from an actual IT certification exam. This dangerous, illegal and unethical trend is like a plague to IT profession as well as industry
  • Why Does Certification Validate Your Skills as an IT Professional at ABCO Technology? - By: Alok Kumar
    ABCO Technology prepares individuals to work in the field of IT (Information Technology) or enhance individual's technical skills for other career areas. The field of education encompasses a wide variety of career paths and can prepare individuals to be programmers, software developers, systems analysts, database administrators, or computer scientists. Also provides Computer Training Courses, IT Training Courses, CCNA Training, MCSE Training and Many More.
  • Test Taking Techniques to Help You Get Certified! - By: john strong
    As always, tests and exams will scare you when you think about getting certified. Remember that you won’t die if you flunk the test and life won’t fall apart either. Relax, prepare and give the test. Here’s how!
  • IP Address Classes, and Address Masks - By: Vijayanand Yadla
    IP AddressingAn IP address is a unique logical identifier for a node or host connection on an IP network. IP address is a 32 bit binary number, and represented by 4 decimal values of 8 bits each. The decimal values range from 0 to 255.
  • Information Technology Schools - By: Michael Bustamante
    Information Technology Schools prepare students for computer-related professions with the knowledge, skills, and experience needed for a professional career.Programs in Information Technology (IT) make it possible to earn Bachelor of Science (BS), Master of Science (MS), and Doctorate in Computer Science (DCS) degrees. Degree programs offer concentrations in various areas of IT to meet demands of the industry and to impart qualifications that contribute to organizational productivity and success.
  • Seven Layers of ISO OSI Model - By: Vijayanand Yadla
    The ISO OSI model are explained below. The seven layers of the OSI model are: Application Presentation Session Transport Network Antiqua">Data Link Physical 1 Application layer: This layer provides a means for the user to access information on the network through an application. Many user applications that need to communicate over the network interact with the Application layer protocol directly.
  • Cisco CCNA Certification Exam Training: What Is Packet Switching - By: Chris Bryant
    Cisco CCNA certification exam training means you've got to learn a lot of new terms, and some of them can be a little confusing at first. To pass this tough certification exam, one term you definitely need to understand is packet switching. The first question, of course, is "What is packet switching in the first place?