搜档网
当前位置:搜档网 › mpls配置步骤

mpls配置步骤

MPLS vpn 作用:
跨越公网,承载私网之间通信

配置步骤:
1.保障IGP通
2.运行CEF

1.运营商开启MPLS协议。

(config)mpls ldp router-id Loopback0 force 设置LDP RID
(config-if)mpls label protocol ldp 指定标签分发协议
(config-if) mpls ip 开启mpls


2.PE端创建VRF(存放私网路由)
1>pE与CE创建相关协议
2>RD(区分私网路由)
2>R-T(路由的导入和导出)
PE上配置:
ip vrf A
rd 1:1
route-target export 2:2
route-target import 2:2

接口加入VRF:
interface Serial0/0
ip vrf forwarding A

PE与CE运行相关协议
R2(config)#router rip
R2(config-router)#no au
R2(config-router)#ve 2
R2(config-router)#address-family ipv4 vrf A
R2(config-router-af)#network 12.0.0.0
R2(config-router-af)#no au
R2(config-router-af)#ve 2



3.运行BGP
开启MP-BGP
创建VPNv4表项

router bgp 1
no synchronization
bgp router-id 2.2.2.2
bgp log-neighbor-changes
neighbor 4.4.4.4 remote-as 1
neighbor 4.4.4.4 update-source Loopback0
no auto-summary
address-family vpnv4
neighbor 4.4.4.4 activate
neighbor 4.4.4.4 send-community both
address-family ipv4 vrf A
redistribute rip metric 1 双向重分发
no synchronization
exit-address-family


router rip
version 2
no auto-summary
address-family ipv4 vrf A
redistribute bgp 1 metric 1 双向重分发
network 12.0.0.0
no auto-summary
version 2
exit-address-family



4.vpn4与VRF做重分发




相关主题