Ip Routing i

Embed Size (px)

Citation preview

  • 7/31/2019 Ip Routing i

    1/21

    IP ROUTING

  • 7/31/2019 Ip Routing i

    2/21

    INTRODUCTION

    IP Routing is a term defining the set of protocols that

    determine the path that data follows in order to travel

    across multiple networks from its source to its

    destination. Data is routed from its source to its destination through

    a series of routers, and across multiple networks. The IP

    Routing protocols enable routers to build up a

    forwarding table that correlates final destinations withnext hop addresses

  • 7/31/2019 Ip Routing i

    3/21

    INTRODUCTION

    When an IP packet is to be forwarded, a router uses its

    forwarding table to determine the next hop for the

    packet's destination (based on the destination IP

    address in the IP packet header), and forwards thepacket appropriately. The next router then repeats this

    process using its own forwarding table, and so on until

    the packet reaches its destination. At each stage, the IP

    address in the packet header is sufficient informationto determine the next hop; no additional protocol

    headers are required.

  • 7/31/2019 Ip Routing i

    4/21

    DNS

    DNS resolves hostnames to their corresponding IP addresses

    DNS Server

    DNS Server

  • 7/31/2019 Ip Routing i

    5/21

    DNS

    If the name cannot be resolved, a DNS query is sent outto other DNS servers

    DNS query

    DNS query

  • 7/31/2019 Ip Routing i

    6/21

    ARP

    ARP resolves IP addresses to their corresponding MAC addresses

    Resolved addresses are stored in an ARP cache

  • 7/31/2019 Ip Routing i

    7/21

    ARP

    My address is not192.168.10.2

    I should not respond

    192.168.10.3

    192.168.10.1

    Resolved addresses are stored in an ARP cache

  • 7/31/2019 Ip Routing i

    8/21

    PROXY ARP

    The ARP query is a broadcast and will not reach host 172.12.0.2 because of the router

  • 7/31/2019 Ip Routing i

    9/21

    PROXY ARP

    The router responds with its own MAC address

  • 7/31/2019 Ip Routing i

    10/21

    DHCP

    DHCP is used to automatically assign IP addresses to hosts on a

    network segment

  • 7/31/2019 Ip Routing i

    11/21

    ROUTING

    The term routing means sending packets to their appropriate destinations

    Routers are only able to forward packets to networks known to them

    To route, a router needs to do the following:

    o Know the destination address

    o Identify the sources it can learn from

    o Discover possible routeso Select the best route

    o Maintain and verify routing information

  • 7/31/2019 Ip Routing i

    12/21

    ROUTING

    A route is a defined pair of addresses: adestination and a gateway. The pair indicatesthat if you are trying to get to this destination,communicate through this gateway.

    There are three types of destinations: individual hosts

    subnets

    default

    The default route is used if none of the otherroutes apply.

  • 7/31/2019 Ip Routing i

    13/21

    ROUTING

    Routers store routes in a table called routing table

    If the destination address is not known to the router (in

    the routing table), the packet is deleted

    Router>enable

    Router#show ip route

  • 7/31/2019 Ip Routing i

    14/21

    TYPES OF ROUTING

    There are two types of routing that can be

    configured on a network device:

    Static routes are hard-coded on a network device.

    They tell the device exactly where to send traffic

    Dynamic routes, on the other hand, use a routing

    protocol to determine the best path. If one route

    becomes less preferred, the route being used maychange.

  • 7/31/2019 Ip Routing i

    15/21

    ADMINISTRATIVE DISTANCE

    When there are two or more routes to the samedestination, routers use administrative distance todecide which routing protocol (or static route) to

    trust more.

  • 7/31/2019 Ip Routing i

    16/21

    ADMINISTRATIVE DISTANCE

    Route Administrative distance

    Direct connection 0

    Static route 1

    EIGRP 90

    IGRP 100

    OSPF 110

    RIP 120

    External EIGRP 170

    Unreachable 255

    The lower the AD the more trustworthy the route

    Because of how administrative

    distance works, when you

    enter static routes that are the

    same as a dynamic route

    (learned from another router),

    your static route will be used

    over the dynamic route. As youmay be overriding routes

    manually, you must make sure

    your routes are accurate.

  • 7/31/2019 Ip Routing i

    17/21

    STATIC ROUTES

    Static routes are unidirectional routes and should be pointed

    in the right direction.

  • 7/31/2019 Ip Routing i

    18/21

    STATIC ROUTES

    Router> enable

    Router# configure terminal

    Router(config)# ip route 10.10.20.0 255.255.255.0 192.168.100.1

    ip route [destination network] [destination mask] [exit int]

    or

    [next hop ip]

    Static routes must be configured for all routes in the internetwork in the appropriate

    direction

  • 7/31/2019 Ip Routing i

    19/21

    STATIC ROUTES

  • 7/31/2019 Ip Routing i

    20/21

    STATIC DEFAULT ROUTES

    Default routes are used to flag a network as a

    candidate default

  • 7/31/2019 Ip Routing i

    21/21