10 Ip Routing

download 10 Ip Routing

of 23

Transcript of 10 Ip Routing

  • 8/11/2019 10 Ip Routing

    1/23

    aveen Patel

  • 8/11/2019 10 Ip Routing

    2/23

    aveen Patel

    10.0.0.1/8S0

    S110.0.0.2/8

    Head Office Branch Office

    E0192.168.1.1/24

    LAN - 192.168.1.0/24 LAN 192.168.2.0/24

    E0

    192.168.2.1/24

  • 8/11/2019 10 Ip Routing

    3/23

    aveen Patel

    Routing

    Routing is the process of moving packets from one network to

    another network.

    Routing involves two basic activities:

    Determining best paths.

    Forwarding Packets through these paths.

  • 8/11/2019 10 Ip Routing

    4/23

    aveen Patel

    Head Office Ethernet interface should be in the

    same network as your Head office LAN and similarly

    on Branch Office side. Show Diagram

    Head Office S0 and Branch Office S1 should be in samenetwork. Show Diagram

    Head Office LAN and Branch Office LAN should be in

    different Network. Show Diagram

    All interfaces of Router should be in different network.

    Show Diagram

    Rules of Routing

  • 8/11/2019 10 Ip Routing

    5/23

    aveen Patel

    Types of Routing

    Static Routing

    Default Routing

    Dynamic Routing

  • 8/11/2019 10 Ip Routing

    6/23

    aveen Patel

    Static Routing

    It is configured manuallyby Administrator.

    It is Secure & fast.

    Require Destination Network ID for configuration

    Used in Small Networks

    Administrative distance for Static Route is 0 and 1.

    {Administrative Distance (AD) is the trustworthiness of

    the routing information. AD range is 0-255, lesser the

    Administrative distance, higher the priority}

    i i k i

  • 8/11/2019 10 Ip Routing

    7/23

    aveen Patel

    Static Routing Network Diagram

    E0

    192.168.1.1/24

    LAN - 192.168.1.0/24 LAN 192.168.2.0/24

    10.0.0.1/8S0

    S110.0.0.2/8

    E0

    192.168.2.1/24

    Head Office Branch Office

  • 8/11/2019 10 Ip Routing

    8/23

    aveen Patel

  • 8/11/2019 10 Ip Routing

    9/23

    aveen Patel

    Routing Network Diagram

    Head Office Branch Office

    E0

    192.168.1.1/24

    LAN - 192.168.1.0/24 LAN 192.168.2.0/24

    10.0.0.1/8S0

    S110.0.0.2/8

    E0

    192.168.2.1/24

  • 8/11/2019 10 Ip Routing

    10/23

    aveen Patel

    Routing Network Diagram

    Head Office Branch Office

    E0

    192.168.1.1/24

    LAN - 192.168.1.0/24 LAN 192.168.2.0/24

    10.0.0.1/8S0

    S110.0.0.2/8

    E0

    192.168.2.1/24

  • 8/11/2019 10 Ip Routing

    11/23

    aveen Patel

    Routing Network Diagram

    Head Office Branch Office

    E0

    192.168.1.1/24

    LAN - 192.168.1.0/24 LAN 192.168.2.0/24

    10.0.0.1/8S0

    S110.0.0.2/8

    E0

    192.168.2.1/24

  • 8/11/2019 10 Ip Routing

    12/23

  • 8/11/2019 10 Ip Routing

    13/23

    aveen Patel

    Routing Network Diagram

    Head Office Branch Office

    E0

    192.168.1.1/24

    LAN - 192.168.1.0/24 LAN 192.168.2.0/24

    10.0.0.1/8S0

    S110.0.0.2/8

    E0

    192.168.2.1/24

  • 8/11/2019 10 Ip Routing

    14/23

    aveen Patel

    exit

    exit

    Hyderabad(config-if)#

    Hyderabad(config)#

    telnet 192.168.1.1

    ================================

    Welcome to Hyderabad Router

    ================================

    User Access Verification

    password :

    ****

    ****

    enable

    configure terminal

    interface serial 0

    ip address 10.0.0.1 255.0.0.0

    no shut

    clockrate 64000

    encapsulation hdlc

    Hyderabad>

    password :

    Hyderabad#

    Enter configuration commands, one per line. End with CNTL/Z.

    Hyderabad(config)#

    Hyderabad(config-if)#

    Hyderabad(config-if)#

    Hyderabad(config-if)#

    Hyderabad(config-if)#

    Microsoft Windows 2000 [Version 5.00.2195]

    (C) Copyright 1985-2000 Microsoft Corp.

    C:\>

    Connecting .....

    Hyderabad# Diagram

  • 8/11/2019 10 Ip Routing

    15/23

    aveen Patel

    exit

    exit

    Hyderabad(config-if)#

    Hyderabad(config)#

    telnet 192.168.1.1

    ================================

    Welcome to Hyderabad Router

    ================================

    User Access Verification

    password :

    ****

    ****

    enable

    configure terminal

    interface serial 0

    ip address 10.0.0.1 255.0.0.0

    no shut

    clockrate 64000

    encapsulation hdlc

    Hyderabad>

    password :

    Hyderabad#

    Enter configuration commands, one per line. End with CNTL/Z.

    Hyderabad(config)#

    Hyderabad(config-if)#

    Hyderabad(config-if)#

    Hyderabad(config-if)#

    Hyderabad(config-if)#

    Microsoft Windows 2000 [Version 5.00.2195]

    (C) Copyright 1985-2000 Microsoft Corp.

    C:\>

    Connecting .....

    Hyderabad# Diagram

  • 8/11/2019 10 Ip Routing

    16/23

    aveen Patel

    show ip routeyderabad#

    Default gateway is not set

    Host Gateway Last Use Total Uses Interface

    ICMP redirect cache is empty

    Hyderabad#

    show ip routeyderabad#

    Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP

    D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area

    N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2

    E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP

    i- IS-IS, L1-IS-IS level-1, L2-IS-IS level-2,*- candidate default

    U - per-user static route, o - ODR

    Gateway of last resort is not set

    C 192.168.1.0/24 is directly connected, Ethernet0

    C 10.0.0.0/8 is directly connected, Serial0

    Hyderabad#

    configure terminal

    Enter configuration commands, one per line. End with CNTL/Z.

    Hyderabad(config)# ip routing

    Hyderabad(config)#

    ^

    Z

    Enabling RoutingRouter(config)#ip routing

    Diagram

  • 8/11/2019 10 Ip Routing

    17/23

    aveen Patel

    Hyderabad#

    show ip routeyderabad#

    Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP

    D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area

    N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2

    E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP

    i- IS-IS, L1-IS-IS level-1, L2-IS-IS level-2,*- candidate default

    U - per-user static route, o - ODR

    Gateway of last resort is not set

    C 192.168.1.0/24 is directly connected, Ethernet0

    S 192.168.2.0/24 [1/0] via 10.0.0.2

    C 10.0.0.0/8 is directly connected, Serial0

    Hyderabad#

    Enter configuration commands, one per line. End with CNTL/Z.

    Hyderabad(config)#

    ip route 192.168.2.0 255.255.255.0 10.0.0.2

    Hyderabad(config)#

    ^

    Z

    configure terminal

    S for Static Routing1 is nothing but

    Administrative Distance

    Configuring Static Route

    Router(config)# ip route

    Or

    Router(config)# ip route

    Diagram

  • 8/11/2019 10 Ip Routing

    18/23

    aveen Patel

    exithennai(config)#

    Chennai#

    ================================

    Welcome to Chennai Router

    ================================

    User Access Verification

    password :

    ****

    ****

    enable

    configure terminal

    ip address 10.0.0.2 255.0.0.0

    no shut

    encapsulation hdlc

    exit

    Chennai>

    password :

    Chennai#

    Enter configuration commands, one per line. End with CNTL/Z.

    Chennai(config)#

    Chennai(config-if)#

    Chennai(config-if)#

    Chennai(config-if)#

    Chennai(config-if)#

    Microsoft Windows 2000 [Version 5.00.2195]

    (C) Copyright 1985-2000 Microsoft Corp.

    C:\>

    Connecting .....

    Chennai#

    telnet 192.168.2.1

    interface serial 1

    Diagram

  • 8/11/2019 10 Ip Routing

    19/23

    aveen Patel

    exithennai(config)#

    Chennai#

    ================================

    Welcome to Chennai Router

    ================================

    User Access Verification

    password :

    ****

    ****

    enable

    configure terminal

    ip address 10.0.0.2 255.0.0.0

    no shut

    encapsulation hdlc

    exit

    Chennai>

    password :

    Chennai#

    Enter configuration commands, one per line. End with CNTL/Z.

    Chennai(config)#

    Chennai(config-if)#

    Chennai(config-if)#

    Chennai(config-if)#

    Chennai(config-if)#

    Microsoft Windows 2000 [Version 5.00.2195]

    (C) Copyright 1985-2000 Microsoft Corp.

    C:\>

    Connecting .....

    Chennai#

    telnet 192.168.2.1

    interface serial 1

    Diagram

  • 8/11/2019 10 Ip Routing

    20/23

    aveen Patel

    show ip routehennai#

    Default gateway is not set

    Host Gateway Last Use Total Uses Interface

    ICMP redirect cache is empty

    Chennai#

    show ip routehennai#

    Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP

    D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area

    N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2

    E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP

    i- IS-IS, L1-IS-IS level-1, L2-IS-IS level-2,*- candidate default

    U - per-user static route, o - ODR

    Gateway of last resort is not set

    C 192.168.2.0/24 is directly connected, Ethernet0

    C 10.0.0.0/8 is directly connected, Serial1

    Chennai#

    configure terminal

    Enter configuration commands, one per line. End with CNTL/Z.

    Chennai(config)# ip routing

    Chennai(config)#

    ^

    Z

    Enabling RoutingRouter(config)#ip routing

    Diagram

  • 8/11/2019 10 Ip Routing

    21/23

    aveen Patel

    Chennai#

    show ip routehennai#

    Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP

    D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area

    N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2

    E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP

    i- IS-IS, L1-IS-IS level-1, L2-IS-IS level-2,*- candidate default

    U - per-user static route, o - ODR

    Gateway of last resort is not set

    C 192.168.2.0/24 is directly connected, Ethernet0

    S 192.168.1.0 is directly connected, Serial1

    C 10.0.0.0/8 is directly connected, Serial1

    Chennai#

    Enter configuration commands, one per line. End with CNTL/Z.

    Chennai(config)#

    ip route 192.168.1.0 255.255.255.0 S1

    Chennai(config)#

    ^

    Z

    configure terminal

    S for Static RoutingIf is directly connectedAdministrative Distance

    is 0

    Configuring Static Route

    Router(config)# ip route

    Or

    Router(config)# ip route

    Diagram

  • 8/11/2019 10 Ip Routing

    22/23

    aveen Patel

    Hyderabad#

    show ip routeyderabad#

    Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP

    D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area

    N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2

    E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP

    i- IS-IS, L1-IS-IS level-1, L2-IS-IS level-2,*- candidate default

    U - per-user static route, o - ODR

    Gateway of last resort is not set

    C 192.168.1.0/24 is directly connected, Ethernet0

    S 192.168.2.0/24 [1/0] via 10.0.0.2

    C 10.0.0.0/8 is directly connected, Serial0

    Hyderabad#

    Enter configuration commands, one per line. End with CNTL/Z.

    Hyderabad(config)#

    ip route 192.168.2.0 255.255.255.0 10.0.0.2

    Hyderabad(config)#

    ^

    Z

    configure terminal

    ping 192.168.2.10

    Type escape sequence to abort.

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

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

    Hyderabad#

    Diagram

  • 8/11/2019 10 Ip Routing

    23/23

    aveen Patel

    Chennai#

    show ip routehennai#

    Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP

    D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area

    N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2

    E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP

    i- IS-IS, L1-IS-IS level-1, L2-IS-IS level-2,*- candidate default

    U - per-user static route, o - ODR

    Gateway of last resort is not set

    C 192.168.2.0/24 is directly connected, Ethernet0

    S 192.168.1.0 is directly connected, Serial1

    C 10.0.0.0/8 is directly connected, Serial1

    Chennai#

    Enter configuration commands, one per line. End with CNTL/Z.

    Chennai(config)#

    ip route 192.168.1.0 255.255.255.0 S1

    Chennai(config)#

    ^

    Z

    configure terminal

    ping 192.168.1.10

    Type escape sequence to abort.

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

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

    Chennai#

    Diagram