
166
•
ce-offset
ce-
id
: Specifies the ID of the peer CE that establishes a local or remote connection
with the local CE.
If you execute the
connection
command without specifying the
ce-offset
ce-
id
option:
{
When you first execute the
connection
command, the PE creates a connection between the local CE and
the peer CE with an ID of
default-offset
. If the
default-offset
equals the local CE ID, the PE creates a connection
for the local CE and the peer CE with an ID of
default-offset
+1.
{
When you execute the
connection
command for the second time, the PE creates a connection between
the local CE and the peer CE with an ID of "previous connection CE ID+1." If the "previous connection CE
ID+1" equals the local CE ID, the PE creates a connection for the local CE and the peer CE with an ID of
"previous connection CE ID+2."
As a best practice to plan a VPN, set CE IDs in incremental sequence and then configure CE
connections in the sequence of CE IDs so you can omit the
ce-offset
keyword (use the default
setting) for most connections.
•
To modify the CE range by executing the
ce
command, you can only change the CE range to a
bigger value than that of the current CE range. For example, if the current CE range is 10, you
can change it to 20, but you cannot change it to 5. Changing the CE range to a bigger value
does not interrupt current services. To change the CE range to a smaller value, you must delete
the current CE, re-create the CE, and specify a smaller CE range for it.
Configuration procedure
To create a CE connection:
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enter MPLS L2VPN view.
mpls l2vpn
vpn-name
N/A
3.
Create a CE, specify the CE
name, CE ID, CE range, and
the initial CE ID, and enter
MPLS L2VPN CE view.
ce
ce-name
[
id
ce-id
[
range
ce-range
] [
default-offset
default-offset
] ]
N/A
4.
Create a Kompella
connection.
connection
[
ce-offset
ce-id
]
interface
interface-type
interface-number
[
tunnel-policy
tunnel-policy-name
]
The
ce-offset
ce-id
option
determines whether the
connection is a local connection or
a remote connection. If the
specified CE is connected to the
same PE as the local CE, the
connection is a local connection.
Otherwise, the connection is a
remote connection.
The
interface
interface-type
interface-number
option specifies
a PE-CE interface of the PE. By
specifying the interface, you bind
the AC link on the interface to the
Kompella connection.
Resetting L2VPN BGP sessions
To apply new configuration that affects BGP routing selection, perform the following task in user
view:
Task Command
Reset L2VPN BGP sessions.
reset bgp l2vpn
{
as-number
|
ip-address
|
all
|
external
|
internal
}