华为路由器MPLS VPN综合实验

这篇具有很好参考价值的文章主要介绍了华为路由器MPLS VPN综合实验。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

目录

【实验题目】

【实验思路】

【实验记录】

一、公网部分

二、客户A的MPLS VPN

三、客户B的MPLS VPN

四、配置R7缺省指向公网


【实验题目】

华为路由器MPLS VPN综合实验

【实验思路】

由题目可知,实验目的是要将客户A的站点1和站点2通过MPLS VPN连成一个私网,将客户B的站点1和站点2通过MPLS VPN连成另一个私网,MPLS VPN骨干网络和R4与R7之间的一条网线(这里假设是R4-GE4/0/0与R7-GE0/0/1这根网线)构成公网部分。

那么,首先要将公网做通和配置MPLS和配置BGP,即配置IP地址 ——> 配置OSPF路由 ——> 配置BGP(建立R2/R4对等体关系)——> 配置MPLS ,然后在R2、R4上配置VRF,为VRF接口配置IP地址,再分别为客户A和客户B的私网部分配置IP地址、使用静态或动态方式传递路由,最后在R2、R4上的各自VRF空间中通过双向重发布或BGP路由发布(BGP需配置为MP-BGP)。

至于R7访问R2/R3/R4的环回,在R7写缺省路由即可。

【实验记录】

一、公网部分

1. 配置IP地址

[r2]interface g0/0/2
[r2-GigabitEthernet0/0/2]ip address 23.0.0.1 24
[r2]interface LoopBack 0
[r2-LoopBack0]ip address 2.2.2.2 24
[r3]interface g0/0/0
[r3-GigabitEthernet0/0/0]ip address 23.0.0.2 24
[r3]interface g0/0/1
[r3-GigabitEthernet0/0/1]ip address 34.0.0.1 24
[r3]interface LoopBack 0
[r3-LoopBack0]ip address 3.3.3.3 24
[r4]int g0/0/0
[r4-GigabitEthernet0/0/0]ip address 34.0.0.2 24
[r4]int g4/0/0
[r4-GigabitEthernet4/0/0]ip address 47.0.0.1 24
[r4]interface LoopBack 0
[r4-LoopBack0]ip address 4.4.4.4 24
[r7]int g0/0/1
[r7-GigabitEthernet0/0/1]ip address 47.0.0.2 24

2. 配置OSPF

[r2]ospf 1 router-id 2.2.2.2
[r2-ospf-1]a 0
[r2-ospf-1-area-0.0.0.0]network 23.0.0.0 0.0.0.255
[r2-ospf-1-area-0.0.0.0]network 2.2.2.2 0.0.0.0 
[r3]ospf 1 router-id 3.3.3.3
[r3-ospf-1]a 0
[r3-ospf-1-area-0.0.0.0]network 23.0.0.0 0.0.0.255
[r3-ospf-1-area-0.0.0.0]network 34.0.0.0 0.0.0.255
[r3-ospf-1-area-0.0.0.0]network 3.3.3.3 0.0.0.0
[r4]ospf 1 router-id 4.4.4.4
[r4-ospf-1]a 0
[r4-ospf-1-area-0.0.0.0]network 34.0.0.0 0.0.0.255
[r4-ospf-1-area-0.0.0.0]network 47.0.0.0 0.0.0.255
[r4-ospf-1-area-0.0.0.0]network 4.4.4.4 0.0.0.0

 3. 配置BGP

[r2]bgp 1
[r2-bgp]router-id 2.2.2.2
[r2-bgp]peer 4.4.4.4 as 1
[r2-bgp]peer 4.4.4.4 connect-interface LoopBack 0
[r4]bgp 1
[r4-bgp]router-id 4.4.4.4
[r4-bgp]peer 2.2.2.2 as 1
[r4-bgp]peer 2.2.2.2 connect-interface LoopBack 0

4. 配置MPLS

[r2]mpls lsr-id 2.2.2.2
[r2]mpls 
Info: Mpls starting, please wait... OK!
[r2-mpls]mpls ldp
[r2-mpls-ldp]q
[r2]int g0/0/0
[r2-GigabitEthernet0/0/0]mpls 
[r2-GigabitEthernet0/0/0]mpls ldp 
[r3]mpls lsr-id 3.3.3.3
[r3]mpls 
Info: Mpls starting, please wait... OK!
[r3-mpls]mpls ldp
[r3-mpls-ldp]q
[r3]interface g0/0/0
[r3-GigabitEthernet0/0/0]mpls 
[r3-GigabitEthernet0/0/0]mpls ldp 
[r3-GigabitEthernet0/0/0]int g0/0/1
[r3-GigabitEthernet0/0/1]mpls 
[r3-GigabitEthernet0/0/1]mpls ldp
[r4]mpls lsr-id 4.4.4.4
[r4]mpls 
Info: Mpls starting, please wait... OK!
[r4-mpls]mpls ldp
[r4-mpls-ldp]q
[r4]int g0/0/0
[r4-GigabitEthernet0/0/0]mpls
[r4-GigabitEthernet0/0/0]mpls ldp

华为路由器MPLS VPN综合实验

公网部分完成

二、客户A的MPLS VPN

1. 创建VRF空间

[r2]ip vpn-instance a1
[r2-vpn-instance-a1]route-distinguisher 100:1
[r2-vpn-instance-a1-af-ipv4]vpn-target 100:1 both 
 IVT Assignment result: 
Info: VPN-Target assignment is successful.
 EVT Assignment result: 
Info: VPN-Target assignment is successful.
[r4]ip vpn-instance a2
[r4-vpn-instance-a2]route-distinguisher 100:1
[r4-vpn-instance-a2-af-ipv4]vpn-target 100:1 both 
 IVT Assignment result: 
Info: VPN-Target assignment is successful.
 EVT Assignment result: 
Info: VPN-Target assignment is successful.

2. 划分接口到VRF并配置IP地址

[r2]interface g0/0/0
[r2-GigabitEthernet0/0/0]ip binding vpn-instance a1
Info: All IPv4 related configurations on this interface are removed!
Info: All IPv6 related configurations on this interface are removed!
[r2-GigabitEthernet0/0/0]ip address 192.168.2.2 24
[r4]interface g0/0/1
[r4-GigabitEthernet0/0/1]ip binding vpn-instance a2
Info: All IPv4 related configurations on this interface are removed!
Info: All IPv6 related configurations on this interface are removed!
[r4-GigabitEthernet0/0/1]ip address 192.168.3.1 24

3. 客户A私网配置IP地址并使用静态方式传递路由

[r1]int g0/0/0
[r1-GigabitEthernet0/0/0]ip address 192.168.2.1 24
[r1]int LoopBack 0
[r1-LoopBack0]ip address 192.168.1.1 24
[r1]ip route-static 192.168.3.0 24 192.168.2.2
[r1]ip route-static 192.168.4.0 24 192.168.2.2
[r2]ip route-static vpn-instance a1 192.168.1.0 24 192.168.2.1
[r5]int g0/0/0
[r5-GigabitEthernet0/0/0]ip address 192.168.3.2 24
[r5]interface LoopBack 0
[r5-LoopBack0]ip address 192.168.4.1 24
[r5]ip route-static 192.168.1.0 24 192.168.3.1
[r5]ip route-static 192.168.2.0 24 192.168.3.1
[r4]ip route-static vpn-instance a2 192.168.4.0 24 192.168.3.2

4. 配置MP-BGP并发布路由

[r2]bgp 1
[r2-bgp]ipv4-family vpnv4
[r2-bgp-af-vpnv4]peer 4.4.4.4 enable
[r2-bgp-af-vpnv4]q
[r2-bgp]ipv4-family vpn-instance a1
[r2-bgp-a1]network 192.168.1.0 24
[r2-bgp-a1]network 192.168.2.0 24
[r4]bgp 1
[r4-bgp]ipv4-family vpnv4
[r4-bgp-af-vpnv4]peer 2.2.2.2 enable 
[r4-bgp-af-vpnv4]q
[r4-bgp]ipv4-family vpn-instance a2
[r4-bgp-a2]network 192.168.3.0 24
[r4-bgp-a2]network 192.168.4.0 24

华为路由器MPLS VPN综合实验

华为路由器MPLS VPN综合实验

华为路由器MPLS VPN综合实验

 客户A的MPLS VPN私网完成

三、客户B的MPLS VPN

1. 创建VRF空间

[r2]ip vpn-instance b1
[r2-vpn-instance-b1]route-distinguisher 200:1
[r2-vpn-instance-b1-af-ipv4]vpn-target 200:1 b
 IVT Assignment result: 
Info: VPN-Target assignment is successful.
 EVT Assignment result: 
Info: VPN-Target assignment is successful.
[r4]ip vpn-instance b2
[r4-vpn-instance-b2]route-distinguisher 200:1
[r4-vpn-instance-b2-af-ipv4]vpn-target 200:1 b	
[r4-vpn-instance-b2-af-ipv4]vpn-target 200:1 both 
 IVT Assignment result: 
Info: VPN-Target assignment is successful.
 EVT Assignment result: 
Info: VPN-Target assignment is successful.

2. 划分接口到VRF并配置IP地址

[r2]interface g0/0/1
[r2-GigabitEthernet0/0/1]ip binding vpn-instance b1
Info: All IPv4 related configurations on this interface are removed!
Info: All IPv6 related configurations on this interface are removed!
[r2-GigabitEthernet0/0/1]ip address 172.10.2.2 24
[r4]interface g0/0/2
[r4-GigabitEthernet0/0/2]ip binding vpn-instance b2
Info: All IPv4 related configurations on this interface are removed!
Info: All IPv6 related configurations on this interface are removed!
[r4-GigabitEthernet0/0/2]ip address 172.10.3.1 24

3. 客户B私网配置IP地址并使用动态方式传递路由

[r6]int g0/0/0
[r6-GigabitEthernet0/0/0]ip address 172.10.2.1 24
[r6]int LoopBack 0
[r6-LoopBack0]ip address 172.10.1.1 24
[r6]rip 1
[r6-rip-1]v 2
[r6-rip-1]network 172.10.0.0
[r2]rip 1 vpn-instance b1
[r2-rip-1]v 2
[r2-rip-1]network 172.10.0.0
[r7]interface g0/0/0
[r7-GigabitEthernet0/0/0]ip address 172.10.3.2 24
[r7]int LoopBack 0
[r7-LoopBack0]ip address 172.10.4.1 24
[r7]ospf 2 router-id 7.7.7.7
[r7-ospf-2]a 0
[r7-ospf-2-area-0.0.0.0]network 172.10.3.0 0.0.0.255
[r7-ospf-2-area-0.0.0.0]network 172.10.4.1 0.0.0.0
[r4]ospf 2 vpn-instance b2 router-id 4.4.4.4
[r4-ospf-2]a 0
[r4-ospf-2-area-0.0.0.0]network 172.10.3.0 0.0.0.255

4. 配置MP-BGP并双向重发布路由

[r2]bgp 1
[r2-bgp]ipv4-family vpn-instance b1
[r2-bgp-b1]import-route rip 1

[r2]rip 1
[r2-rip-1]import-route bgp
[r4]bgp 1
[r4-bgp]ipv4-family vpn-instance b2
[r4-bgp-b2]import-route ospf 2

[r4]ospf 2 vpn-instance b2
[r4-ospf-2]import-route bgp

华为路由器MPLS VPN综合实验

华为路由器MPLS VPN综合实验

华为路由器MPLS VPN综合实验

 客户B的MPLS VPN私网完成

四、配置R7缺省指向公网

[r7]ip route-static 0.0.0.0 0 47.0.0.1

华为路由器MPLS VPN综合实验

至此,实验全部完成! 文章来源地址https://www.toymoban.com/news/detail-501544.html

到了这里,关于华为路由器MPLS VPN综合实验的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • 三层交换机/路由器OSPF配置详解【华为eNSP实验】

    下文下载或文章顶部资源绑定处下载。 https://download.csdn.net/download/weixin_52908342/88526847 之前我们已经成功配置了VRRP+MSTP在三层交换机与路由器之间的使用。 现在我们来记录一下三层交换机/路由器OSPF配置详解。 需求如下: 5.公司网络需要在两台汇聚层交换机和一台核心路由器

    2024年02月02日
    浏览(47)
  • 锐捷RSR系列路由器—VPN功能—GRE 功能配置

    目录 功能介绍 应用场景 一、组网需求 二、组网拓扑 三、配置要点 四、配置步骤 五、配置验证   GRE(Generic Routing Encapsulation,通用路由封装)协议是对某些网络层协议(如IP 和IPX)的数据报文进行封装,使这些被封装的数据报文能够在另一个网络层协议(如IP)中传输。

    2024年02月04日
    浏览(34)
  • 【华为】MPLS及MPLS VPN概念

    设计初衷 多协议指的是在IPV4,IPV6,IPX等网络环境中都可以使用,并且它不对底层物理介质,数据链路层介质,以及上层所使用的协议栈有要求。 MPLS是工作在 数据层面的交换技术 ,也可以理解为是一种转发技术。 MPLS是多协议 标签 交换,所以重点是标签Label中。就它是怎么

    2024年02月10日
    浏览(22)
  • 灵科路由器的综合故障解读

        一、接口MTU值相同,但无法建立IS-IS邻居。 两端接口MTU值相同的情况下,MTU值还需满足大于lsp-length originate配置的max-size值和小于lsp-length receive配置的max-size值两个条件,接口MTU状态才能UP。与此同时,还需在接口上使能IS-IS并配置有效IP地址,接口状态才能UP,否则IS-IS报文

    2024年02月05日
    浏览(27)
  • 华为荣耀路由器多少钱 华为荣耀路由器价格介绍

    刚才为大家介绍了华为荣耀路由器配置功能,现在继续为大家介绍华为荣耀路由器售价。感兴趣的朋友可以看看,下面就和小编一起去了解下吧。 华为荣耀路由器怎么样?华为荣耀路由配置功能详细介绍 就在刚刚,荣耀公布X2售价之后,还带来一款全新的产品,没错就是路由

    2024年02月08日
    浏览(32)
  • 华为荣耀路由器怎么样 华为荣耀路由器使用评测视频

    华为除了开卖荣耀x2之外,荣耀路由器也登场了哈。下面小编为大家分享了华为荣耀路由器评测视频,小伙伴们看过来撒。 华为荣耀路由器怎么样?华为荣耀路由配置功能详细介绍 这款荣耀路由器售价188元,内置双天线设计(双频2.4G/5G),机身体积为90×90×90mm,搭载了华为麒麟

    2024年02月08日
    浏览(35)
  • NAT 地址转换路由器配置命令(华为路由器)

      #AR1路由器配置 # acl 2000    rule permit source any # interface GigabitEthernet0/0/1  nat outbound 2000  ip address 1.1.1.1 24 # interface GigabitEthernet0/0/0  ip address 172.16.1.1 255.255.255.0  # ip route-static 0.0.0.0 0.0.0.0 1.1.1.2 ip route-static 192.168.10.0 255.255.255.0 172.16.1.2 ip route-static 192.168.20.0 255.255.255.0 172.16.1.

    2024年02月17日
    浏览(48)
  • 小米路由器华为路由器 怎么才能选择一款合适的智能路由器?

    近两年,具有智能概念的路由器风生水起,从互联网巨头到初创公司均涉足到智能路由器的研发。什么样的路由器才算是智能路由?度娘到的资料有些杂乱,但基本的共同点是只要路由器能够支持安装插件扩展路由功能、提供移动设备端App进行管理的路由器均可称为智能路由

    2024年02月08日
    浏览(41)
  • 华为WS331a路由器怎么样 华为WS331a迷你路由器评测

    前不久华为推出一款智能便携式WS331a迷你路由器,该路由器具有华为独有专利的无线安全锁功能,无需密码即可安全智能连接无线网络,加之属于迷你路由器,方便携带。那么这款关注度颇高的华为WS331a怎么样?又有哪些亮点呢,以下百事网小编为大家解析下。 华为WS331a怎么

    2024年02月06日
    浏览(32)
  • 跨域BGP/MPLS IP VPN实验(OptionA方式)

    目录 一、概述 二、组网需求 三、实验拓扑 四、实验目的 五、实验编址表 六、实验步骤          1.基本配置 2.配置运营商网络的OSPF路由协议 3.配置运营商网络的MPLS协议与LDP 4.配置PE与ASBR设备间的MP-BGP 5.在PE、ASBR上创建VPN实例并与接口绑定 6.配置PE与CE的连通性 7.配置

    2024年02月08日
    浏览(23)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包