ODL010012 Static Route and RIP Configuration laboratory Exercise Guide ISSUE1.pdf

Download ODL010012 Static Route and RIP Configuration  laboratory Exercise Guide ISSUE1.pdf

Post on 01-Jan-2016

222 views

Category:

Documents

1 download

Embed Size (px)

TRANSCRIPT

  • ODL010008 Static Route and RIP Configuration

    Laboratory Exercise Guide ISSUE 1.0

  • ODL010008 Static Route and RIP Configuration Laboratory ExerciseGuide ISSUE1.0 Table of Contents

    Huawei.

    i

    Table of Contents

    About This Course ............................................................................................................................1 Test Instructions ...........................................................................................................................1 About This Manual .......................................................................................................................1 Test Objectives ............................................................................................................................1 Test Tasks ...................................................................................................................................1 Relevant Materials .......................................................................................................................1

    Chapter 1 Static routing ....................................................................................................................1 1.1 Networking and Service Introduction .....................................................................................1 1.2 Command Line List ................................................................................................................1 1.3 Configuration flow ..................................................................................................................1 1.4 Configuration procedure ........................................................................................................1 1.5 Result Verification ..................................................................................................................2 1.6 Configuration Reference ........................................................................................................2

    Chapter 2 Default Route ...................................................................................................................3 2.1 Networking and Service Introduction .....................................................................................3 2.2 Command Line List ................................................................................................................3 2.3 Configuration flow ..................................................................................................................3 2.4 Configuration procedure ........................................................................................................3 2.5 Result Verification ..................................................................................................................4 2.6 Configuration Reference ........................................................................................................4

    Chapter 3 Route Link Backup ..........................................................................................................5 3.1 Networking and Service Introduction .....................................................................................5 3.2 Command Line List ................................................................................................................5 3.3 Configuration flow ..................................................................................................................5 3.4 Configuration procedure ........................................................................................................5 3.5 Result Verification ..................................................................................................................6 3.6 Configuration Reference ........................................................................................................6

    Chapter 4 RIP Configuration ............................................................................................................8 4.1 Networking and Service Introduction .....................................................................................8 4.2 Command Line List ................................................................................................................8 4.3 Configuration flow ..................................................................................................................9 4.4 Configuration procedure ........................................................................................................9 4.5 Result Verification ..................................................................................................................9 4.6 Configuration Reference ..................................................................................................... 10

  • ODL010008 Static Route and RIP Configuration Laboratory ExerciseGuide ISSUE1.0

    Huawei.

    1

    About This Course

    Test Instructions

    This Test Guide mainly describes the basic configuration methods and configuration processes for a static route and the RIP routing protocol. It shows you how to configure a static route and the RIP routing protocol.

    About This Manual

    This Guide is applicable to VRP versions 3.30RELEASE 0008 and 5.10RELEASE 0039

    Test Objectives

    To understand the basic principles of static routes and RIP. To grasp configuration process for static routes and RIP. To get familiar with configuration commands for static routes and RIP.

    Test Tasks

    Configure a static route Configure the default route Configure route link backup Configuring routing protocols

    Relevant Materials

    VRP3.30 Operation Manual VRP5.10 Operation Manual

  • ODL010008 Static Route and RIP Configuration Laboratory Exercise Guide ISSUE1.0

    Huawei.

    1

    Chapter 1 Static routing

    1.1 Networking and Service Introduction

    RRRR

    L1: 1.1.1.1/32 L1: 2.2.2.2/3210.1.1.0/30

    RTA RTB

    .2.1

    RRRR

    L1: 1.1.1.1/32 L1: 2.2.2.2/3210.1.1.0/30

    RTA RTB

    .2.1

    Figure 1-1 Hands-in guide to a static route

    Use the 10.1.1.0/30 network segment to connect RTA and RTB. Configure such a static route that can make the 1.1.1.1/32 network segment access the 2.2.2.2/32 network segment, and vice versa.

    1.2 Command Line List

    Table 1-1

    Operation Command

    Add a static route

    ip route-static dest-address { mask | mask-length } { interface-name [ nexthop-address ] | nexthop-address } [ preference preference-value ] [ reject | blackhole ]

    ip route-static [ vpn-instance vpn-instance-name ] ip-address { mask | mask-length } { nexthop-address | interface-type interface-number [ nexthop-address ] } [ preference preference ]

    1.3 Configuration flow

    Configure IP address for

    an interface

    Configure a static route

    1.4 Configuration procedure

    1) Configure interfaces.

  • ODL010008 Static Route and RIP Configuration Laboratory Exercise Guide ISSUE1.0

    Huawei Technologies Co., Ltd.

    2

    Create a loopback address 1.1.1.1/32 and an interface address 10.1.1.1/30 for RTA.

    Create a loopback address 2.2.2.2/32 and an interface address 10.1.1.2/30 for RTB.

    2) Configure a static route On RTA, configure a static route to the loopback address of RTB. Likewise, on RTB, configure a static route to the loopback address of RTA.

    1.5 Result Verification

    Upon completion of configuration, execute the display ip routing-table command to observe routing tables of the two routers.

    [RTA]display ip routing-table Routing Table: public net Destination/Mask Protocol Pre Cost Nexthop Interface 1.1.1.1/32 DIRECT 0 0 127.0.0.1 InLoopBack0 2.2.2.0/30 STATIC 60 0 10.1.1.2 Ethernet0/0 10.1.1.0/30 DIRECT 0 0 10.1.1.1 Ethernet0/0 10.1.1.1/32 DIRECT 0 0 127.0.0.1 InLoopBack0 127.0.0.0/8 DIRECT 0 0 127.0.0.1 InLoopBack0 127.0.0.1/32 DIRECT 0 0 127.0.0.1 InLoopBack0

    [RTB]display ip routing-table Routing Table: public net Destination/Mask Protocol Pre Cost Nexthop Interface 1.1.1.1/32 STATIC 60 0 10.1.1.1 Ethernet0/0 2.2.2.2/32 DIRECT 0 0 127.0.0.1 InLoopBack0 10.1.1.0/30 DIRECT 0 0 10.1.1.2 Ethernet0/0 10.1.1.2/32 DIRECT 0 0 127.0.0.1 InLoopBack0 127.0.0.0/8 DIRECT 0 0 127.0.0.1 InLoopBack0 127.0.0.1/32 DIRECT 0 0 127.0.0.1 InLoopBack0

    1.6 Configuration Reference

    Configuration of router A: [RTA]interface Ethernet 0/0 [RTA-Ethernet0/0]ip address 10.1.1.1 30 [RTA-Ethernet0/0]quit [RTA]interface LoopBack 1 [RTA-LoopBack1]ip address 1.1.1.1 32 [RTA-LoopBack1]quit [RTA]ip route-static 2.2.2.0 32 10.1.1.2

    Configuration of router A: [RTB]interface Ethernet 0/0 [RTB-Ethernet0/0]ip address 10.1.1.2 30 [RTB-Ethernet0/0]quit [RTB]interface LoopBack 1 [RTB-LoopBack1]ip address 2.2.2.2 32 [RTB-LoopBack1]quit [RTB]ip route-static 1.1.1.1 32 10.1.1.1

  • ODL010008 Static Route and RIP Configuration Laboratory Exercise Guide ISSUE1.0

    Huawei.

    3

    Chapter 2 Default Route

    2.1 Networking and Service Introduction

    RRRR

    L1: 1.1.1.1/32 L1: 2.2.2.2/3210.1.1.0/30

    RTA RTB

    .2.1

    RRRR

    L1: 1.1.1.1/32 L1: 2.2.2.2/3210.1.1.0/30

    RTA RTB

    .2.1

    Use the 10.1.1.0/30 network segment to connect RTA to RTB. On RTB, configure a default route to make RTA a gateway for RTB.

    2.2 Command Line List

    Operation Command

    Add a static route

    ip route-static dest-address { mask | mask-length } { interface-name [ nexthop-address ] | nexthop-address } [ preference preference-value ] [ reject | blackhole ]

    ip route-static [ vpn-instance vpn-instance-name ] ip-address { mask | mask-length } { nexthop-address | interface-type interface-number [ nexthop-address ] } [ preference preference ]

    2.3 Configuration flow

    2.4 Configuration procedure

    1) Configure interfaces. Create a loopback address 1.1.1.1/32 and an interface address 10.1.1.1/30 for RTA.

    Create a loopback address 2.2.2.2/32 and an interface address 10.1.1.2/30 for RTB.

    2) Configure a static route and a default route On RTA, configure a static route to the loopback address of RTB. On RTB, configure a default route to RTA.

  • ODL010008 Static Route and RIP Configuration Laboratory Exercise Guide ISSUE1.0

    Huawei Technologies Co., Ltd.

    4

    2.5 Result Verification

    Upon completion of configuration, execute the display ip routing-table command to observe the routing table of RTB.

    [RTB]dis ip routing-table Routing Table: public net Destination/Mask Protocol Pre Cost Nexthop Interface 0.0.0.0/0 STATIC 60 0 10.1.1.1 Ethernet0/0 2.2.2.2/32 DIRECT 0 0 127.0.0.1 InLoopBack0 10.1.1.0/30 DIRECT 0 0 10.1.1.2 Ethernet0/0 10.1.1.2/32 DIRECT 0 0 127.0.0.1 InLoopBack0 127.0.0.0/8 DIRECT 0 0 127.0.0.1 InLoopBack0 127.0.0.1/32 DIRECT 0 0 127.0.0.1 InLoopBack0

    2.6 Configuration Reference

    Configuration of RTA is same as above. Configuration of router A:

    [RTB]interface Ethernet 0/0 [RTB-Ethernet0/0]ip address 10.1.1.2 30 [RTB-Ethernet0/0]quit [RTB]interface LoopBack 1 [RTB-LoopBack1]ip address 2.2.2.2 32 [RTB-LoopBack1]quit [RTB]ip route-static 0.0.0.0 0 10.1.1.1

  • ODL010008 Static Route and RIP Configuration Laboratory Exercise Guide ISSUE1.0

    Huawei.

    5

    Chapter 3 Route Link Backup

    3.1 Networking and Service Introduction

    RRRR

    L1: 1.1.1.1/32 L1: 2.2.2.2/3210.1.1.0/30

    10.10.1.1/30RTA RTB

    .2.1

    .2.1 RRRR

    L1: 1.1.1.1/32 L1: 2.2.2.2/3210.1.1.0/30

    10.10.1.1/30RTA RTB

    .2.1

    .2.1

    Use the 10.1.1.0/30 and 10.10.1.0/30 network segments to connect RTA to RTB. Configure two static routes with different priorities so as to implement link backup when RTA accesses the 2.2.2.2/32 network segment.

    3.2 Command Line List

    Operation Command

    Add a static route

    ip route-static dest-address { mask | mask-length } { interface-name [ nexthop-address ] | nexthop-address } [ preference preference-value ] [ reject | blackhole ]

    ip route-static [ vpn-instance vpn-instance-name ] ip-address { mask | mask-length } { nexthop-address | interface-type interface-number [ nexthop-address ] } [ preference preference ]

    3.3 Configuration flow

    3.4 Configuration procedure

    1) Configure interfaces. Create a loopback address 1.1.1.1/32 and two interface address 10.1.1.1/30 and 10.10.1.1/30 for RTA.

    Create a loopback address 2.2.2.2/32 and two interface address 10.1.1.2/30 and 10.10.1.2/30 for RTB.

    2) Configure a static route

  • ODL010008 Static Route and RIP Configuration Laboratory Exercise Guide ISSUE1.0

    Huawei Technologies Co., Ltd.

    6

    On RTA, configure two static routes to the loopback address of RTB. Likewise, on RTB, configure two static routes to the loopback address of RTA.

    3.5 Result Verification

    Upon completion of configuration, execute the display ip routing-table command to view the routing table of RTA.

    [RTA]display ip routing-table Routing Table: public net Destination/Mask Protocol Pre Cost Nexthop Interface 1.1.1.1/32 DIRECT 0 0 127.0.0.1 InLoopBack0 2.2.2.2/32 STATIC 60 0 10.1.1.2 Ethernet0/0 10.1.1.0/30 DIRECT 0 0 10.1.1.1 Ethernet0/0 10.1.1.1/32 DIRECT 0 0 127.0.0.1 InLoopBack0 10.10.1.0/30 DIRECT 0 0 10.10.1.1 Ethernet0/1 10.10.1.1/32 DIRECT 0 0 127.0.0.1 InLoopBack0 127.0.0.0/8 DIRECT 0 0 127.0.0.1 InLoopBack0 127.0.0.1/32 DIRECT 0 0 127.0.0.1 InLoopBack0

    The configured static route with a smaller preference value is added to the routing table.

    Execute the shutdown command for the Ethernet0/0 interface of RTA and then view the routing table of RTA.

    [RTA]interface Ethernet 0/0 [RTA-Ethernet0/0]shutdown [RTA-Ethernet0/0] %Aug 12 10:26:29 2005 RTA PHY/2/PHY: Ethernet0/0: change status to down %Aug 12 10:26:29 2005 RTA IFNET/5/UPDOWN:Line protocol on the interface Ethernet0/0 is DOWN

    [RTA]display ip routing-table Routing Table: public net Destination/Mask Protocol Pre Cost Nexthop Interface 1.1.1.1/32 DIRECT 0 0 127.0.0.1 InLoopBack0 2.2.2.2/32 STATIC 100 0 10.10.1.2 Ethernet0/1 10.10.1.0/30 DIRECT 0 0 10.10.1.1 Ethernet0/1 10.10.1.1/32 DIRECT 0 0 127.0.0.1 InLoopBack0 127.0.0.0/8 DIRECT 0 0 127.0.0.1 InLoopBack0 127.0.0.1/32 DIRECT 0 0 127.0.0.1 InLoopBack0

    The active link fails and the standby link takes over its work. Therefore, the original backup route with preference 100 becomes an active ro...

Recommended

View more >