Configuring Routes

Configure a static route

  • IPv4
    • config# ip route <destination address> <netmask> <next-hop add. or local interface> <ad>
      • Destination address
        • Network address of the target network
      • Netmask
        • subnet mask of the target destination written in dotted-decimal
      • Next-hop Address or Local interface
        • Either the IP address of the directly-connected neighbor interface, or the local interface you want to send traffic out of
      • AD (Administrative Distance)
        • Default is 1, but can be manually set
        • To configure a Floating Static Route, assign an AD of 1 or more than the
  • IPv6
    • config# ip route <destination address and netmask> <next-hop add. and/or local interface> <ad>
      • Destination address and netmask
        • The target network address with it's slash-notation subnet mask
          • e.g., 2001:db8::1/64
      • Next-hop address and/or Local interface
        • There are three possible configurations:
          • Directly Connected
            • Only the local interface is listed
          • Recursive
            • Only the neighbor IP address is listed
            • Called "Recursive" because it has to check the routing table twice
              • It has to check the routing table twice; first to see where to send the packet, next to see which interface is connected to the neighbor IP
          • Fully Specified
            • Identifies both the local interface and the neighbor IP
      • AD (Administrative Distance)
        • Default is 1, but can be manually set
        • To configure a Floating Static Route, assign an AD of 1 or more than the

OSPF

RIP

Metadata

OSI or TCP/IP Layer

CCNA Exam Topic

Contributors

Sources