Routing
Highlighted
Routing

Keyword interface Under protocol l2vpn

‎05-27-2013 03:09 PM

While configuring L2VPN in lab, I came across the interface keyword that is directly under the protocol l2vpn.

 

nbhasin@R1# show routing-instances                                      
SITE46 {
    instance-type l2vpn;
    interface fe-0/0/1.46;
    interface fe-0/0/1.56;
    route-distinguisher 46:46;
    vrf-target target:46:46;
    protocols {
        l2vpn {
            encapsulation-type ethernet-vlan;
            interface fe-0/0/1.56 {
                remote-site-id 7;
            }
        }
    }
}

First thing that stumps me about this configuration is that there is no way to define a local site-identifier. In any case, this snippet does not seem to have any effect at all as MBGP does not advertise an NLRI for this interface.

 

Once the interface is moved under a site, the MBGP starts advertising the expected NLRI.

nbhasin@R1# show routing-instances                                            
SITE46 {
    instance-type l2vpn;
    interface fe-0/0/1.46;
    interface fe-0/0/1.56;
    route-distinguisher 46:46;
    vrf-target target:46:46;
    protocols {
        l2vpn {
            site CE-A {
                site-identifier 4;
                interface fe-0/0/1.56 {
                    remote-site-id 7;
                }
            }
        }
    }
}                                       

 I wanted to know if anyone had an idea as to the intention and purpose of the first snippet? The documentation and context senstive help are of no use.

 

Syntax
interface interface-name {
description text;
remote-site-id remote-site-id;
}
Hierarchy Level
[edit logical-systems logical-system-name routing-instances routing-instance-name protocols l2vpn],
[edit routing-instances routing-instance-name protocols l2vpn]
Release Information
Statement introduced before Junos OS Release 7.4.

Description
Configure an interface to handle traffic for a circuit configured for the Layer 2 VPN.

Options
interface-name—Name of the interface used for the Layer 2 VPN.

The remaining statements are explained separately.

 

Thanks in advance,

 

Nic