繁体中文
设为首页
加入收藏
当前位置:技术首页 >> 网络 >> 综合技术 >> MPLS-OSPF Sham-Link

MPLS-OSPF Sham-Link (1)

2006-12-19 11:25:53  作者:admin  来源:bu.cublog.cn  浏览次数:187  文字大小:【】【】【
关键字:MPLS-OSPF

hostname r1

ip cef

ip vrf tes
rd 123:1
import map from-pe-r3
export map to-pe-r3
route-target export 123:1
route-target import 123:3
route-target import 123:65006
!
ip vrf test16
rd 123:65006
route-target export 123:65006
route-target import 123:65007
route-target import 123:1

interface Loopback0
ip address 10.1.1.1 255.255.255.0
!
interface Loopback2
ip vrf forwarding test
ip address 10.1.2.1 255.255.255.255
!
interface Ethernet0/0
ip vrf forwarding test
ip address 14.1.1.1 255.255.255.0
!
interface Serial0/0
no ip address
!
interface Serial0/0.12 point-to-point
ip address 12.1.1.1 255.255.255.0
ip router isis
mpls ip
frame-relay interface-dlci 102
!
interface Serial0/0.16 point-to-point
ip vrf forwarding test16
ip address 16.1.1.1 255.255.255.0
frame-relay interface-dlci 106
!
router ospf 1 vrf test
area 45 sham-link 10.1.2.1 30.1.2.1
redistribute bgp 13 subnets route-map ce5-only
network 14.1.1.0 0.0.0.255 area 45
!
router isis
net 49.0123.0000.0000.0001.00
passive-interface Loopback0
!
router bgp 13
no synchronization
bgp log-neighbor-changes
neighbor 30.1.1.1 remote-as 13
neighbor 30.1.1.1 update-source Loopback0
no auto-summary
!
address-family vpnv4
neighbor 30.1.1.1 activate
neighbor 30.1.1.1 send-community extended
exit-address-family
!
address-family ipv4 vrf test16
neighbor 16.1.1.6 remote-as 65006
neighbor 16.1.1.6 activate
neighbor 16.1.1.6 as-override
no auto-summary
no synchronization
exit-address-family
!
address-family ipv4 vrf test
redistribute connected route-map sham-loopback
redistribute ospf 1 vrf test
exit-address-family

ip prefix-list to65004 seq 5 deny 60.1.2.0/24
ip prefix-list to65004 seq 10 permit 0.0.0.0/0 le 32
access-list 10 permit 10.1.2.1
access-list 40 permit 40.1.1.0 0.0.0.255
access-list 41 permit 40.1.10.1
access-list 50 permit 10.1.2.1
access-list 50 permit 30.1.2.1
access-list 50 permit 35.1.1.0 0.0.0.255
access-list 60 deny 60.1.2.0 0.0.0.255
access-list 60 permit any
!
route-map ce5-only permit 10
match ip address 50
!
route-map to65004 permit 10
match ip address prefix-list to65004
!
route-map sham-loopback permit 10
match ip address 10
!
route-map from-pe-r3 permit 10
match ip address 60
!
route-map to-pe-r3 permit 10
match ip address 40
set extcommunity rt 123:65004
!
route-map ce1-ospf-to-bgp permit 10
match ip address 41
================================================== =================
hostname r2

ip cef
!
mpls label protocol ldp

interface Loopback0
ip address 20.1.1.1 255.255.255.0

interface Serial0/0
no ip address
encapsulation frame-relay
!
interface Serial0/0.12 point-to-point
ip address 12.1.1.2 255.255.255.0
ip router isis
mpls ip
frame-relay interface-dlci 201
!
interface Serial0/0.23 point-to-point
ip address 23.1.1.2 255.255.255.0
ip router isis
mpls ip
frame-relay interface-dlci 203

router isis
net 49.0123.0000.0000.0002.00
passive-interface Loopback0
================================================== ==============
hostname r3

ip cef

ip vrf test
rd 123:3
route-target export 123:3
route-target import 123:1
!
ip vrf test37
rd 123:65007
route-target export 123:65007
route-target import 123:65006
!
!
mpls label protocol ldp

interface Loopback0
ip address 30.1.1.1 255.255.255.0
!
interface Loopback2
ip vrf forwarding test
ip address 30.1.2.1 255.255.255.255
!
interface Serial0/0
no ip address
encapsulation frame-relay
no frame-relay inverse-arp
!
interface Serial0/0.23 point-to-point
ip address 23.1.1.3 255.255.255.0
ip router isis
mpls ip
frame-relay interface-dlci 302

interface Serial0/2
ip vrf forwarding test37
ip address 37.1.1.3 255.255.255.0
serial restart-delay 0
clock rate 19200
!
interface Ethernet1/0
ip vrf forwarding test
ip address 35.1.1.3 255.255.255.0
half-duplex
!
router ospf 1 vrf test
log-adjacency-changes
area 45 sham-link 30.1.2.1 10.1.2.1
redistribute bgp 13 subnets
network 35.1.1.0 0.0.0.255 area 45
!
router isis
net 49.0123.0000.0000.0003.00
passive-interface Loopback0
!
router bgp 13
no synchronization
bgp log-neighbor-changes
neighbor 10.1.1.1 remote-as 13
neighbor 10.1.1.1 update-source Loopback0
no auto-summary
!
address-family vpnv4
neighbor 10.1.1.1 activate
neighbor 10.1.1.1 send-community extended
exit-address-family
!
address-family ipv4 vrf test37
neighbor 37.1.1.7 remote-as 65006
neighbor 37.1.1.7 activate
neighbor 37.1.1.7 as-override
no auto-summary
no synchronization
exit-address-family
!
address-family ipv4 vrf test
redistribute connected route-map sham-loopback
redistribute ospf 1 vrf test match internal external 1 external 2
exit-address-family

access-list 30 permit 30.1.2.1
access-list 41 permit 40.1.10.1
access-list 42 deny 40.1.10.1
access-list 42 permit any
access-list 43 permit 40.1.10.1
access-list 43 permit 14.1.1.0 0.0.0.255
!
route-map ce4-only permit 10
match ip address 43
!
route-map sham-loopback permit 10
match ip address 30
!
route-map pe3-bgp-to-ce5 permit 10
match ip address 42
!
route-map pe3-bgp-to-ospf permit 10
match ip address 41
!
!
mpls ldp router-id Loopback0
================================================== ===============

责任编辑:admin

本文引用地址: http://tech.itzero.com/2006/1219/6546.html 请粘贴到你的QQ/MSN上推荐给你的好友

相关文章
Cisco实现MPLS VPN可管理服务
MPLS VPN同传统VPN的分析对比
IPsec VPN和MPLS VPN之比较
解析中国网通MPLS VPN
MPLSVPN 介绍
讲述MPLS技术及其标准化进展
跨越自治系统的三层MPLS-VPN互联
mpls VPN-IPv4地址结构
MPLS VPN的应用
路由基础知识 第三版OSPF全面改善IP性能
路由基础知识 OSPF路由协议详细介绍(一)
 

最新文章

更多

· 以太网数据包、IP包、TC...
· 广域网加速产品横向点评...
· 透视无线入侵检测系统(1)
· 无线ATM信元传送性能的实...
· 提高带宽 广域网优化三步走
· 无线ATM信元传送性能的实...
· 网络管理新技术让广域网...
· 有效测试无线路由器的安...
· 讲述MPLS技术及其标准化进展
· 微软SIP协议实现话音、数...

热点文章

更多

其它推荐