
Untitled
By: a guest on
Aug 1st, 2012 | syntax:
None | size: 2.17 KB | hits: 16 | expires: Never
============================================================================
Kompella
============================================================================
# Kompella uses MP-BGP to signal traffic. Be sure to enable family l2vpn
# to the IBGP routers
set protocols bgp <group> neighbor <ip> family l2vpn signaling
# Set the correct physical interface encap to vlan-ccc
set interfaces <name> encapsulation vlan-ccc
# Set the logical interface/unit encap to vlan-ccc (that hands off to the CE)
set interfaces <name>.<unit> encapsulation vlan-ccc
# Since kompella uses MP-BGP for signalling you need to create a
# routing-instance. Remember you need to setup a BGP community for the
# RT. The RTs must match between PEs. The protocol l2vpn needs to be
# defined on each PE. The site-identifier must be UNIQUE!!!
#
c1-c2-l2 {
instance-type l2vpn;
interface ge-1/2/8.600; (CE interface)
vrf-import c1-c2-import;
vrf-export c1-c2-export;
protocols {
l2vpn {
encapsulation-type ethernet-vlan;
site 2 {
site-identifier 2; (must be unique)
interface ge-1/2/8.600; (CE interface)
}
}
}
}
# vrf-export
policy-statement c1-c2-export {
then {
community add c1-c2-rt;
accept;
}
}
# vrf-import
policy-statement c1-c2-import {
term 1 {
from {
protocol bgp;
community c1-c2-rt;
}
then accept;
}
}
set policy-options community c1-c2-rt members target:65412:7 (must match)
# If you want to map traffic to an LSP, you need to setup a policy and install
# the LSP. A good method is to simply match on the BGP community used for
# the RT. Don't forget to install the policy into the fowarding-table.
policy-statement mapping {
term 1 {
from community c1-c2-rt;
then {
install-nexthop lsp r6-r4-prime;
accept;
}
}
term 2 { (default catch all for other traffic)
then accept;
}
}
set routing-options forwarding-table export mapping