-
路由器
-L2VPN-
CCC
典型配置
【需求】
CE-A
< br>的
S2/0/0
和
CE-B
p>
的
S2/0/0
之间建立一条本地的
CCC
连接,
CE-A
的
S2/0/1
和
CE-C
的
S2/0/0
建立
一条远程的
CCC
连接。
【组网图】
【配置脚本】
CE-A
配置脚本
#
sysname
CE-A
#
radius scheme system
#
domain
system
#
interface Serial2/0/0
link-protocol ppp
ip address 192.168.11.1
255.255.255.0
#
interface Serial2/0/1
link-protocol ppp
ip address 192.168.21.1
255.255.255.0
#
interface NULL0
#
user-interface
con 0
user-interface vty 0
4
#
return
CE-B
配置脚本
#
sysname
CE-B
#
radius scheme system
#
domain
system
#
interface Serial2/0/0
link-protocol ppp
ip address 192.168.11.2
255.255.255.0
#
interface NULL0
#
user-interface
con 0
user-interface vty 0
4
#
return
PE-A
配置脚本
#
sysname
PE-A
#
router id 1.1.1.1
#
mpls lsr-id
1.1.1.1
#
mpls l2vpn
/
启用
MPLS
L2VPN/
#
radius scheme system
#
mpls
static-lsp ingress PEA-PEB l2vpn
outgoing-interface Serial2/0/3 out-label
100
/
配置用于
< br>l2vpn
的静态
LSP/
static-lsp egress PEB-PEA l2vpn
incoming-interface Serial2/0/3 in-label
201
/
配置用于
< br>l2vpn
的静态
LSP/
#
domain
system
#
interface Serial2/0/0
link-protocol ppp
#
interface
Serial2/0/1
link-protocol
ppp
#
interface Serial2/0/2
link-protocol ppp
#
interface
Serial2/0/3
link-protocol
ppp
ip address 10.0.0.1
255.255.255.252
mpls
#
interface NULL0
#
interface
LoopBack0
ip address 1.1.1.1
255.255.255.255
#
ccc local-to-CEB interface Serial2/0/0
out-interface Serial2/0/2
/<
/p>
创建
CCC
本地连接
/
ccc
remote-
to-CEC
interface
Serial2/0/1
transmit-lsp
PEA-PEB
receive-lsp
PEB-
PEA
/
创建
CCC
远程连接
/
#
user-interface
con 0
user-interface vty 0
4
#
return
P
配置脚本
#
sysname
P
#
router id 2.2.2.2
#
mpls lsr-id
2.2.2.2
#
mpls l2vpn
/
启用
MPLS
L2VPN/
#
radius scheme system
#
mpls
static-lsp transit PEA-PEB l2vpn
incoming-interface Serial2/0/0 in-label 100
outgoing-interface Serial2/0/1 out-
label 101
/
配置用于
p>
l2vpn
的静态
LSP/
static-lsp transit PEB-PEA l2vpn
incoming-interface Serial2/0/1 in-label 200
outgoing-interface Serial2/0/0 out-
label 201
/
配置用于
p>
l2vpn
的静态
LSP/
#
domain
system
#
interface Serial2/0/0
link-protocol ppp