OSPF Sham-Link
基础配置:
R1:
interface Loopback0
ip address 1.1.1.1 255.255.255.255
interface FastEthernet0/0
ip address 12.12.12.1 255.255.255.0
duplex auto
speed auto
interface FastEthernet1/0
ip address 14.14.14.1 255.255.255.0
duplex auto
speed auto
router ospf 1
router-id 1.1.1.1
log-adjacency-changes
network 1.1.1.1 0.0.0.0 area 1
network 12.12.12.1 0.0.0.0 area 1
network 14.14.14.1 0.0.0.0 area 1
R2:
interface Loopback0
ip address 2.2.2.2 255.255.255.255
interface FastEthernet0/0
ip address 12.12.12.2 255.255.255.0
duplex auto
speed auto
interface FastEthernet1/0
ip address 23.23.23.2 255.255.255.0
duplex auto
speed auto
router eigrp 100
network 2.2.2.2 0.0.0.0
network 23.23.23.2 0.0.0.0
no auto-summary
router ospf 1 vrf A
router-id 2.2.2.2
log-adjacency-changes
redistribute bgp 100 subnets
network 12.12.12.2 0.0.0.0 area 1
router bgp 100
bgp router-id 2.2.2.2
bgp log-neighbor-changes
neighbor 3.3.3.3 remote-as 100
neighbor 3.3.3.3 update-source Loopback0
!
address-family ipv4
neighbor 3.3.3.3 activate
no auto-summary
no synchronization
exit-address-family
!
address-family ***v4
neighbor 3.3.3.3 activate
neighbor 3.3.3.3 send-community extended
exit-address-family
!
address-family ipv4 vrf A
redistribute ospf 1 vrf A match internal external 1 external 2
no synchronization
exit-address-family
mpls ldp router-id Loopback0 force
R3:
interface Loopback0
ip address 3.3.3.3 255.255.255.255
interface FastEthernet0/0
ip address 23.23.23.3 255.255.255.0
duplex auto
speed auto
interface FastEthernet1/0
ip address 34.34.34.3 255.255.255.0
duplex auto
speed auto
router eigrp 100
network 3.3.3.3 0.0.0.0
network 23.23.23.3 0.0.0.0
no auto-summary
router ospf 1 vrf A
router-id 3.3.3.3
log-adjacency-changes
redistribute bgp 100 subnets
network 34.34.34.3 0.0.0.0 area 1
router bgp 100
no synchronization
bgp router-id 3.3.3.3
bgp log-neighbor-changes
neighbor 2.2.2.2 remote-as 100
neighbor 2.2.2.2 update-source Loopback0
no auto-summary
!
address-family ***v4
neighbor 2.2.2.2 activate
neighbor 2.2.2.2 send-community extended
exit-address-family
!
address-family ipv4 vrf A
redistribute ospf 1 vrf A match internal external 1 external 2
no synchronization
exit-address-family
mpls ldp router-id Loopback0 force
R4:
interface Loopback0
ip address 4.4.4.4 255.255.255.255
interface FastEthernet0/0
ip address 34.34.34.4 255.255.255.0
duplex auto
speed auto
interface FastEthernet1/0
ip address 14.14.14.4 255.255.255.0
duplex auto
speed auto
router ospf 1
router-id 4.4.4.4
log-adjacency-changes
network 4.4.4.4 0.0.0.0 area 1
network 14.14.14.4 0.0.0.0 area 1
network 34.34.34.4 0.0.0.0 area 1
查看:
R2去往4.4.4.4和34.34.34.0/24走的是R1,路由选择走的是OSPF区域而不是MPLS ×××骨干
R1去往远程站点走的也是后门链路
创建Sham-link
R2:
interface Loopback1
ip vrf forwarding A
ip address 100.100.100.1 255.255.255.255 //单独分配一个32位的地址给sham-link,并且放入VRF中
router bgp 100
address-family ipv4 vrf A
network 100.100.100.1 mask 255.255.255.255 //在BGP VRF中宣告
router ospf 1 vrf A
area 1 sham-link 100.100.100.1 100.100.100.2 //在PE之间创建区域一的sham-link
R3:
interface Loopback1
ip vrf forwarding A
ip address 100.100.100.2 255.255.255.255 //单独分配一个32位的地址给sham-link,并且放入VRF中
router bgp 100
address-family ipv4 vrf A
network 100.100.100.2 mask 255.255.255.255 //在BGP VRF中宣告
router ospf 1 vrf A
area 1 sham-link 100.100.100.2 100.100.100.1 //在PE之间创建区域一的sham-link
R1:
int f1/0
ip ospf cost 10000
R4:
int f1/0
ip ospf cost 10000
现在R1走的MPLS ×××骨干去往远程站点
转载于:https://blog.51cto.com/q3322095/919568
OSPF Sham-Link相关推荐
- OSPF —— Virtual Link(虚连接)
目录 什么是虚连接(Virtual Link)? 虚连接配置 思考? 什么是虚连接(Virtual Link)? 虚连接是指在两台ABR之间,穿过一个非骨干区域(转换区域--Transit Area) ...
- MPLS/×××分解:防止PE-CE的路由环路
实验手册]MPLS/×××分解:防止PE-CE的路由环路 2009-05-12 0:34 附件: mpls-lab-1.7.zip [254.65 KiB] 被下载 46 次 附件: mpls-lab ...
- [实验手册]MPLS/×××分解:防止PE-CE的路由环路
附件: mpls-lab-1.7.zip [254.65 KiB] 被下载 76 次 附件: mpls-lab1_7.gif [ 56.27 KiB | 被浏览 466 次 ] Router CE1 ...
- HCIP-DATACOM-解题九月部分58+51题
1.在排除VRRP备份组双主故障时,下列哪项说法是错误的? A.不需要检查传递VRRP通告报文的交换机端口,是否在同一个VLAN B.需要检查接口上的VRRP组ID是否相同 C.需要检查 接口IP地址 ...
- HCIP datacom 821、831题库
(全部黄色底纹为错误题:绿色.全部绿色字体为正确题) 关于OSPF缺省路由描述错误的是:由于OSPF路由的分级管理,Type5/7缺省路由的优先级高于Type3路由: OSPF的Router LSA中 ...
- 路由协议OSPF知识点汇总
一. OSPF简介 OSPF(Open Shortest Path First,开放最短路径优先)是IETF组织开发的一个基于链路状态的内部网关协议.目前针对IPv4协议使用的是OSPF Versio ...
- MPLS ×××实验之OSPF sham-link
配置Sham-Link 时,需要满足以下条件: *在PE 上单独创建/3 2 位的地址,在PE 之间使用这个地址来建立 Sham-Link . *这个/32位地址的接口必须放入相应的VRF. *这个/ ...
- HCIE 面试资料-OSPF
OSPF OSPF开放式最短路径优先(Open Shortest Path First) 是一组通过统一的路由政策或路由协议互相交换路由信息的网络 OSPF的路由计算过程 每台路由器会先根据自己周围的 ...
- Ospf Sham-link 配置
1 R4与R5之间多添加一条属于area1 的链路,为了在mpls 骨干区域链路中断时,R1和R3之间可以通过下面的 ospf 链路互访(R1与R3之间建立sham-link,可以通过配置sham-l ...
- MPLS ××× 网络中的OSPF Sham-Link
实验拓扑图 实验描述:如上图所示,现PE-R1.P-R2.PE-R3为MPLS ×××网络,两CE客户需要通过MPLS ×××骨干网络进行通信,并且CE-R4与CE-R6之间有一条链路作为备份链路,正 ...
最新文章
- 透彻理解高斯核函数背后的哲学思想与数学思想
- 【Network Security!】入侵痕迹清除,修改系统日志
- Linux Load Average高但磁盘IO和CPU占用率不高的可能原因
- 关于ALTERA的FPGA的弱上拉问题
- 研发管理---(1)持续交付
- subtext3php,sublime text3怎么快速查找和替换?快捷键是什么
- configureWebpack与chainWebpack
- python多任务之——线程简述
- redis 备份与恢复
- 小爱同学app安卓版_小爱同学app-小爱同学安卓版下载v3.0
- 在Linux中禅道的安装流程
- mysql合并两个表_MYSQL如何合并两个表
- angular7.0+ngx-weui公众号开发,开发及框架搭建(一)
- 打字测试软件 tt,打字测试(TT)
- 安装免费在线客服livezilla系统
- 黑暗城堡(最短路径树)
- Linux 查看服务器几核几G
- 写在前面-数据结构与算法分析
- 程序员翻车时的 30 种常见反应!
- P2P平台尝试大数据征信初见成效