Configuring RIPng basic functions

Network requirements

In Figure 102, all switches run RIPng. Configure Switch B to filter the route (3::/64) learned from Switch C, which means the route will not be added to the routing table of Switch B, and Switch B will not forward it to Switch A.

Figure 102: Network diagram

Configuration procedure

  1. Configure IPv6 addresses for interfaces. (Details not shown.)

  2. Configure basic RIPng functions:

    # Configure Switch A.

    <SwitchA> system-view
    [SwitchA] ripng 1
    [SwitchA-ripng-1] quit
    [SwitchA] interface vlan-interface 100
    [SwitchA-Vlan-interface100] ripng 1 enable
    [SwitchA-Vlan-interface100] quit
    [SwitchA] interface vlan-interface 400
    [SwitchA-Vlan-interface400] ripng 1 enable
    [SwitchA-Vlan-interface400] quit
    

    # Configure Switch B.

    <SwitchB> system-view
    [SwitchB] ripng 1
    [SwitchB-ripng-1] quit
    [SwitchB] interface vlan-interface 200
    [SwitchB-Vlan-interface200] ripng 1 enable
    [SwitchB-Vlan-interface200] quit
    [SwitchB] interface vlan-interface 100
    [SwitchB-Vlan-interface100] ripng 1 enable
    [SwitchB-Vlan-interface100] quit
    

    # Configure Switch C.

    <SwitchC> system-view
    [SwitchC] ripng 1
    [SwitchC-ripng-1] quit
    [SwitchC] interface vlan-interface 200
    [SwitchC-Vlan-interface200] ripng 1 enable
    [SwitchC-Vlan-interface200] quit
    [SwitchC] interface vlan-interface 500
    [SwitchC-Vlan-interface500] ripng 1 enable
    [SwitchC-Vlan-interface500] quit
    [SwitchC] interface vlan-interface 600
    [SwitchC-Vlan-interface600] ripng 1 enable
    [SwitchC-Vlan-interface600] quit
    

    # Display the routing table on Switch B.

    [SwitchB] display ripng 1 route
       Route Flags: A - Aging, S - Suppressed, G - Garbage-collect
     ----------------------------------------------------------------
    
     Peer FE80::20F:E2FF:FE23:82F5  on Vlan-interface100
     Dest 1::/64,
         via FE80::20F:E2FF:FE23:82F5, cost  1, tag 0, A, 6 Sec
     Dest 2::/64,
         via FE80::20F:E2FF:FE23:82F5, cost  1, tag 0, A, 6 Sec
    
     Peer FE80::20F:E2FF:FE00:100  on Vlan-interface200
     Dest 3::/64,
         via FE80::20F:E2FF:FE00:100, cost  1, tag 0, A, 11 Sec
     Dest 4::/64,
         via FE80::20F:E2FF:FE00:100, cost  1, tag 0, A, 11 Sec
     Dest 5::/64,
         via FE80::20F:E2FF:FE00:100, cost  1, tag 0, A, 11 Sec
    

    # Display the routing table on Switch A.

    [SwitchA] display ripng 1 route
       Route Flags: A - Aging, S - Suppressed, G - Garbage-collect
     ----------------------------------------------------------------
    
     Peer FE80::200:2FF:FE64:8904  on Vlan-interface100
     Dest 1::/64,
         via FE80::200:2FF:FE64:8904, cost  1, tag 0, A, 31 Sec
     Dest 4::/64,
         via FE80::200:2FF:FE64:8904, cost  2, tag 0, A, 31 Sec
     Dest 5::/64,
         via FE80::200:2FF:FE64:8904, cost  2, tag 0, A, 31 Sec
     Dest 3::/64,
         via FE80::200:2FF:FE64:8904, cost  1, tag 0, A, 31 Sec
    
  3. Configure route filtering:

    # Configure Switch B to filter incoming and outgoing route.

    [SwitchB] acl ipv6 number 2000
    [SwitchB-acl6-basic-2000] rule deny source 3::/64
    [SwitchB-acl6-basic-2000] rule permit
    [SwitchB-acl6-basic-2000] quit
    [SwitchB] ripng 1
    [SwitchB-ripng-1] filter-policy 2000 import
    [SwitchB-ripng-1] filter-policy 2000 export
    

    # Display routing tables of Switch B and Switch A.

    [SwitchB] display ripng 1 route
       Route Flags: A - Aging, S - Suppressed, G - Garbage-collect
     ----------------------------------------------------------------
    
     Peer FE80::20F:E2FF:FE23:82F5  on Vlan-interface100
     Dest 1::/64,
         via FE80::20F:E2FF:FE23:82F5, cost  1, tag 0, A, 2 Sec
     Dest 2::/64,
         via FE80::20F:E2FF:FE23:82F5, cost  1, tag 0, A, 2 Sec
    
     Peer FE80::20F:E2FF:FE00:100  on Vlan-interface200
     Dest 4::/64,
         via FE80::20F:E2FF:FE00:100, cost  1, tag 0, A, 5 Sec
     Dest 5::/64,
         via FE80::20F:E2FF:FE00:100, cost  1, tag 0, A, 5 Sec
    [SwitchA] display ripng 1 route
       Route Flags: A - Aging, S - Suppressed, G - Garbage-collect
     ----------------------------------------------------------------
    
     Peer FE80::20F:E2FF:FE00:1235  on Vlan-interface100
     Dest 1::/64,
         via FE80::20F:E2FF:FE00:1235, cost  1, tag 0, A, 2 Sec
     Dest 4::/64,
         via FE80::20F:E2FF:FE00:1235, cost  2, tag 0, A, 2 Sec
     Dest 5::/64,
         via FE80::20F:E2FF:FE00:1235, cost  2, tag 0, A, 2 Sec