目录

MPLS域内配置

MPLS-AS100域内配置

MPLS-AS200域内配置

域间方式A配置

ASBR4和ASBR5配置实例

ASBR之间建立基于实例的EBGP邻居关系

域间方式B配置

ASBR相连接口开启MPLS

ASBR之间建立MP-BGP的EBGP邻居

配置取消RT值检测

配置传递路由时更改下一跳为自身


MPLS域内配置

方案A、B的域内配置就同MPLS单域配置

只不过PE与PE的MP-BGP邻居关系变为PE与ASBR之间的MP-BGP邻居关系

MPLS-AS100域内配置

PE2配置

配置接口IP地址以及IGP协议

int g0/0/0ip add 100.0.23.2 24int g0/0/1ip add 100.0.12.2 24int loop 0ip add 2.2.2.2 32isis 1net 49.0001.0000.0002.00int g0/0/0isis enable 1int loop 0isis enable 1

配置LDP协议

mpls lsr-id 2.2.2.2mplsmpls ldpint g0/0/0mplsmpls ldp

配置MP-BGP邻居(与ASBR4建立IBGP的MP-BGP)

bgp 100peer 4.4.4.4 as 100peer 4.4.4.4 con loop 0ipv4-family unicastundo peer 4.4.4.4 enableipv4-family vpnv4peer 4.4.4.4 enable

配置与CE对接的实例与路由协议

ip vpn-instance CE1ipv4-familyroute-distinguisher 12:1vpn-target 200:1 export-extcommunityvpn-target 100:1 import-extcommunityint g0/0/1ip bind vpn-instance CE1ip add 100.0.12.2 24ospf 1 vpn-instance CE1area 0net 100.0.12.2 0.0.0.0

配置将CE的路由引入到BGP中

bgp 100ipv4-family vpn-instance CE1import-route ospf 1

配置将BGP路由引入到CE中

ospf 1import-route bgp

P3配置

配置接口IP地址以及IGP协议

int g0/0/0ip add 100.0.23.3 24int g0/0/1ip add 100.0.34.3 24int loop 0ip add 3.3.3.3 32isis 1net 49.0001.0000.0003.00int g0/0/0isis enable 1int g0/0/1isis enable 1int loop 0isis enable 1

配置LDP协议

mpls lsr-id 3.3.3.3mplsmpls ldpint g0/0/0mplsmpls ldpint g0/0/1mplsmpls ldp

ASBR4配置

配置接口IP地址以及IGP协议

int g0/0/0ip add 100.0.34.4 24int g0/0/1ip add 100.0.45.4 24int loop 0ip add 4.4.4.4 32isis 1net 49.0001.0000.0004.00int g0/0/0isis enable 1int loop 0isis enable 1

配置LDP协议

mpls lsr-id 4.4.4.4mplsmpls ldpint g0/0/0mplsmpls ldp

配置MP-BGP邻居(与PE2建立IBGP的MP-BGP)

bgp 100peer 2.2.2.2 as 100peer 2.2.2.2 con loop 0ipv4-family unicastundo peer 2.2.2.2 enableipv4-family vpnv4peer 2.2.2.2 enable

此时在PE上可以查看VPNV4路由,发现已经存在本地CE的路由了

但是在ASBR上还没有收到Vpnv4路由(需要在ASBR配置实例,匹配RD值接收Vpnv4路由)

Dis bgp vpnv4 all routing-table 

Dis bgp vpnv4 all peer

MPLS-AS200域内配置

PE7配置

配置接口IP地址以及IGP协议

int g0/0/0ip add 100.0.67.7 24int g0/0/1ip add 100.0.78.7 24int loop 0ip add 7.7.7.7 32isis 1net 49.0001.0000.0007.00int g0/0/0isis enable 1int loop 0isis enable 1

配置LDP协议

mpls lsr-id 7.7.7.7mplsmpls ldpint g0/0/0mplsmpls ldp

配置MP-BGP邻居(与ASBR5建立IBGP的MP-BGP)

bgp 200peer 5.5.5.5 as 200peer 5.5.5.5 con loop 0ipv4-family unicastundo peer 5.5.5.5 enableipv4-family vpnv4peer 5.5.5.5 enable

配置与CE对接的实例与路由协议

ip vpn-instance CE8ipv4-familyroute-distinguisher 78:1vpn-target 400:1 export-extcommunityvpn-target 300:1 import-extcommunityint g0/0/1ip bind vpn-instance CE8ip add 100.0.78.7 24ospf 1 vpn-instance CE8area 0net 100.0.78.7 0.0.0.0

配置将CE的路由引入到BGP中

bgp 200ipv4-family vpn-instance CE8import-route ospf 1

配置将BGP路由引入到CE中

ospf 1import-route bgp

P6配置

配置接口IP地址以及IGP协议

int g0/0/0ip add 100.0.67.6 24int g0/0/1ip add 100.0.56.6 24int loop 0ip add 6.6.6.6 32isis 1net 49.0001.0000.0006.00int g0/0/0isis enable 1int g0/0/1isis enable 1int loop 0isis enable 1

配置LDP协议

mpls lsr-id 6.6.6.6mplsmpls ldpint g0/0/0mplsmpls ldpint g0/0/1mplsmpls ldp

ASBR5配置

配置接口IP地址以及IGP协议

int g0/0/0ip add 100.0.56.5 24int g0/0/1ip add 100.0.45.5 24int loop 0ip add 5.5.5.5 32isis 1net 49.0001.0000.0005.00int g0/0/0isis enable 1int loop 0isis enable 1

配置LDP协议

mpls lsr-id 5.5.5.5mplsmpls ldpint g0/0/0mplsmpls ldp

配置MP-BGP邻居(与PE7建立IBGP的MP-BGP)

bgp 200peer 7.7.7.7 as 200peer 7.7.7.7 con loop 0ipv4-family unicastundo peer 7.7.7.7 enableipv4-family vpnv4peer 7.7.7.7 enable

Dis bgp vpnv4 all routing-table 

Dis bgp vpnv4 all peer


域间方式A配置

MPLS隧道——跨域解决方案A、B讲解_mpls 跨域_静下心来敲木鱼的博客-CSDN博客https://blog.csdn.net/m0_49864110/article/details/127601807?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522167383860516782425185242%2522%252C%2522scm%2522%253A%252220140713.130102334.pc%255Fblog.%2522%257D&request_id=167383860516782425185242&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2~blog~first_rank_ecpm_v1~rank_v31_ecpm-3-127601807-null-null.blog_rank_default&utm_term=mpls%E8%B7%A8%E5%9F%9F&spm=1018.2226.3001.4450

方式A:在ASBR4和ASBR5上建立基于实例的EBGP邻居,将Vpnv4路由转为IPv4路由传递到其它域中(即将ASBR看作PE来配置)

实例对应关系(PE与ASBR的实例对应)

ASBR4和ASBR5配置实例

ASBR4的实例需要接收CE1的vpnv4路由

ip vpn-instance CE1

ipv4-family

route-distinguisher 12:4

vpn-target 100:1 export-extcommunity

vpn-target 200:1 import-extcommunity

int g0/0/1

ip bind vpn-instance CE1

ip add 100.0.45.4 24

ASBR5的实例需要接收CE8的vpnv4路由

ip vpn-instance CE8

ipv4-family

route-distinguisher 78:5

vpn-target 300:1 export-extcommunity

vpn-target 400:1 import-extcommunity

int g0/0/1

ip bind vpn-instance CE8

ip add 100.0.45.5 24

ASBR之间建立基于实例的EBGP邻居关系

ASBR4

bgp 100

ipv4-family vpn-instance CE1

peer 100.0.45.5 as 200

ASBR5

bgp 200

ipv4-family vpn-instance CE8

peer 100.0.45.4 as 100

dis bgp vpnv4 vpn-instance CE1 peer 查看实例CE1的BGP邻居

此时在ASBR设备查看Vpnv4路由信息,在CE查看路由信息


域间方式B配置

方式B:在ASBR4和ASBR5上建立VPNV4的EBGP邻居,直接将VPNV4路由传递给对端

基础配置只是PE1与PE7上的的实例有不同,其余都相同(即PE之间的实例需要对应)

绿色为ASBR4配置紫色为ASBR5配置

ASBR相连接口开启MPLS

int g0/0/1

mpls

int g0/0/1

mpls

ASBR之间建立MP-BGP的EBGP邻居

bgp 100

peer 100.0.45.5 as 200

ipv4-family unicast

undo peer 100.0.45.5 enable

ipv4-family vpnv4

peer 100.0.45.5 enable

bgp 200

peer 100.0.45.4 as 100

ipv4-family unicast

undo peer 100.0.45.4 enable

ipv4-family vpnv4

peer 100.0.45.4 enable

配置取消RT值检测

由于ASBR上没有配置实例,所以需要在ASBR上配置取消RT值检测

bgp 100

ipv4-family vpnv4

undo policy vpn-target

bgp 200

ipv4-family vpnv4

undo policy vpn-target

配置传递路由时更改下一跳为自身

由于从EBGP收到的路由传递给IBGP时,默认不会更改下一跳

bgp 100

ipv4-family vpnv4

peer 2.2.2.2 next-hop-local

bgp 200

ipv4-family vpnv4

peer 7.7.7.7 next-hop-local

华为MPLS跨域A、B方案实验配置相关推荐

  1. 华为MPLS跨域C1方案实验配置

    目录 配置接域内IGP路由协议与LDP协议 配置IPv4的BGP邻居 配置PE之间的Vpnv4邻居 配置PE与CE设备对接命令 ASBR上手工为PE地址分配标签 MPLS隧道--跨域解决方案C1.C2 ...

  2. 华为MPLS跨域C2方案实验配置

    MPLS隧道--跨域解决方案C1.C2讲解_静下心来敲木鱼的博客-CSDN博客_route-policy rr permit node 10 if-match mpls-labelhttps://bl ...

  3. 华为MPLS跨域C1方式RR场景(数据不经过RR)实验配置

    目录 配置BGP邻居的建立 配置MPLS LDP 配置RR之间的MP-BGP邻居 配置通过ASBR学习PE路由并为PE分配标签(实现Vpnv4路由的传递和数据传输) 根据图配置接口的IP地址和IGP协 ...

  4. MPLS ×××跨域实现之OPTION B配置讲解

    MPLS ××× OPTION B配置讲解<?xml:namespace prefix = v ns = "urn:schemas-microsoft-com:vml" /& ...

  5. vue如何配置服务器端跨域_vue项目里如何配置本地代理实现跨域请求

    1.在如图项目配置的index.js文件夹下添加以下一段话 微信图片_20180912182204.png proxyTable: { '/rest': { target: 'http://192.1 ...

  6. vue-cli 3.0之跨域请求devServer proxy代理配置

    vue-cli 3.0之跨域请求devServer proxy代理配置 当我们的前端服务和后端服务不同源即协议不同,端口不同,域名不同时,就会出现跨域的问题. 通过配置devServer.proxy就 ...

  7. 跨域单点登录方案实现

    SSO英文全称Single Sign On,单点登录.当我们搜索单点登录的时候,会发现很多的文章,然而这些文章一般都是基于一种通用的场景描述,通常在各自的业务环境会更加复杂.在本篇文章,我将描述具体场 ...

  8. thinkjs 解决跨域最优方案

    如果在base.js 中设置跨域,如果请求在Logic这里效验不通过,前台就会报跨域错误. 最佳方案是在中间件里面设置跨域. 第一步 在config 的中间件配置里面,启用一个自定义中间件,这个可以是 ...

  9. 服务端解决跨域问题的方案(二)

    一分钟说明 本文主要基于Nginx的配置来解决服务端跨域问题. 涉及知识点: - Nginx的配置 Nginx的跨域配置 location /project {proxy_pass http://10 ...

最新文章

  1. android帧动画实现方法之一
  2. [*开同*看] 星际情书
  3. 超图iClient 3D 入门程序 - 1
  4. 了解电商优惠券的一生,看完这篇就足够了!
  5. linux 服务配置
  6. boost::hana::make_optional用法的测试程序
  7. 查看xxx.a库架构的命令
  8. 腾讯广告 3000+万行大代码库主干开发实战
  9. 【转】ubuntu 开机sudo启动应用程序
  10. 【今日CV 视觉论文速览】Wed, 6 Feb 2019
  11. 2018 终了,是时候秀出我的 Git 进化日志了!
  12. mac 安装使用Liteide
  13. 小米android11账号补丁,小米9 MIUI11 解账户锁 可登小米账号 永不反锁 完美ROOT 解锁包...
  14. 基于qt平台的ip地址输入控件
  15. java 实现前后端分离_详解前后端分离之Java后端
  16. vue中对鼠标划过事件处理方式
  17. ug12无法连接服务器系统,NX许可证错误:无法连接至许可证服务器系统。SPLM_LICENSE_SERVER错误[-15]...
  18. wps中的格式化快捷键
  19. 晶振电路并联一个电阻作用
  20. 我彻底服了,大牛讲解信号与系统(通俗易懂)

热门文章

  1. 高防ip哪家强?甜甜来告诉您
  2. WIP ENTITIES ENTITY TYPE
  3. ubuntu四个屏幕设置_ubuntu9.04 3D桌面开启,特效设置和详解
  4. 电脑版桌面罗盘时钟-超酷炫的桌面壁纸…
  5. matlab画二位温度场图(代码带注释)
  6. 握草,这些研发事故30%我都干过!
  7. 人生最大的敌人是自己,超越自己才能走出困惑
  8. Oozie Namenode/jobTracker not allowed, not in Oozies Whitelist
  9. 人脑是怎样认知图像的?——十种模式识别认知理论简介导引
  10. 【BigHereo 6】-----index的三生三世