运营商增值服务技术;配置基本的MPLSVPN(二)PE到CE链路的配;目录;提要;正文;TOPO如下;基本配置如下测试;提要:PE到CE链路的配置---OSPF;PE到CE链路使用OSPF连接,各站点将对方看作;PandPERouters;?CiscoIOS?SoftwareReleas;?AnyCiscorouterfromthe72;CandCERout
运营商增值服务技术
配置基本的MPLS VPN(二)PE到CE链路的配置选项---OSPF Document ID: 00022
目录
提要
正文
TOPO如下
基本配置如下 测试
提要:PE到CE链路的配置---OSPF
PE到CE链路使用OSPF连接,各站点将对方看作是区域间的路由。
P and PE Routers
? Cisco IOS? Software Release 12.2(6h) includes the MPLS VPN feature.
? Any Cisco router from the 7200 series or higher supports P functionality. The Cisco 2691, as well as any 3640 series or higher router supports PE functionality.
C and CE Routers
? You can use any router that can exchange routing information with its PE router.
正文:
MPLS快速配置导航
1、 配置IGP
2、 启用MPLS
3、 在PE上面使用ip vrf <VPN routing/forwarding instance name>命令为每个VPN创建VRF,为每个VRF指定RD和RT,并把VRF绑定到接口,使用show ip vrf detail查看VRF信息
⑴RD:是为了区分不同客户的前缀,解决地址冲突问题 ,本地意义
命令rd <VPN route distinguisher>
⑵RT:是为了区分不同VPN客户,把VPNv4路由放进哪个VRF路由表里面 route?target [export|import|both] <target VPN extended community>
⑶绑定ip vrf forwarding <VPN routing/forwarding instance name>
4、配置MP-BGP
⑴指定邻居
⑵使用命令address?family ipv4 vrf <VPN routing/forwarding instance name>进入子模式,根据需要进行以下配置
..重分布静态,RIPv2或者OSPF信息,如果CE与PE通过BGP,自动重分布进来..重分布直连
..激活与CE的BGP邻居关系
⑶使用命令 address?family vpnv4进入BGP VPNv4地址族
..激活邻居
..指定扩展社团属性必须被使用(老版本需要)
5、配置PE-CE链路的路由协议并且重分布MP-BGP进程(如果用BGP连接的话就不用重分布) TOPO如下:
完整配置如下:
z PE-R1
z PE-R2
z PE-R3
z P-R4
z CustomerA-R5
z CustomerA-R6
z CustomerB-R7
z CustomerB-R8
PE-R1完整配置
!
hostname PE-R1
!
ip vrf customerA
rd 1:100
route-target export 1:100
route-target import 1:100
! 创建一个VRF
ip cef
!
interface Loopback0
ip address 1.1.1.1 255.255.255.255 !
interface Ethernet0/0
no ip address
!
interface Ethernet0/0.14
description **Link to PE-R4**
encapsulation dot1Q 14
ip address 14.1.1.1 255.255.255.0
ip router isis
tag-switching ip
no snmp trap link-status
!
interface Ethernet0/0.15
description **Link to CustomerA-R5** encapsulation dot1Q 15
ip vrf forwarding customerA
ip address 15.1.1.1 255.255.255.0
no snmp trap link-status
!绑定VRF
router ospf 100 vrf customerA
log-adjacency-changes
redistribute bgp 1 subnets
network 15.1.1.0 0.0.0.255 area 0
!PE与CE连接使用OSPF,把MP-BGP学到的路由重分布进VRF
router isis
net 10.0010.0100.1001.00
is-type level-2-only
passive-interface Loopback0
!
router bgp 1
no synchronization
bgp router-id 1.1.1.1
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 extended exit-address-family
!在VPNv4地址族下激活4.4.4.4
address-family ipv4 vrf customerA redistribute ospf 100
no auto-summary
no synchronization
exit-address-family
!把OSPF路由重分布进MP-BGP
PE-R2完整配置
!
hostname PE-R2
!
ip vrf customerA
rd 1:100
route-target export 1:100
route-target import 1:100
!
ip vrf customerB
rd 1:200
route-target export 1:200
route-target import 1:200
!
ip cef
!
interface Loopback0
ip address 2.2.2.2 255.255.255.255 !
interface Ethernet0/0
no ip address
!
interface Ethernet0/0.23
description **Link to PE-R3** encapsulation dot1Q 23
ip address 23.1.1.2 255.255.255.0 ip router isis
tag-switching ip
no snmp trap link-status
!
interface Ethernet0/0.24
description **Link to PE-R4** encapsulation dot1Q 24
ip address 24.1.1.2 255.255.255.0 ip router isis
tag-switching ip
no snmp trap link-status
!
interface Ethernet0/0.26
description **Link to CustomerA-R6** encapsulation dot1Q 26
ip vrf forwarding customerA
ip address 26.1.1.2 255.255.255.0 no snmp trap link-status
!
interface Ethernet0/0.27
description **Link to CustomerB-R7** encapsulation dot1Q 27
ip vrf forwarding customerB
ip address 27.1.1.2 255.255.255.0 no snmp trap link-status
!
router ospf 100 vrf customerA log-adjacency-changes
redistribute bgp 1 subnets
network 26.1.1.0 0.0.0.255 area 0 !
router ospf 200 vrf customerB log-adjacency-changes
下载地址:54配置基本的MPLS VPN(二)PE到CE链路的配置选项---OSPF.Doc
【】最新搜索
配置基本的MPLS VPN(二)PE到CE链路的配置选项---OSPF
视易点歌系统加歌方法
督导意见书 2
QC080000标准 问答集
学生仪容仪表主题班会教案
Au Pakistan
信用社面试简历
电大专科汉语言文学《中国当代文学》试题及答案2
Monkey's Thoughts Makes Robot
什么样的感冒不能硬抗