vMX

Expand all | Collapse all

Issue with VRF-lite on vMX (version 14.1R4.8)

Jump to Best Answer
  • 1.  Issue with VRF-lite on vMX (version 14.1R4.8)

    Posted 10-21-2018 18:24

    Hey everyone,

     

    Context:

    GNS3 environment: should be transparent to the routing operations, all links are ok and interfaces ping.

    vMX version: v14.1R4.8

    ---------

    I would like to configure VRF-Lite to seprate two routing instances on both vMX routers.

    The goal is to have two virtual topologies with overlapping address scheme on router interfaces and endhosts as shown below:

     

    VRF-lite junos vMX 14.1R4.8

     

    ---------

    Here is the active config:

     

    interfaces {
        ge-0/0/0 {
            unit 0 {
                family inet;                
            }
        }
        ge-0/0/1 {
            unit 0 {
                family inet {
                    address 192.168.1.254/24;
                }
            }
        }
        ge-0/0/9 {
            unit 0 {
                family inet {
                    address 192.168.0.10/24;
                }
            }
        }
    }
    routing-instances {
        VRFA_10 {
            instance-type vrf;
            interface ge-0/0/0.10; ## 'ge-0/0/0.10' is not defined
            interface ge-0/0/2.10; ## 'ge-0/0/2.10' is not defined
            route-distinguisher 10:10;      
            vrf-target {
                import target:10:10;
                export target:10:10;
            }
        }
    }
    
    

     And the candidate config:

     

     

    root@vmx1# show | compare 
    [edit interfaces ge-0/0/0]
    +    unit 10 {
    +        family inet {
    +            address 192.168.12.1/24;
    +        }
    +    }
    [edit]
    

    And commit error:

     

     

    # commit 
    [edit interfaces ge-0/0/0]
      'unit 10'
        Only unit 0 is valid for this encapsulation
    error: configuration check-out failed
    
    [edit]
    

     
    This happens with either instance-type "vrf" or "virtual-router".


    Is this a kind of limitation or something wrong with the confiuration ?
    Any hint?

     



  • 2.  RE: Issue with VRF-lite on vMX (version 14.1R4.8)
    Best Answer

    Posted 10-21-2018 20:32

    Hello,

    You are trying to use two subinterfaces/units on untagged physical interface - this is not supported.

    You need to make physical interface tagged and assign vlan-ids.

     

    set interfaces ge-0/0/0 vlan-tagging
    set interfaces ge-0/0/0.0 vlan-id 1
    set interfaces ge-0/0/0.10 vlan-id 10

    - will solve Your problem.

    HTH

    Thx

    Akex



  • 3.  RE: Issue with VRF-lite on vMX (version 14.1R4.8)

    Posted 10-22-2018 03:43

    Thanks a lot @aarseniev for your reply.
    Appreciate it!

     

    It indeed solved the issue:

     

    set interfaces ge-0/0/0 vlan-tagging
    set interfaces ge-0/0/0 unit 0 vlan-id 1
    set interfaces ge-0/0/0 unit 0 family inet
    set interfaces ge-0/0/0 unit 10 vlan-id 10
    set interfaces ge-0/0/0 unit 10 family inet address 192.168.12.2/24
    set interfaces ge-0/0/0 unit 20 vlan-id 20
    set interfaces ge-0/0/0 unit 20 family inet address 192.168.12.2/24
    
    set routing-instances VRFA_10 instance-type virtual-router
    set routing-instances VRFA_10 interface ge-0/0/0.10
    set routing-instances VRFA_10 interface ge-0/0/2.10
    
    set routing-instances VRFB_20 instance-type virtual-router
    set routing-instances VRFB_20 interface ge-0/0/0.20
    set routing-instances VRFB_20 interface ge-0/0/2.20