Skip Navigation Links
Exit Print View
| Sun Ethernet Fabric Operating System ### IPv6 Administration Guide

Search Scope:

- This Document
- Entire Library

## Configure the IPv6 Route Resitribution Policy for Routing Protocols

1. Review the routing information in the routing table on switch 1.

       SEFOS# show ipv6 route

       VRF    Name:      default
       IPv6 Routing Table
       Codes : C - Connected, S - Static
               O - OSPF, R - RIP, B - BGP
       C   fec0::1111:0:0/96   [1/1]
               via ::, vlan1
       C   fec0::2222:0:0/96   [1/1
               via ::, vlan3

2. Review the routing information in the routing table on switch 2.

       SEFOS# show ipv6 route

       IPv6 Routing Table:
       Codes : C - Connected, S - Static
               O - OSPF, R - RIP, B - BGP
       C   fec0::2222:0:0/96   [1/1]
               via ::, vlan3
       C   fec0::3333:0:0/96   [1/1]
               via ::, vlan2

3. Review the routing information in the routing table on switch 3.

       SEFOS# show ipv6 route

       IPv6 Routing Table:
       Codes : C - Connected, S - Static
               O - OSPF, R - RIP, B - BGP
       C   fec0::3333:0:0/96   [1/1]
               via ::, vlan2
       C   fec0::4444:0:0/96   [1/1]
               via ::, vlan1

   All of the connected routes are listed in all of the routing tables.

4. On switch 1, configure the redistribution policy for the destination IP so that the redistribution of that route to the destination protocol is permitted or not permitted by switch 2.

       SEFOS# configure terminal
       SEFOS(config)# redistribute-policy ipv6 deny fec0::4444:0:0 96 rip ospf

   Redistribution of each route is permitted by default in each router. If the redistribution of a particular route is to be denied, configure the redistribution policy for that route.

5. On switch 1, enable the OSPF routing protocol for the `VLAN 3` interface.

       SEFOS(config)# ipv6 router ospf
       SEFOS(config-router)# router-id 1.1.1.1
       SEFOS(config-router)# ASBR Router
       SEFOS(config-router)# redistribute connected
       SEFOS(config-router)# exit
       SEFOS(config)# interface vlan 3
       SEFOS(config-if)# ipv6 ospf area 0.0.0.0
       SEFOS(config-if)# end

6. On switch 2, enable the OSPF routing protocol for the `VLAN 3` interface.

       SEFOS# configure terminal
       SEFOS(config)# ipv6 router ospf
       SEFOS(config-router)# router-id 2.2.2.2
       SEFOS(config-router)# ASBR Router
       SEFOS(config-router)# redistribute connected
       SEFOS(config-router)# redistribute ripng
       SEFOS(config-router)# exit
       SEFOS(config)# interface vlan 3
       SEFOS(config-if)# ipv6 ospf area 0.0.0.0
       SEFOS(config-if)# exit

7. On switch 2, enable the RIP routing protocol for the `VLAN 2` interface.

       SEFOS(config)# ipv6 router rip
       SEFOS(config-router)# redistribute connected
       SEFOS(config-router)# redistribute ospf
       SEFOS(config-router)# exit
       SEFOS(config)# interface vlan 2
       SEFOS(config-if)# ipv6 rip enable
       SEFOS(config-if)# end

8. On switch 3, enable the RIP routing protocol for the `VLAN 2` interface.

       SEFOS# configure terminal
       SEFOS(config)# ipv6 router rip
       SEFOS(config-router)# redistribute connected
       SEFOS(config-router)# exit
       SEFOS(config)# interface vlan 2
       SEFOS(config-if)# ipv6 rip enable
       SEFOS(config-if)# end

9. Review the routing information in the routing table for switch 1.

       SEFOS# show ipv6 route

       IPv6 Routing Table:
       Codes : C - Connected, S - Static
               O - OSPF, R - RIP, B - BGP
       C   fec0::1111:0:0/96   [1/1]
               via ::, vlan1
       C   fec0::2222:0:0/96   [1/1]
               via ::, vlan3
       O   fec0::3333:0:0/96   [10/110]
               via fe80::203:2ff:fe03:201, vlan3

   The information about route `fec0::3333:0:0` is not learned because the policy is set to deny. To permit the redistribution of this route, execute the following commands in switch 2:

       SEFOS# configure terminal
       SEFOS(config)# no redistribute-policy ipv6 fec0::4444:0:0 96
       SEFOS(config)# redistribute-policy ipv6 permit fec0::4444:0:0 96 rip ospf
       SEFOS(config)# exit
       SEFOS# show ipv6 route

       ...
       O   fec0::4444:0:0/96   [10/110]
               via fe80::203:2ff:fe03:201, vlan3

10. Review the routing information in the routing table on switch 2.

        SEFOS# show ipv6 route

        IPv6 Routing Table:
        Codes : C - Connected, S - Static
                O - OSPF, R - RIP, B - BGP
        O   fec0::1111:0:0/96   [10/110]
                via fe80::201:2ff:fe03:401, vlan3
        C   fec0::2222:0:0/96   [1/1]
                via ::, vlan3
        C   fec0::3333:0:0/96   [1/1]
                via ::, vlan2
        R   fec0::4444:0:0/96   [2/120]
                via fe80::203:2ff:fe03:401, vlan2

11. Review the routing information in the routing table on switch 3.

    The routes to all of the networks are learned using the routing protocols in each router after the route redistribution is configured.

        SEFOS# show ipv6 route

        IPv6 Routing Table:
        Codes : C - Connected, S - Static
                O - OSPF, R - RIP, B - BGP
        R   fec0::1111:0:0/96   [2/120]
                via fe80::202:2ff:fe03:401, vlan2
        R   fec0::2222:0:0/96   [2/120]
                via fe80::202:2ff:fe03:401, vlan2
        C   fec0::3333:0:0/96   [1/1]
                via ::, vlan2
        C   fec0::4444:0:0/96   [1/1]
                via ::, vlan1

Copyright © 2010, 2012, Oracle and/or its affiliates. All rights reserved. Legal Notices |