- 34
- 0
- 约7.17万字
- 约 15页
- 2016-12-22 发布于贵州
- 举报
CISCO 路由器
OSPF+MPLS+BGP配置实例
二OO八年九月四日
目 录
一、网络环境 3
二、网络描述 3
三、网络拓扑图 4
四、P路由器配置 4
五、PE1路由器配置 6
六、PE2路由器配置 9
七、CE1路由器配置 11
八、CE2路由器配置 13
九、业务测试 14
一、网络环境
由5台CISCO7204组成的网络,一台为P路由器,两台PE路由器,两台CE路由器;
二、网络描述
在P和两台PE路由器这间通过OSPF动态路由协议完成MPLS网络的建立,两台PE路由器这间启用BGP路由协议,在PE路由器上向所属的CE路由器指VPN路由,在CE路由器中向PE路由器配置静态路由。
配置思路:
1、在P和两台PE路由器这间通过OSPF动态路由协议,在P和PE路由器两两互连的端口上启用MPLS,两台PE之间的路为备份路由,这属公网路由。
2、两台PE路由器这间启用BGP路由协议,这使得属于VPN的IP地址能在两个网络(两台CE所属的网络)互相发布,这属私网(VPN)路由。
3、在PE路由器上向所属的CE路由器指VPN路由,这打通了两个网络(两台CE所属的网络)之间的路由。
三、网络拓扑图
四、P路由器配置
p#SHOW RUN
Building configuration...
Current configuration : 1172 bytes
!
version 12.3
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname p
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
ip subnet-zero
!
!
!
ip cef
ip audit po max-events 100
!
!
interface Loopback0
ip address 55
!
interface FastEthernet0/0
description to_r2
ip address 0 52
ip ospf cost 20
duplex full
tag-switching mtu 1508
tag-switching ip
!
interface FastEthernet1/0
description to_r3
ip address 52
ip ospf cost 20
duplex full
tag-switching mtu 1508
tag-switching ip
!
interface FastEthernet2/0
no ip address
shutdown
duplex half
!
interface FastEthernet3/0
no ip address
shutdown
duplex half
!
router ospf 100
log-adjacency-changes
redistribute connected subnets
redistribute static subnets
network area 0
network 0 area 0
!
ip classless
no ip http server
no ip http secure-server
!
gatekeeper
shutdown
!
!
line con 0
exec-timeout 0 0
logging synchronous
stopbits 1
line aux 0
stopbits 1
line vty 0 4
login
!
!
end
p#
五、PE1路由器配置
pe1#show run
Building configuration...
Current configuration : 1813 bytes
!
version 12.3
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname pe1
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
ip subnet-zero
!
!
!
ip vrf vpna
rd 1:100
route-targ
原创力文档

文档评论(0)