RIPng route redistribution configuration example

Network requirements

As shown in Figure 97, Switch B communicates with Switch A through RIPng 100 and with Switch C through RIPng 200.

Configure route redistribution on Switch B, so the two RIPng processes can redistribute routes from each other.

Figure 97: Network diagram

Configuration procedure

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

  2. Configure basic RIPng:

    # Enable RIPng 100 on Switch A.

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

    # Enable RIPng 100 and RIPng 200 on Switch B.

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

    # Enable RIPng 200 on Switch C.

    <SwitchC> system-view
    [SwitchC] ripng 200
    [SwitchC] interface vlan-interface 300
    [SwitchC-Vlan-interface300] ripng 200 enable
    [SwitchC-Vlan-interface300] quit
    [SwitchC] interface vlan-interface 400
    [SwitchC-Vlan-interface400] ripng 200 enable
    [SwitchC-Vlan-interface400] quit
    

    # Display the routing table on Switch A.

    [SwitchA] display ipv6 routing-table
    
    Destinations : 7 Routes : 7
    
    Destination: ::1/128                                     Protocol  : Direct
    NextHop    : ::1                                         Preference: 0
    Interface  : InLoop0                                     Cost      : 0
    
    Destination: 1::/64                                      Protocol  : Direct
    NextHop    : 1::1                                        Preference: 0
    Interface  : Vlan100                                     Cost      : 0
    
    Destination: 1::1/128                                    Protocol  : Direct
    NextHop    : ::1                                         Preference: 0
    Interface  : InLoop0                                     Cost      : 0
    
    Destination: 2::/64                                      Protocol  : Direct
    NextHop    : 2::1                                        Preference: 0
    Interface  : Vlan200                                     Cost      : 0
    
    Destination: 2::1/128                                    Protocol  : Direct
    NextHop    : ::1                                         Preference: 0
    Interface  : InLoop0                                     Cost      : 0
    
    Destination: FE80::/10                                   Protocol  : Direct
    NextHop    : ::                                          Preference: 0
    Interface  : NULL0                                       Cost      : 0
    
    Destination: FF00::/8                                    Protocol  : Direct
    NextHop    : ::                                          Preference: 0
    Interface  : NULL0                                       Cost      : 0
    
  3. Configure RIPng route redistribution:

    # Configure route redistribution between the two RIPng processes on Switch B.

    [SwitchB] ripng 100
    [SwitchB-ripng-100] import-route ripng 200
    [SwitchB-ripng-100] quit
    [SwitchB] ripng 200
    [SwitchB-ripng-200] import-route ripng 100
    [SwitchB-ripng-200] quit
    

    # Display the routing table on Switch A.

    [SwitchA] display ipv6 routing-table
    
    Destinations : 8 Routes : 8
    
    Destination: ::1/128                                     Protocol  : Direct
    NextHop    : ::1                                         Preference: 0
    Interface  : InLoop0                                     Cost      : 0
    
    Destination: 1::/64                                      Protocol  : Direct
    NextHop    : 1::1                                        Preference: 0
    Interface  : Vlan100                                     Cost      : 0
    
    Destination: 1::1/128                                    Protocol  : Direct
    NextHop    : ::1                                         Preference: 0
    Interface  : InLoop0                                     Cost      : 0
    
    Destination: 2::/64                                      Protocol  : Direct
    NextHop    : 2::1                                        Preference: 0
    Interface  : Vlan200                                     Cost      : 0
    
    Destination: 2::1/128                                    Protocol  : Direct
    NextHop    : ::1                                         Preference: 0
    Interface  : InLoop0                                     Cost      : 0
    
    Destination: 4::/64                                      Protocol  : RIPng
    NextHop    : FE80::200:BFF:FE01:1C02                     Preference: 100
    Interface  : Vlan100                                     Cost      : 1
    
    Destination: FE80::/10                                   Protocol  : Direct
    NextHop    : ::                                          Preference: 0
    Interface  : NULL0                                       Cost      : 0
    
    Destination: FF00::/8                                    Protocol  : Direct
    NextHop    : ::                                          Preference: 0
    Interface  : NULL0                                       Cost      : 0