博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
MPLS ***的案例
阅读量:6935 次
发布时间:2019-06-27

本文共 4028 字,大约阅读时间需要 13 分钟。

R1、R5路由器用动态路由协议OSPF来宣告路由;R2、R4建立BGP邻居,连接R1、R5、R6、R7的接口启动vrf空间,配置MPLS-×××,生成×××V4下的BGP表;R2、R3、R4用MPLS防止路由黑洞,R2、R4通过双向重发布是全网获得所有路由;R6、R7启动BGP,保持和R2、R4相同的route-target值,可以使全网互通。

配置如下:
MPLS ***的案例
R1:
interface Loopback0
ip address 192.168.1.1 255.255.255.0
interface Serial1/1
ip address 192.168.2.1 255.255.255.0
router ospf 1
router-id 192.168.1.1
log-adjacency-changes
network 192.168.1.1 0.0.0.0 area 0
network 192.168.2.1 0.0.0.0 area 0
R2:
ip vrf 6
rd 100:6
route-target export 1:1
route-target import 1:1
ip vrf eilm
rd 100:1
route-target export 1:1
route-target import 1:1
ip vrf forwarding
ip cef
mpls label range 200 299

interface Loopback0

ip address 2.2.2.2 255.255.255.0
!
interface FastEthernet0/0
ip vrf forwarding 6
ip address 26.1.1.2 255.255.255.0
duplex half
!
interface Serial1/0
ip vrf forwarding eilm
ip address 192.168.2.2 255.255.255.0
serial restart-delay 0
!
interface Serial1/1
ip address 23.1.1.2 255.255.255.0
router eigrp 90
network 2.0.0.0
network 23.0.0.0
no auto-summary
!
router ospf 1 vrf eilm
router-id 2.2.2.2
log-adjacency-changes
redistribute bgp 1 subnets
network 192.168.2.2 0.0.0.0 area 0
!
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 ***v4
neighbor 4.4.4.4 activate
neighbor 4.4.4.4 send-community both
exit-address-family
!
address-family ipv4 vrf eilm
redistribute ospf 1
no auto-summary
no synchronization
exit-address-family
!
address-family ipv4 vrf 6
neighbor 26.1.1.6 remote-as 6
neighbor 26.1.1.6 activate
no auto-summary
no synchronization
exit-address-family
R3:
ip cef
mpls label range 300 399
interface Loopback0
ip address 3.3.3.3 255.255.255.0
interface Serial1/0
ip address 23.1.1.3 255.255.255.0
tag-switching ip
serial restart-delay 0
!
interface Serial1/1
ip address 34.1.1.3 255.255.255.0
router eigrp 90
network 3.0.0.0
network 23.0.0.0
network 34.0.0.0
no auto-summary
R4:

ip vrf 7

rd 100:7
route-target export 1:1
route-target import 1:1
!
ip vrf eason
rd 100:5
route-target export 1:1
route-target import 1:1
!
ip cef
mpls label range 400 499
interface Loopback0
ip address 4.4.4.4 255.255.255.0
!
interface FastEthernet0/0
ip vrf forwarding 7
ip address 47.1.1.4 255.255.255.0
duplex half
!
interface Serial1/0
ip address 34.1.1.4 255.255.255.0
tag-switching ip
serial restart-delay 0
!
interface Serial1/1
ip vrf forwarding eason
ip address 192.168.3.1 255.255.255.0
router eigrp 90
network 4.0.0.0
network 34.0.0.0
no auto-summary
!
router ospf 1 vrf eason
router-id 4.4.4.4
log-adjacency-changes
redistribute bgp 1 subnets
network 192.168.3.1 0.0.0.0 area 0
!
router bgp 1
no synchronization
bgp router-id 4.4.4.4
bgp log-neighbor-changes
neighbor 2.2.2.2 remote-as 1
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 both
exit-address-family
!
address-family ipv4 vrf eason
redistribute ospf 1
no auto-summary
no synchronization
exit-address-family
!
address-family ipv4 vrf 7
neighbor 47.1.1.7 remote-as 7
neighbor 47.1.1.7 activate
no auto-summary
no synchronization
exit-address-family
R5:
interface Loopback0
ip address 192.168.4.1 255.255.255.0
interface Serial1/0
ip address 192.168.3.2 255.255.255.0
router ospf 1
router-id 192.168.4.1
log-adjacency-changes
network 192.168.3.2 0.0.0.0 area 0
network 192.168.4.1 0.0.0.0 area 0
R6:

interface Loopback0

ip address 6.6.6.6 255.255.255.0
!
interface FastEthernet0/0
ip address 26.1.1.6 255.255.255.0
router bgp 6
no synchronization
bgp router-id 6.6.6.6
bgp log-neighbor-changes
network 6.6.6.0 mask 255.255.255.0
neighbor 26.1.1.2 remote-as 1
no auto-summary
R7:
interface Loopback0
ip address 7.7.7.7 255.255.255.0
!
interface FastEthernet0/0
ip address 47.1.1.7 255.255.255.0
router bgp 7
no synchronization
bgp router-id 7.7.7.7
bgp log-neighbor-changes
network 7.7.7.0 mask 255.255.255.0
neighbor 47.1.1.4 remote-as 1
no auto-summary
实验结果:

MPLS ***的案例

MPLS ***的案例

BGP表

MPLS ***的案例

转载于:https://blog.51cto.com/13597470/2106580

你可能感兴趣的文章
lufylegend:图片的加载和显示
查看>>
献给所有从事IT行业拥有梦想的英语渣们
查看>>
Linux命令-更新系统时间和硬件时间
查看>>
音频AAC编码浅析
查看>>
linux系统时间和硬件时钟问题(date和hwclock)
查看>>
你用过这种奇葩的C#注释吗?如何看待
查看>>
memcache安装
查看>>
我的第一个DMZ方案实践
查看>>
HTML5--Video
查看>>
UVM中的regmodel建模(三)
查看>>
如何查看LoadRunner虚拟用户(vuser)类型
查看>>
oracle截取字符串区间段的一部分字符串
查看>>
Ubuntu Gnome 14.04.2 lts 折腾笔记
查看>>
前台的js对象数组传到后台处理。在前台把js对象数组转化为json字符串,在后台把json字符串解析为List<>...
查看>>
HTML目录
查看>>
【Hibernate学习笔记-5】@Formula注解的使用
查看>>
java ClassLoader static
查看>>
公司交换机arp 绑定操作
查看>>
东大oj-1511: Caoshen like math
查看>>
在.NET4.5项目中添加HttpClient引用的办法
查看>>