No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

CLI-based Configuration Guide - IP Unicast Routing

AR100, AR120, AR150, AR160, AR200, AR1200, AR2200, AR3200, and AR3600 V200R009

Rate and give feedback :
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Example for Configuring RIPng to Filter the Received Routes

Example for Configuring RIPng to Filter the Received Routes

Networking Requirements

As shown in Figure 4-1, the prefix length of all the IPv6 addresses is 64, and neighboring Routers are connected by using IPv6 link-local addresses.

It is required that all Routers learn IPv6 routing information on the network through RIPng. In addition, RouterB is required to filter out the route imported from RouterC (at fc03::/64) so that this route is neither added to the routing table of RouterB nor advertised to RouterA.

Figure 4-1 Networking diagram for configuring RIPng to filter the received routes

Configuration Roadmap

The configuration roadmap is as follows:

  1. Configure basic RIPng functions on each Router to ensure that the Routers communicate with each other.

  2. Configure an ACL on RouterB to filter the imported routes.

Procedure

  1. Configure IPv6 addresses for interfaces on each Router.

    # Configure IPv6 addresses for interfaces on RouterA.

    <Huawei> system-view
    [Huawei] sysname RouterA
    [RouterA] ipv6
    [RouterA] interface gigabitethernet 1/0/0
    [RouterA-GigabitEthernet1/0/0] ipv6 enable
    [RouterA-GigabitEthernet1/0/0] ipv6 address FC01::1/64
    [RouterA-GigabitEthernet1/0/0] quit
    [RouterA] interface gigabitethernet 2/0/0
    [RouterA-GigabitEthernet2/0/0] ipv6 enable
    [RouterA-GigabitEthernet2/0/0] ipv6 address FC00::1/64

    The configurations of RouterB and RouterC are similar to the configuration of RouterA, and are not mentioned here.

  2. Configure basic RIPng functions.

    # Configure RouterA.

    [RouterA] ripng 1
    [RouterA-ripng-1] quit
    [RouterA] interface GigabitEthernet 2/0/0
    [RouterA-GigabitEthernet2/0/0] ripng 1 enable
    [RouterA-GigabitEthernet2/0/0] quit
    [RouterA] interface GigabitEthernet 1/0/0
    [RouterA-GigabitEthernet1/0/0] ripng 1 enable
    [RouterA-GigabitEthernet1/0/0] quit

    # Configure RouterB.

    [RouterB] ripng 1
    [RouterB-ripng-1] quit
    [RouterB] interface GigabitEthernet 1/0/0
    [RouterB-GigabitEthernet1/0/0] ripng 1 enable
    [RouterB-GigabitEthernet1/0/0] quit
    [RouterB] interface GigabitEthernet 2/0/0
    [RouterB-GigabitEthernet2/0/0] ripng 1 enable
    [RouterB-GigabitEthernet2/0/0] quit

    # Configure RouterC.

    [RouterC] ripng 1
    [RouterC-ripng-1] quit
    [RouterC] interface GigabitEthernet 1/0/0
    [RouterC-GigabitEthernet1/0/0] ripng 1 enable
    [RouterC-GigabitEthernet1/0/0] quit
    [RouterC] interface GigabitEthernet 2/0/0
    [RouterC-GigabitEthernet2/0/0] ripng 1 enable
    [RouterC-GigabitEthernet2/0/0] quit
    [RouterC] interface GigabitEthernet 3/0/0
    [RouterC-GigabitEthernet3/0/0] ripng 1 enable
    [RouterC-GigabitEthernet3/0/0] quit

    # Check the RIPng routing table of RouterB.

    [RouterB] display ripng 1 route
        Route Flags: R - RIPng                                        
                    A - Aging, G - Garbage-collect
     ----------------------------------------------------------------
     Peer FE80::F54C:0:9FDB:1  on GigabitEthernet2/0/0
     Dest FC04::/64,
         via FE80::F54C:0:9FDB:1, cost  1, tag 0, A, 3 Sec
     Dest FC03::/64,
         via FE80::F54C:0:9FDB:1, cost  1, tag 0, A, 3 Sec
     Peer FE80::D472:0:3C23:1  on GigabitEthernet1/0/0
     Dest FC00::/64,
         via FE80::D472:0:3C23:1, cost  1, tag 0, A, 4 Sec

    # Check the RIPng routing table of RouterA.

    [RouterA] display ripng 1 route
       Route Flags: R - RIPng                                        
                    A - Aging, G - Garbage-collect
     ----------------------------------------------------------------
     Peer FE80::476:0:3624:1  on GigabitEthernet1/0/0
     Dest FC04::/64,
         via FE80::476:0:3624:1, cost  2, tag 0, A, 21 Sec
     Dest FC03::/64,
         via FE80::476:0:3624:1, cost  2, tag 0, A, 21 Sec

  3. Configure RouterB to filter the imported routes.

    [RouterB] acl ipv6 number 2000
    [RouterB-acl6-basic-2000] rule deny source fc03:: 64
    [RouterB-acl6-basic-2000] rule permit
    [RouterB-acl6-basic-2000] quit
    [RouterB] ripng 1
    [RouterB-ripng-1] filter-policy 2000 import
    [RouterB-ripng-1] quit

  4. Verify the configuration.

    # Check the RIPng routing table of RouterB. The command output shows that the RIPng routing table does not contain the route from network segment fc03::/64.

    [RouterB] display ripng 1 route
       Route Flags: R - RIPng                                        
                    A - Aging, G - Garbage-collect
     ----------------------------------------------------------------
     Peer FE80::F54C:0:9FDB:1  on GigabitEthernet2/0/0
     Dest FC04::/64,
         via FE80::F54C:0:9FDB:1, cost  1, tag 0, A, 14 Sec
     Peer FE80::D472:0:3C23:1  on GigabitEthernet1/0/0
     Dest FC00::/64,
         via FE80::D472:0:3C23:1, cost  1, tag 0, A, 25 Sec
    [RouterA] display ripng 1 route
       Route Flags:    A - Aging, G - Garbage-collect 
     ----------------------------------------------------------------
     Peer FE80::476:0:3624:1  on GigabitEthernet1/0/0
     Dest fc04::/64,
         via FE80::476:0:3624:1, cost  2, tag 0, A, 7 Sec

Configuration Files

  • Configuration file of RouterA

    #
     sysname RouterA
    #
     ipv6
    #
    interface GigabitEthernet1/0/0
     ipv6 enable
     ipv6 address FC01::1/64
     ripng 1 enable
    #
    interface GigabitEthernet2/0/0
     ipv6 enable
     ipv6 address FC00::1/64
     ripng 1 enable
    #
    ripng 1
    #
    return
  • Configuration file of RouterB

    #
     sysname RouterB
    #
    ipv6
    #
    acl ipv6 number 2000
     rule 0 deny source FC03::/64
     rule 1 permit
    #
    interface GigabitEthernet1/0/0
     ipv6 enable
     ipv6 address FC01::2/64
     ripng 1 enable
    #
    interface GigabitEthernet2/0/0
     ipv6 enable
     ipv6 address FC02::3/64
     ripng 1 enable
    #                                                                               
    ripng 1                                                                         
     filter-policy 2000 import  
    #
    return
  • Configuration file of RouterC

    #
     sysname RouterC
    #
    ipv6
    #
    interface GigabitEthernet3/0/0
     ipv6 enable
     ipv6 address FC03::3/64
     ripng 1 enable
    #
    interface GigabitEthernet2/0/0
     ipv6 enable
     ipv6 address FC04::3/64
     ripng 1 enable
    #
    interface GigabitEthernet1/0/0
     ipv6 enable
     ipv6 address FC02::2/64
     ripng 1 enable
    #
    ripng 1
    #
    return
Translation
Download
Updated: 2019-05-17

Document ID: EDOC1000174069

Views: 111940

Downloads: 250

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next