Description

This article provides information on how to add static routes for IPv6 under routing instances.

Symptoms

How to add static routes for IPv6 under routing instances.

Solution


The following setup uses a routing instance (type: Virtual Router) to add a static route for IPv6.
.

In this example, test is assumed as the routing instance:

 root@J-4350-1# show routing-instances test   
 instance-type virtual-router;  
  routing-options  
   {  
     rib test.inet6.0 
      { 
         static route 0::0/0 next-hop c:c:c:c::4; 
          } 
       } 
    }  
 
root@# run show route  
test.inet6.0: 3 destinations, 4 routes (3 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

c:c:c:c::2/128 *[Direct/0] 00:00:53
> via ge-0/0/0.0
[Local/0] 22:35:29
Local via ge-0/0/0.0
fe80::/64 *[Direct/0] 00:00:53
> via ge-0/0/0.0
fe80::b2c6:9aff:fe8a:c00/128
*[Local/0] 22:35:29
Local via ge-0/0/0.0

The output indicates that IPv6 learnt the routes under a custom routing instance of the Virtual Router type.