Switching

Expand all | Collapse all

IPv6 static routes and virtual routers?

Jump to Best Answer
  • 1.  IPv6 static routes and virtual routers?

    Posted 08-27-2011 11:52

    I'm introducing virtual routers (routing instances) into our EX4200 configuration so that I can better control how traffic flows between the VLANs.

     

    The main config has this section to define the static routes:

     

    routing-options {
        graceful-restart;
        rib inet6.0 {
            static {
                route ::/0 next-hop 2001:630:280::1;
            }
        }
        static {
            route 0.0.0.0/0 next-hop 193.63.211.1;
        }
    }

     and the configuration for the private VLAN has been set up like this:

     

        VR_Private {
            instance-type virtual-router;
            interface vlan.90;
            interface vlan.91;
            interface vlan.101;
            interface vlan.102;
            interface vlan.103;
            interface vlan.104;
            interface vlan.211;
            routing-options {
                static {
                    route 0.0.0.0/0 next-hop 193.63.211.1;
                }
            }

    However, I don't seem to be able to find a way of defining the IPv6 static route to 2001:630:280::1. I've tried copying the rib statement but I get an error when I commit the configuration:

     

     'rib inet6.0'
    RT: rib inet6.0 is not in matching routing instance

     

    Can someone please tell me how I define static routes in a routing instance?

     

    Many thanks.

     

    Philip



  • 2.  RE: IPv6 static routes and virtual routers?
    Best Answer

    Posted 08-28-2011 01:36

    Hi,

     

    The problem is that you've missed the VR_Private when defining IPv6 static route:

     

     rib VR_Private.inet6.0 {
            static {
                route ::/0 next-hop 2001:630:280::1;
            }
        }



  • 3.  RE: IPv6 static routes and virtual routers?

    Posted 08-28-2011 02:11

    @dpapana wrote:

    Hi,

     

    The problem is that you've missed the VR_Private when defining IPv6 static route:

     

     rib VR_Private.inet6.0 {
            static {
                route ::/0 next-hop 2001:630:280::1;
            }
        }



    Thank you. I thought I'd posted a followup a short while after posting my query to confirm that I had found the answer, but I appreciate you confirming it.

     

    Philip

     



  • 4.  RE: IPv6 static routes and virtual routers?

    Posted 09-29-2011 21:02

    What is the answer?

     

    I have similar issue. I tried following with VR_Private,inet6.0 but not working.

     

    "lab@m10i-1# commit check
    [edit routing-instances TESTV6-V1 routing-options]
      'rib VR_Private.inet6.0'
        RT: rib VR_Private.inet6.0 is not in matching routing instance
    error: configuration check-out failed"]

     



  • 5.  RE: IPv6 static routes and virtual routers?

    Posted 09-29-2011 23:40

    dambotkar@virtela.net wrote:

    What is the answer?

     

    I have similar issue. I tried following with VR_Private,inet6.0 but not working.

     

    "lab@m10i-1# commit check
    [edit routing-instances TESTV6-V1 routing-options]
      'rib VR_Private.inet6.0'
        RT: rib VR_Private.inet6.0 is not in matching routing instance
    error: configuration check-out failed"]


    You need to subsitiute "VR_Private" with "TEST-V6-V1". It is just the name of the routing instance.

     

    Philip

     



  • 6.  RE: IPv6 static routes and virtual routers?

    Posted 05-15-2018 02:02

    Dear  All,

    I have same issue. could you please help ?

    Thanks. 



  • 7.  RE: IPv6 static routes and virtual routers?

    Posted 07-30-2018 12:23

    show routing-instances R1
    instance-type virtual-router;
    routing-options {
            rib R1.inet6.0 {
                  static {
                         route 0::0/0 next-hop 2001:0001:0002:0003::5;
                  } 
           }
    }