Junos OS

 View Only
last person joined: 2 days ago 

Ask questions and share experiences about Junos OS.
Expand all | Collapse all

EVPN, MX, type-2 routes mac-ip issue

  • 1.  EVPN, MX, type-2 routes mac-ip issue

    Posted 10-27-2023 17:16

    Greetings!
    I tying to build evpn-vxlan overlay and MX is a leaf/border-leaf in my fabric.

    I trying to configure EVPN in mac-vrf and virtual-switch instance. Routes are advertising but there are mac and ip-mac type-2 routes, and i need only mac routes.

    What im doing wrong?

    My config is:

    show mac-vrf   
    ##   
    ## inactive: routing-instances mac-vrf
    ##                      
    instance-type mac-vrf;          
    protocols {                
        evpn {
            encapsulation vxlan;
            default-gateway do-not-advertise;
            extended-vni-list [ 20601 20602 ];
            multicast-mode ingress-replication;
            vni-options {
                vni 20601 {
                    vrf-target target:64601:20601;
                }
                vni 20602 {
                    vrf-target target:64601:20602;
                }
            }
        }
    }

    vtep-source-interface lo0.0;
    bridge-domains {
        v601 {
            domain-type bridge;
            vlan-id 601;
            vxlan {
                vni 20601;
            }
        }
        v602 {
            domain-type bridge;
            vlan-id 602;
            vxlan {
                vni 20602;
            }
        }
    }
    service-type vlan-aware;
    interface et-0/0/0.601;
    interface et-0/0/0.602;
    route-distinguisher 64601:1;
    vrf-target target:64514:10;

    Interface:

    show interfaces et-0/0/0.601    
    family bridge {
        interface-mode trunk;
        vlan-id-list 601;
    }

    and routes from this LEAF on SPINE:

    2:64601:1::20602::30:b6:4f:55:90:a0/304 MAC/IP        
                       *[BGP/170] 00:17:09, localpref 100, from 10.0.0.3
                          AS path: 64703 I, validation-state: unverified
                        >  to 10.0.251.3 via irb.406
    2:64601:1::20601::30:b6:4f:55:90:a0::10.133.61.3/304 MAC/IP        
                       *[BGP/170] 00:03:50, localpref 100, from 10.0.0.3
                          AS path: 64703 I, validation-state: unverified
                        >  to 10.0.251.3 via irb.406

    #vxlan
    #EVPN



    ------------------------------
    DMYTRO VASNIEV
    ------------------------------