mpls vpn综合实例配置案例

news2025/2/26 15:18:57

在这里插入图片描述

如图1所示:
1、AR4连接公司总部财务部、AR6连接分支机构财务部,AR4和AR6属于vpna;
2、 AR5连接公司总部办公、 AR7连接分支机构办公, AR5和 AR7属于vpnb。
公司要求通过部署BGP/MPLS IP VPN,实现总部和分支机构的安全互通,同时要求财务和办公区间数据隔离。

配置思路(AR1为pe1,AR2为p、AR3为pe2)
采用如下的思路配置BGP/MPLS IP VPN:

  1. P、PE之间配置OSPF,实现骨干网的IP连通性。
  2. PE、P上配置MPLS基本能力和MPLS LDP,建立MPLS LSP公网隧道,传输VPN数据。
  3. PE1和PE2上配置VPN实例,其中,vpna使用的VPN-target属性为111:1,vpnb使用的VPN-target属性为222:2,以实现相同VPN间互通,不同VPN间隔离。同时,与CE相连的接口和相应的VPN实例绑定,以接入VPN用户。
  4. PE1和PE2之间配置MP-IBGP,交换VPN路由信息。
  5. CE与PE之间配置EBGP,交换VPN路由信息。

AR1:
dis current-configuration
[V200R003C00]

sysname pe1

snmp-agent local-engineid 800007DB03000000000000
snmp-agent

clock timezone China-Standard-Time minus 08:00:00

portal local-server load flash:/portalpage.zip

drop illegal-mac alarm

wlan ac-global carrier id other ac id 0

set cpu-usage threshold 80 restore 75

ip vpn-instance vpna
ipv4-family
route-distinguisher 100:1 //RD标签
vpn-target 111:1 export-extcommunity //RT标签
vpn-target 111:1 import-extcommunity //RT标签

ip vpn-instance vpnb
ipv4-family
route-distinguisher 100:2
vpn-target 222:2 export-extcommunity
vpn-target 222:2 import-extcommunity

mpls lsr-id 1.1.1.9
mpls

mpls ldp

firewall zone Local
priority 15

interface GigabitEthernet0/0/0
ip binding vpn-instance vpna
ip address 10.1.1.2 255.255.255.0

interface GigabitEthernet0/0/1
ip binding vpn-instance vpnb
ip address 10.2.1.2 255.255.255.0

interface GigabitEthernet0/0/2
ip address 172.1.1.1 255.255.255.0
mpls
mpls ldp

interface NULL0

interface LoopBack1
ip address 1.1.1.9 255.255.255.255

bgp 100 // 在PE之间建立MP-IBGP对等体关系
peer 3.3.3.9 as-number 100
peer 3.3.3.9 connect-interface LoopBack1

ipv4-family unicast
undo synchronization
peer 3.3.3.9 enable

ipv4-family vpnv4
policy vpn-target
peer 3.3.3.9 enable

ipv4-family vpn-instance vpna
import-route direct
peer 10.1.1.1 as-number 65410

ipv4-family vpn-instance vpnb
import-route direct
peer 10.2.1.1 as-number 65420

ospf 1
area 0.0.0.0
network 1.1.1.9 0.0.0.0
network 172.1.1.0 0.0.0.255

user-interface con 0
authentication-mode password
user-interface vty 0 4
user-interface vty 16 20

wlan ac

return

AR2:

dis current-configuration [V200R003C00] # sysname p # snmp-agent local-engineid 800007DB03000000000000 snmp-agent # clock timezone China-Standard-Time minus 08:00:00 # portal local-server load flash:/portalpage.zip # drop illegal-mac alarm # wlan ac-global carrier id other ac id 0 # set cpu-usage threshold 80 restore 75 # mpls lsr-id 2.2.2.9 mpls # mpls ldp # #

firewall zone Local
priority 15

interface GigabitEthernet0/0/0
ip address 172.1.1.2 255.255.255.0
mpls
mpls ldp

interface GigabitEthernet0/0/1
ip address 172.2.1.1 255.255.255.0
mpls
mpls ldp

interface GigabitEthernet0/0/2

interface NULL0

interface LoopBack1
ip address 2.2.2.9 255.255.255.255

ospf 1
area 0.0.0.0
network 2.2.2.9 0.0.0.0
network 172.1.1.0 0.0.0.255
network 172.2.1.0 0.0.0.255

user-interface con 0
authentication-mode password
user-interface vty 0 4
user-interface vty 16 20

wlan ac

return

AR3:
dis current-configuration
[V200R003C00]

sysname pe2

snmp-agent local-engineid 800007DB03000000000000
snmp-agent

clock timezone China-Standard-Time minus 08:00:00

portal local-server load flash:/portalpage.zip

drop illegal-mac alarm

wlan ac-global carrier id other ac id 0

set cpu-usage threshold 80 restore 75

ip vpn-instance vpna
ipv4-family
route-distinguisher 200:1
vpn-target 111:1 export-extcommunity
vpn-target 111:1 import-extcommunity

ip vpn-instance vpnb
ipv4-family
route-distinguisher 200:2
vpn-target 222:2 export-extcommunity
vpn-target 222:2 import-extcommunity

mpls lsr-id 3.3.3.9
mpls

mpls ldp

aaa
authentication-scheme default
authorization-scheme default
accounting-scheme default
domain default
domain default_admin
local-user admin password cipher % % K8m.Nt84DZ}e#<0`8bmE3Uw}% %
local-user admin service-type http

firewall zone Local
priority 15

interface GigabitEthernet0/0/0
ip address 172.2.1.2 255.255.255.0
mpls
mpls ldp

interface GigabitEthernet0/0/1
ip binding vpn-instance vpna
ip address 10.3.1.2 255.255.255.0

interface GigabitEthernet0/0/2
ip binding vpn-instance vpnb
ip address 10.4.1.2 255.255.255.0

interface NULL0

interface LoopBack1
ip address 3.3.3.9 255.255.255.255

bgp 100
peer 1.1.1.9 as-number 100
peer 1.1.1.9 connect-interface LoopBack1

ipv4-family unicast
undo synchronization
peer 1.1.1.9 enable

ipv4-family vpnv4
policy vpn-target
peer 1.1.1.9 enable

ipv4-family vpn-instance vpna
import-route direct
peer 10.3.1.1 as-number 65430

ipv4-family vpn-instance vpnb
import-route direct
peer 10.4.1.1 as-number 65440

ospf 1
area 0.0.0.0
network 3.3.3.9 0.0.0.0
network 172.2.1.0 0.0.0.255

user-interface con 0
authentication-mode password
user-interface vty 0 4
user-interface vty 16 20

wlan ac

return

AR4:

dis cu
dis current-configuration
[V200R003C00]

snmp-agent local-engineid 800007DB03000000000000
snmp-agent

clock timezone China-Standard-Time minus 08:00:00

portal local-server load flash:/portalpage.zip

drop illegal-mac alarm

wlan ac-global carrier id other ac id 0

set cpu-usage threshold 80 restore 75

firewall zone Local
priority 15

interface GigabitEthernet0/0/0
ip address 10.1.1.1 255.255.255.0

interface GigabitEthernet0/0/1

interface GigabitEthernet0/0/2

interface NULL0

bgp 65410
peer 10.1.1.2 as-number 100

ipv4-family unicast
undo synchronization
import-route direct
peer 10.1.1.2 enable

user-interface con 0
authentication-mode password
user-interface vty 0 4
user-interface vty 16 20

wlan ac

return

AR5:
dis cu
dis current-configuration
[V200R003C00]

snmp-agent local-engineid 800007DB03000000000000
snmp-agent

clock timezone China-Standard-Time minus 08:00:00

portal local-server load flash:/portalpage.zip

drop illegal-mac alarm

wlan ac-global carrier id other ac id 0

set cpu-usage threshold 80 restore 75

firewall zone Local
priority 15

interface GigabitEthernet0/0/0
ip address 10.2.1.1 255.255.255.0

interface GigabitEthernet0/0/1

interface GigabitEthernet0/0/2

interface NULL0

bgp 65420
peer 10.2.1.2 as-number 100

ipv4-family unicast
undo synchronization
import-route direct
peer 10.2.1.2 enable

user-interface con 0
authentication-mode password
user-interface vty 0 4
user-interface vty 16 20

wlan ac

return

Ar6:
dis current-configuration
[V200R003C00]

snmp-agent local-engineid 800007DB03000000000000
snmp-agent

clock timezone China-Standard-Time minus 08:00:00

portal local-server load flash:/portalpage.zip

drop illegal-mac alarm

wlan ac-global carrier id other ac id 0

set cpu-usage threshold 80 restore 75

firewall zone Local
priority 15

interface GigabitEthernet0/0/0
ip address 10.3.1.1 255.255.255.0

interface GigabitEthernet0/0/1

interface GigabitEthernet0/0/2

interface NULL0

bgp 65430
peer 10.3.1.2 as-number 100

ipv4-family unicast
undo synchronization
import-route direct
peer 10.3.1.2 enable

user-interface con 0
authentication-mode password
user-interface vty 0 4
user-interface vty 16 20

wlan ac

return

Ar7:
dis cu
dis current-configuration
[V200R003C00]

snmp-agent local-engineid 800007DB03000000000000
snmp-agent

clock timezone China-Standard-Time minus 08:00:00

portal local-server load flash:/portalpage.zip

drop illegal-mac alarm

wlan ac-global carrier id other ac id 0

set cpu-usage threshold 80 restore 75

firewall zone Local
priority 15

interface GigabitEthernet0/0/0
ip address 10.4.1.1 255.255.255.0

interface GigabitEthernet0/0/1

interface GigabitEthernet0/0/2

interface NULL0

bgp 65440
peer 10.4.1.2 as-number 100

ipv4-family unicast
undo synchronization
import-route direct
peer 10.4.1.2 enable

user-interface con 0
authentication-mode password
user-interface vty 0 4
user-interface vty 16 20

wlan ac

return

查看:
执行display mpls ldp session命令可以看到显示结果中Status项为“Operational”。

在PE设备上执行display ip vpn-instance verbose命令可以看到VPN实例的配置情况。各PE能ping通自己接入的CE。

ping -vpn-instance vpn-instance-name -a source-ip-address dest-ip-address命令中的参数-asource-ip-address,否则可能ping不通。

在PE设备上执行display bgp peer或display bgp vpnv4 all peer命令,可以看到PE之间的BGP对等体关系已建立,并达到Established状态

执行display bgp vpnv4 vpn-instance peer命令,可以看到PE与CE之间的BGP对等体关系已建立,并达到Established状态。

在PE设备上执行display ip routing-table vpn-instance命令,可以看到去往对端CE的路由。

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/618776.html

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

2023年6月DAMA-CDGA/CDGP数据治理工程师认证到这家

DAMA认证为数据管理专业人士提供职业目标晋升规划&#xff0c;彰显了职业发展里程碑及发展阶梯定义&#xff0c;帮助数据管理从业人士获得企业数字化转型战略下的必备职业能力&#xff0c;促进开展工作实践应用及实际问题解决&#xff0c;形成企业所需的新数字经济下的核心职业…

CleanMyMac X 4.13.4许可证激活码2023最新免费版

小伙伴们&#xff0c;你们好&#xff0c;今天兔八哥爱分享来聊聊cleanmymac X如何激活&#xff0c;关于cleanmymac的基本情况说明介绍的文章,网友们对这件事情都比较关注&#xff0c;那么现在就为大家来简单介绍下&#xff0c;希望对各位小伙伴们有所帮助。在不断更新的版本中&…

数字化转型的难点是什么?该如何突破?

01为什么要进行数字化转型&#xff1f; 数字化转型不仅是企业提高效率和竞争力的必经之路&#xff0c;也是市场发展趋势的体现。 提升业务效率&#xff1a;数字化转型可以采用自动化流程、数据分析和智能化技术&#xff0c;从而提高企业业务的自动化水平&#xff0c;优化流程…

TLE7244SL-ASEMI代理英飞原装汽车芯片TLE7244SL

编辑&#xff1a;ll TLE7244SL-ASEMI代理英飞原装汽车芯片TLE7244SL 型号&#xff1a;TLE7244SL 品牌&#xff1a;Infineon(英飞凌) 封装&#xff1a;SSOP-24-150mil 类型&#xff1a;电源负载开关 TLE7244SL特性 4个输入引脚&#xff0c;提供灵活的PWM配置 由专用引脚…

XML转换成JSON

说在前面 相信大家对 XML 都不会很陌生了&#xff0c;XML 被设计用来结构化、存储以及传输信息。最近在开发过程中发现&#xff0c;有一些旧接口返回的数据格式即是 XML 的格式&#xff0c;因此需要我们对返回的 XML 数据进行解析&#xff0c;转换成我们好处理的 JSON 数据结构…

SCI论文去哪里查找下载

SCI论文&#xff0c;是指被SCI(Scientific Citation Index)&#xff0c;即科学引文索引所收录的SCI期刊上刊登的学术期刊论文。如何查找下载SCI论文呢&#xff1f;请看下面讲解。 Web of Science数据库 Web of Science是获取全球学术信息的重要数据库&#xff0c;它收录了全球…

vue篇——vue原理以及实现

vue 官网解释Vue (读音 /vjuː/&#xff0c;类似于 view) 是一套用于构建用户界面的渐进式框架&#xff0c;简单易学、双向数据绑定、组件化。数据和结构的分离、虚拟DOM、运行速度快。链接 它有以下的特性&#xff1a;1.轻量级的框架&#xff1b;2.双向数据绑定&#xff1b;3…

MySQL索引事务(一)

1、索引 1.1、概念 索引相当于一种特殊文件&#xff0c;包含着对数据表里所有记录的引用指针。可以对表中的一列或多列创建索引&#xff0c;并指定索引类型&#xff0c;各类索引各自的结构实现。 1.2、作用 *通俗来讲&#xff0c;索引就相当于是我们的书本目录&#xff0c;…

电视、报纸、杂志、网络等曝光度好的媒体有哪些?

在当今社会&#xff0c;媒体是传递信息、宣传思想和引导社会舆论的重要平台。对于企业和个人而言&#xff0c;选择曝光度好的媒体来传递信息&#xff0c;是提高知名度和影响力的重要手段。那么&#xff0c;曝光度好的媒体有哪些呢&#xff1f;下面将从电视、报纸、杂志、网络等…

chatgpt赋能python:Python语言在SEO中的应用

Python语言在SEO中的应用 介绍 Python是一种易于学习&#xff0c;功能强大的高级编程语言&#xff0c;其优秀的性能和简单易用的开发方式&#xff0c;使其成为当前最受欢迎的语言之一。Python在各种应用场景中都有着广泛的应用&#xff0c;其中SEO领域更是不可忽视。Python可…

Tuxera for Mac2023中文版电脑读写硬盘U盘工具

在我们的日常学习和生活当中&#xff0c;因为小巧、便于携带等特性&#xff0c;U盘成为比较常用的移动存储设备。但在使用的过程中&#xff0c;也经常会遇到一些棘手的问题&#xff0c;例如&#xff1a;插入之后无法识别&#xff0c;或只能查看不能读写。那么&#xff0c;U盘不…

工欲善其事,必先利其器还是有必要的

uPic 图床配置教程 - Github 背景 最近发现上传图片的图床服务越来越难用&#xff0c;有的时候上传很慢&#xff0c;甚至会上传不上去。所以搜罗一波&#xff0c;本地实战搞起&#xff0c;巧了&#xff0c;这个软件不错&#xff0c;能达到起码得要求&#xff0c;正适合博客上…

MyBatis-Plus 可视化代码生成器来啦,开发效率提升2倍

前言 一、mybatis-plus-generator-ui是什么&#xff1f; 二、 mybatis-plus-generator-ui怎么用&#xff1f; 1、maven pom引入 2、新建程序入口&#xff0c;以main函数的方式运行 3、实例运行 三、mybatis-plus-generator-ui代码生成 1、Table的查询和浏览 2、输出配置 …

chatgpt赋能python:Python如何调字体大小的方法和步骤

Python如何调字体大小的方法和步骤 什么是调字体大小&#xff1f; 调字体大小是一种常见的文本编辑功能&#xff0c;可以通过更改文本中字号的大小&#xff0c;调整文本在屏幕上显示的大小。在Python编程中&#xff0c;也可以通过调整字体大小来改善程序界面的可读性。 如何…

Apple Vision Pro 内容开发制作

承接 Apple Vision Pro内容制作 3D模型制作 全新的平台。熟悉框架和工具。准备好为Apple Vision Pro设计和构建一个全新的应用程序和游戏世界。 沉浸 Apple Vision Pro提供了一个无限的空间画布来探索&#xff0c;实验和玩&#xff0c;让你自由地完全重新思考你的3D体验。人…

4.4 变量的线程安全分析

目录 4.4 变量的线程安全分析1、成员变量和静态变量是否线程安全&#xff1f;2、局部变量是否线程安全&#xff1f;3、局部变量线程安全分析4、常见线程安全类5、实例分析 4.5 习题1、卖票练习2、转账练习 4.4 变量的线程安全分析 1、成员变量和静态变量是否线程安全&#xff…

不止Chat,GPT-4 将释放更大生产力

目录 1.对 ChatGPT 的巨大超越 2.与 ChatGPT 相同的技术路线 3.GPT-4 背后的强大阵容 4.开启多模态大模型时代 相比 ChatGPT 能力有大进化&#xff0c;多模态上有突破但不多。 近日&#xff0c;多模态大模型 GPT-4 震撼登场&#xff01; GPT-4 能够接受图像和文本输入&am…

读书笔记:从ChatGPT到AIGC:智能创作与应用赋能

文章目录 引爆内容生产力应用场景&#xff1a;ChatGPT的多场景应用传媒电商影视教育金融医疗 发展梳理&#xff1a;从PGC到UGC再到AIGCPGC&#xff1a;企业和平台是内容创作的主体UGC&#xff1a;用户成为内容创作主体AIGC 内容生成&#xff1a;AIGC涵盖多样的内容模态AI图像&a…

JupyterLab 4.0 发布了

JupyterLab 是 Jupyter Notebook 的下一代版本&#xff0c;它提供了更强大的功能和更灵活的用户界面&#xff0c;6月6日&#xff0c;官方发布了JupyterLab 4.0的说明&#xff0c;并且说该版本是下一个主要的版本。 JupyterLab的主要改进是: 用户界面&#xff1a;Jupyter Note…

2023年高性能计算就业及实习岗位大爆料

关于高性能计算能做什么&#xff1f;未来的就业前景如何&#xff1f;薪资如何&#xff1f; 只要是计算密集型的软件&#xff0c;必然需要HPC工程师。最近火热的行业和技术领域&#xff0c;包括深度学习计算机视觉&#xff0c;自然语言处理&#xff0c;自动驾驶&#xff0c;Al f…