0


基于MPLS-V**多分部互访的ensp企业网络规划与设计_ensp综合实验

作者:BSXY_19计科_陈永跃

BSXY_信息学院

注:未经允许禁止转发任何内容

基于MPLS-V**多分部互访的ensp企业网络规划与设计_ensp综合实验

前言及技术/资源下载说明( 未经允许禁止转发任何内容 )

有什么问题可以在评论区说明自己遇到的情况,博主看到会第一时间回复,希望其他人也可以回复别人的问题
(后期有什么内容会在博文中进行修改和更新的)
可根据以下所提供的设计与实现步骤过程一步一步自行实现(每一条命令都是关键的命令);但是如果有需要的也可以根据以下地址进行下载完整的topo图和完整的配置进行参考与借鉴
,如若拿到topo图可多display查看配置,查看相应的命令,配套资源连接如下,相应的内容如下图所示

基于MPLS-VPN多分部互访的ensp企业网络规划与设计.rar + 全程配置视频+可导入的配置文件

建议在做该综合实验的话多做几个MPLS VPN的实验和多看看有关MPLS VPN的知识,不然可能对着视频做出来也感觉莫名其妙
在这里插入图片描述
以上也就是topo图的规划,相应的地址规划和路由规划大部分都在图中明确的标注了
该实验中用到的技术有相应的vlan划分、链路捆绑、MSTP、VRRP、DHCP、OSPF、无线WLAN、静态路由、BGP、MPLS VPN、路由引入配置等等这些技术。对于视频的话可以开启1.25倍速观看。有什么问题的话,都可以在平台中私信于我。该实验非常适合于把相应的单个技术学完想把这些技术综合起来的小伙伴,且对于毕设课设的小伙伴可以进行参考,进行自己的规划与设计,最后对于软考网络工程师/网络规划设计的小伙伴来说个人建议是有必要抽个时间好好的做一下这个实验的,最后说明该topo规划最后的作者权归于:BSXY_信息学院_19计科_陈永跃

插曲:基于eNSP中大型校园/企业网络规划与设计(可不看)

插曲部分:基于eNSP中大型校园/企业网络规划与设计_综合大作业 如下图所示(但是并不在该篇文章中做详细介绍和说明,如查看可点击连接自行查看阅读):
在这里插入图片描述

该网络规划的过程步骤(顺着一步一步走

命令是全的,不过对于很多人来说可能配置不全,自己单独完成不了这个实验,所以这边建议是以下的命令结合配置的视频来完成相应的实验,可能命令嘛就是起到一个辅助的用作在该实验中,花不了你多少米,因为这个基于MPLS VPN的综合实验可能很多朋友都会觉得比较的不好弄

1、VLAN底层划分&链路捆绑

SW3:<Huawei>sys
[Huawei]un in en
[Huawei]sysname SW3[SW3]vlan batch 1020[SW3]int e0/0/1[SW3-Ethernet0/0/1]port link-type access
[SW3-Ethernet0/0/1]port default vlan 10[SW3-Ethernet0/0/1]int e0/0/2[SW3-Ethernet0/0/2]port link-type access
[SW3-Ethernet0/0/2]port default vlan 20[SW3-Ethernet0/0/2]qui
[SW3]port-group g e0/0/3 e0/0/4[SW3-port-group]port link-type trunk
[SW3-Ethernet0/0/3]port link-type trunk
[SW3-Ethernet0/0/4]port link-type trunk
[SW3-port-group]port trunk allow-pass vlan all
[SW3-Ethernet0/0/3]port trunk allow-pass vlan all
[SW3-Ethernet0/0/4]port trunk allow-pass vlan all
[SW3-port-group]qui
[SW3]------------------------------------SW4:<Huawei>sys
[Huawei]un in en
[Huawei]sysname SW4[SW4]vlan batch 1020[SW4]int e0/0/1[SW4-Ethernet0/0/1]port link-type access
[SW4-Ethernet0/0/1]port default vlan 10[SW4-Ethernet0/0/1]int e0/0/2[SW4-Ethernet0/0/2]port link-type access
[SW4-Ethernet0/0/2]port default vlan 20[SW4-Ethernet0/0/2]qui
[SW4]port-group g e0/0/3 e0/0/4[SW4-port-group]port link-type trunk
[SW4-Ethernet0/0/3]port link-type trunk
[SW4-Ethernet0/0/4]port link-type trunk
[SW4-port-group]port trunk allow-pass vlan all
[SW4-Ethernet0/0/3]port trunk allow-pass vlan all
[SW4-Ethernet0/0/4]port trunk allow-pass vlan all
[SW4-port-group]qui
[SW4]------------------------------------SW1:<Huawei>sys
[Huawei]un in en
[Huawei]sysname SW1[SW1]vlan batch 102011[SW1]port-group g g0/0/1 g0/0/2[SW1-port-group]port link-type trunk
[SW1-GigabitEthernet0/0/1]port link-type trunk
[SW1-GigabitEthernet0/0/2]port link-type trunk
[SW1-port-group]port trunk allow-pass vlan all
[SW1-GigabitEthernet0/0/1]port trunk allow-pass vlan all
[SW1-GigabitEthernet0/0/2]port trunk allow-pass vlan all
[SW1-port-group]qui
[SW1]int g0/0/3[SW1-GigabitEthernet0/0/3]port link-type access
[SW1-GigabitEthernet0/0/3]port default vlan 11[SW1-GigabitEthernet0/0/3]qui
[SW1]int eth-trunk 1[SW1-Eth-Trunk1]mode lacp-static[SW1-Eth-Trunk1]trunkport g0/0/10[SW1-Eth-Trunk1]trunkport g0/0/11[SW1-Eth-Trunk1]port link-type trunk
[SW1-Eth-Trunk1]port trunk allow-pass vlan all
[SW1-Eth-Trunk1]qui
[SW1]------------------------------------SW2:<Huawei>sys
[Huawei]un in en
[Huawei]sysname SW2[SW2]vlan batch 102022[SW2]port-group g g0/0/1 g0/0/2[SW2-port-group]port link-type trunk
[SW2-GigabitEthernet0/0/1]port link-type trunk
[SW2-GigabitEthernet0/0/2]port link-type trunk
[SW2-port-group]port trunk allow-pass vlan all
[SW2-GigabitEthernet0/0/1]port trunk allow-pass vlan all
[SW2-GigabitEthernet0/0/2]port trunk allow-pass vlan all
[SW2-port-group]qui
[SW2]int g0/0/3[SW2-GigabitEthernet0/0/3]port link-type access
[SW2-GigabitEthernet0/0/3]port default vlan 22[SW2-GigabitEthernet0/0/3]qui
[SW2]int eth-trunk 1[SW2-Eth-Trunk1]mode lacp-static[SW2-Eth-Trunk1]trunkport g0/0/10[SW2-Eth-Trunk1]trunkport g0/0/11[SW2-Eth-Trunk1]port link-type trunk
[SW2-Eth-Trunk1]port trunk allow-pass vlan all
[SW2-Eth-Trunk1]qui
[SW2]dis eth-trunk 1

2、MSTP

SW3:[SW3]stp region-configuration
[SW3-mst-region]instance 1 vlan 10[SW3-mst-region]instance 2 vlan 20[SW3-mst-region]active region-configuration
[SW3-mst-region]qui
------------------------------------SW3:[SW4]stp region-configuration
[SW4-mst-region]instance 1 vlan 10[SW4-mst-region]instance 2 vlan 20[SW4-mst-region]active region-configuration
[SW4-mst-region]qui
------------------------------------SW1:[SW1]stp region-configuration
[SW1-mst-region]instance 1 vlan 10[SW1-mst-region]instance 2 vlan 20[SW1-mst-region]active region-configuration
[SW1-mst-region]qui
[SW1]stp instance 1 root primary
[SW1]stp instance 2 root secondary
[SW1]------------------------------------SW2:[SW2]stp region-configuration
[SW2-mst-region]instance 1 vlan 10[SW2-mst-region]instance 2 vlan 20[SW2-mst-region]active region-configuration
[SW2-mst-region]qui
[SW2]stp instance 2 root primary
[SW2]stp instance 1 root secondary
[SW2]

3、VRRP

SW1:[SW1]int vlan 10[SW1-Vlanif10]ip add 10.1.10.25324[SW1-Vlanif10]vrrp vrid 10 virtual-ip 10.1.10.254[SW1-Vlanif10]vrrp vrid 10 priority 120[SW1-Vlanif10]qui
[SW1]int vlan 20[SW1-Vlanif20]ip add 10.1.20.25324[SW1-Vlanif20]vrrp vrid 20 virtual-ip 10.1.20.254[SW1-Vlanif20]qui
[SW1]int vlan 11[SW1-Vlanif11]ip add 10.1.15.124[SW1-Vlanif11]qui
[SW1]------------------------------------SW2:[SW2]int vlan 10[SW2-Vlanif10]ip add 10.1.10.25224[SW2-Vlanif10]vrrp vrid 10 virtual-ip 10.1.10.254[SW2-Vlanif10]qui
[SW2]int vlan 20[SW2-Vlanif20]ip add 10.1.20.25224[SW2-Vlanif20]vrrp vrid 20 virtual-ip 10.1.20.254[SW2-Vlanif20]vrrp vrid 20 priority 120[SW2-Vlanif20]qui
[SW2]int vlan 22[SW2-Vlanif22]ip add 10.1.25.224[SW2-Vlanif22]qui
[SW2]dis vrrp br

4、OSPF

SW2:[SW2]ospf
[SW2-ospf-1]area 0[SW2-ospf-1-area-0.0.0.0]net 10.1.25.00.0.0.255[SW2-ospf-1-area-0.0.0.0]net 10.1.10.00.0.0.255[SW2-ospf-1-area-0.0.0.0]net 10.1.20.00.0.0.255[SW2-ospf-1-area-0.0.0.0]qui
[SW2-ospf-1]silent-interface vlanif 10[SW2-ospf-1]silent-interface vlanif 20[SW2-ospf-1]dis this[SW2-ospf-1]qui
[SW2]------------------------------------SW1:[SW1]ospf
[SW1-ospf-1]area 0[SW1-ospf-1-area-0.0.0.0]net 10.1.15.00.0.0.255[SW1-ospf-1-area-0.0.0.0]net 10.1.10.00.0.0.255[SW1-ospf-1-area-0.0.0.0]net 10.1.20.00.0.0.255[SW1-ospf-1-area-0.0.0.0]qui
[SW1-ospf-1]silent-interface vlanif 10[SW1-ospf-1]silent-interface vlanif 20[SW1-ospf-1]dis this[SW1-ospf-1]qui
[SW1]

5、总部路由器配置

R5:<Huawei>sys
[Huawei]un in en
[Huawei]sysname R5[R5]int g0/0/2[R5-GigabitEthernet0/0/2]ip add 10.1.51.524[R5-GigabitEthernet0/0/2]int g0/0/0[R5-GigabitEthernet0/0/0]ip add 10.1.15.524[R5-GigabitEthernet0/0/0]int g0/0/1[R5-GigabitEthernet0/0/1]ip add 10.1.25.524[R5-GigabitEthernet0/0/1]qui
[R5]ospf
[R5-ospf-1]area 0[R5-ospf-1-area-0.0.0.0]net 10.1.15.00.0.0.255[R5-ospf-1-area-0.0.0.0]net 10.1.25.00.0.0.255[R5-ospf-1-area-0.0.0.0]net 10.1.51.00.0.0.255[R5-ospf-1-area-0.0.0.0]qui
[R5-ospf-1]qui
[R5]dis ospf peer br

6、分部1无线配置

SW6:<Huawei>sys
[Huawei]un in en
[Huawei]sysname SW6[SW6]vlan batch 111112[SW6]port-group g g0/0/1tog0/0/3[SW6-port-group]port link-type trunk
[SW6-port-group]port trunk allow-pass vlan all
[SW6-port-group]qui
[SW6]int g0/0/3[SW6-GigabitEthernet0/0/3]port trunk pvid vlan 111[SW6-GigabitEthernet0/0/3]qui
[SW6]------------------------------------AC:
<AC6605>sys
[AC6605]un in en
[AC6605]sysname AC[AC]vlan batch 111112[AC]int g0/0/1[AC-GigabitEthernet0/0/1]port link-type trunk
[AC-GigabitEthernet0/0/1]port trunk allow-pass vlan all
[AC-GigabitEthernet0/0/1]qui
[AC]dhcp enable
[AC]ip pool vlan
[AC-ip-pool-vlan]net 10.1.112.0 mask 24[AC-ip-pool-vlan]gateway-list 10.1.112.254[AC-ip-pool-vlan]qui
[AC]int vlan 111[AC-Vlanif111]ip add 10.1.111.124[AC-Vlanif111]dhcp select interface[AC-Vlanif111]qui
[AC]int vlan 112[AC-Vlanif112]ip add 10.1.112.124[AC-Vlanif112]dhcp select global
[AC-Vlanif112]qui
[AC]capwap source int vlanif 111[AC]wlan
[AC-wlan-view]security-profile name 1[AC-wlan-sec-prof-1]security wpa2 psk pass-phrase a1234567 aes
[AC-wlan-sec-prof-1]qui
[AC-wlan-view]ssid-profile name 1[AC-wlan-ssid-prof-1]ssid wlan-branch1
[AC-wlan-ssid-prof-1]qui
[AC-wlan-view]vap-profile name 1[AC-wlan-vap-prof-1]security-profile 1[AC-wlan-vap-prof-1]ssid-profile 1[AC-wlan-vap-prof-1]service-vlan vlan-id 112[AC-wlan-vap-prof-1]qui
[AC-wlan-view]ap-id 1 ap-mac 00e0-fcb6-5940[AC-wlan-ap-1]vap-profile 1 wlan 1 radio all
[AC-wlan-ap-1]qui
[AC-wlan-view]qui
[AC]qui
<AC>save

7、分部1路由器配置

R8:<Huawei>sys
[Huawei]un in en
[Huawei]sysname R8[R8]int g0/0/1.10[R8-GigabitEthernet0/0/1.10]dot1q termination vid 112[R8-GigabitEthernet0/0/1.10]ip address 10.1.112.254255.255.255.0[R8-GigabitEthernet0/0/1.10]arp broadcast enable
[R8-GigabitEthernet0/0/1.10]int g0/0/0[R8-GigabitEthernet0/0/0]ip add 10.1.28.824[R8-GigabitEthernet0/0/0]qui
[R8]bgp 65530[R8-bgp]peer 10.1.28.2 as 100[R8-bgp]net 10.1.112.024[R8-bgp]dis this
#
bgp 65530
 peer 10.1.28.2 as-number 100 
 #
 ipv4-family unicast
  undo synchronization
  network 10.1.112.0255.255.255.0 
  peer 10.1.28.2 enable
#
[R8-bgp]qui
[R8]

8、分部2路由器

R6:<Huawei>sys
[Huawei]un in en
[Huawei]sysname R6[R6]int g0/0/0[R6-GigabitEthernet0/0/0]ip add 172.16.45.524[R6-GigabitEthernet0/0/0]qui
[R6]dhcp enable
[R6]int g0/0/1[R6-GigabitEthernet0/0/1]ip add 172.16.1.25424[R6-GigabitEthernet0/0/1]dhcp select interface[R6-GigabitEthernet0/0/1]qui
[R6]ospf
[R6-ospf-1]area 0[R6-ospf-1-area-0.0.0.0]net 172.16.1.00.0.0.25[R6-ospf-1-area-0.0.0.0]net 172.16.45.00.0.0.255[R6-ospf-1-area-0.0.0.0]qui
[R6-ospf-1]qui
[R6]qui
<R6>save

9、分部3路由器配置

<Huawei>sys
[Huawei]un in en
[Huawei]sysname R7[R7]int g0/0/0[R7-GigabitEthernet0/0/0]ip add 192.168.1.25424[R7-GigabitEthernet0/0/0]int g0/0/1[R7-GigabitEthernet0/0/1]ip add 192.168.37.724[R7-GigabitEthernet0/0/1]qui
[R7]ip route-static0.0.0.00192.168.37.3[R7]qui
<R7>save

10、核心路由器地址配置&OSPF配置

R2:<Huawei>sys
[Huawei]un in en
[Huawei]sysname R2[R2]int g4/0/0[R2-GigabitEthernet4/0/0]ip add 23.1.1.224[R2-GigabitEthernet4/0/0]int g0/0/1[R2-GigabitEthernet0/0/1]ip add 29.1.1.224[R2-GigabitEthernet0/0/1]int g0/0/2[R2-GigabitEthernet0/0/2]ip add 12.1.1.224[R2-GigabitEthernet0/0/2]qui
[R2]int loo0
[R2-LoopBack0]ip add 2.2.2.232[R2-LoopBack0]qui
[R2]ospf 2 router-id 2.2.2.2[R2-ospf-2]area 0[R2-ospf-2-area-0.0.0.0]net 2.2.2.20.0.0.0[R2-ospf-2-area-0.0.0.0]net 29.1.1.00.0.0.255[R2-ospf-2-area-0.0.0.0]net 12.1.1.00.0.0.255[R2-ospf-2-area-0.0.0.0]net 23.1.1.00.0.0.255[R2-ospf-2-area-0.0.0.0]qui
[R2-ospf-2]qui
[R2]------------------------------------R1:<Huawei>sys
[Huawei]un in en
[Huawei]sysname R1[R1]int g0/0/1[R1-GigabitEthernet0/0/1]ip add 12.1.1.124[R1-GigabitEthernet0/0/1]int g0/0/2[R1-GigabitEthernet0/0/2]ip add 19.1.1.124[R1-GigabitEthernet0/0/2]int g4/0/0[R1-GigabitEthernet4/0/0]ip add 14.1.1.124[R1-GigabitEthernet4/0/0]qui
[R1]int loo0
[R1-LoopBack0]ip add 1.1.1.132[R1-LoopBack0]qui
[R1]ospf 2 router-id 1.1.1.1[R1-ospf-2]area 0[R1-ospf-2-area-0.0.0.0]net 1.1.1.10.0.0.0[R1-ospf-2-area-0.0.0.0]net 12.1.1.00.0.0.255[R1-ospf-2-area-0.0.0.0]net 19.1.1.00.0.0.255[R1-ospf-2-area-0.0.0.0]net 14.1.1.00.0.0.255[R1-ospf-2-area-0.0.0.0]qui
[R1-ospf-2]qui
[R1]------------------------------------R9:<Huawei>sys
[Huawei]un in en
[Huawei]sysname R9[R9]int g0/0/0[R9-GigabitEthernet0/0/0]ip add 29.1.1.924[R9-GigabitEthernet0/0/0]int g0/0/1[R9-GigabitEthernet0/0/1]ip add 19.1.1.924[R9-GigabitEthernet0/0/1]int g0/0/2[R9-GigabitEthernet0/0/2]ip add 39.1.1.924[R9-GigabitEthernet0/0/2]int g6/0/0[R9-GigabitEthernet6/0/0]ip add 49.1.1.924[R9-GigabitEthernet6/0/0]qui
[R9]int loo0
[R9-LoopBack0]ip add 9.9.9.932[R9-LoopBack0]qui
[R9]ospf 2 router-id 9.9.9.9[R9-ospf-2]area 0[R9-ospf-2-area-0.0.0.0]net 9.9.9.90.0.0.0[R9-ospf-2-area-0.0.0.0]net 19.1.1.00.0.0.255[R9-ospf-2-area-0.0.0.0]net 29.1.1.00.0.0.255[R9-ospf-2-area-0.0.0.0]net 39.1.1.00.0.0.255[R9-ospf-2-area-0.0.0.0]net 49.1.1.00.0.0.255[R9-ospf-2-area-0.0.0.0]qui
[R9-ospf-2]qui
[R9]------------------------------------R3:<Huawei>sys
[Huawei]un in en
[Huawei]sysname R3[R3][R3]int g0/0/1[R3-GigabitEthernet0/0/1]ip add 23.1.1.324[R3-GigabitEthernet0/0/1]int g0/0/0[R3-GigabitEthernet0/0/0]ip add 39.1.1.324[R3-GigabitEthernet0/0/0]int g0/0/2[R3-GigabitEthernet0/0/2]ip add 34.1.1.324[R3-GigabitEthernet0/0/2]qui
[R3]int loo0
[R3-LoopBack0]ip add 3.3.3.332[R3-LoopBack0]qui
[R3]ospf 2 router-id 3.3.3.3[R3-ospf-2]area 0[R3-ospf-2-area-0.0.0.0]net 3.3.3.30.0.0.0[R3-ospf-2-area-0.0.0.0]net 23.1.1.00.0.0.255[R3-ospf-2-area-0.0.0.0]net 34.1.1.00.0.0.255[R3-ospf-2-area-0.0.0.0]net 39.1.1.00.0.0.255[R3-ospf-2-area-0.0.0.0]qui
[R3-ospf-2]qui
[R3]------------------------------------R4:<Huawei>sys
[Huawei]un in en
[Huawei]sysname R4[R4]int g0/0/1[R4-GigabitEthernet0/0/1]ip add 34.1.1.424[R4-GigabitEthernet0/0/1]int g0/0/2[R4-GigabitEthernet0/0/2]ip add 49.1.1.424[R4-GigabitEthernet0/0/2]int g0/0/0[R4-GigabitEthernet0/0/0]ip add 14.1.1.424[R4-GigabitEthernet0/0/0]qui
[R4]int loo0
[R4-LoopBack0]ip add 4.4.4.432[R4-LoopBack0]qui
[R4]ospf 2 router-id 4.4.4.4[R4-ospf-2]area 0[R4-ospf-2-area-0.0.0.0]net 4.4.4.40.0.0.0[R4-ospf-2-area-0.0.0.0]net 14.1.1.00.0.0.255[R4-ospf-2-area-0.0.0.0]net 49.1.1.00.0.0.255[R4-ospf-2-area-0.0.0.0]net 34.1.1.00.0.0.255[R4-ospf-2-area-0.0.0.0]qui
[R4-ospf-2]qui
[R4]

11、MPLS配置

R2:[R2]mpls lsr-id 2.2.2.2[R2]mpls
[R2-mpls]mpls ldp
[R2-mpls-ldp]qui
[R2]int g4/0/0[R2-GigabitEthernet4/0/0]mpls
[R2-GigabitEthernet4/0/0]mpls ldp
[R2-GigabitEthernet4/0/0]int g0/0/1[R2-GigabitEthernet0/0/1]mpls
[R2-GigabitEthernet0/0/1]mpls ldp
[R2-GigabitEthernet0/0/1]int g0/0/2[R2-GigabitEthernet0/0/2]mpls
[R2-GigabitEthernet0/0/2]mpls ldp
[R2-GigabitEthernet0/0/2]qui
[R2]------------------------------------R1:[R1]mpls lsr-id 1.1.1.1[R1]mpls
[R1-mpls]mpls ldp
[R1-mpls-ldp]qui
[R1]int g4/0/0[R1-GigabitEthernet4/0/0]mpls
[R1-GigabitEthernet4/0/0]mpls ldp
[R1-GigabitEthernet4/0/0]int g0/0/1[R1-GigabitEthernet0/0/1]mpls
[R1-GigabitEthernet0/0/1]mpls ldp
[R1-GigabitEthernet0/0/1]int g0/0/2[R1-GigabitEthernet0/0/2]mpls
[R1-GigabitEthernet0/0/2]mpls ldp
[R1-GigabitEthernet0/0/2]qui
[R1]------------------------------------R9:[R9]mpls lsr-id 9.9.9.9[R9]mpls
[R9-mpls]mpls ldp
[R9-mpls-ldp]qui
[R9]int g0/0/0[R9-GigabitEthernet0/0/0]mpls
[R9-GigabitEthernet0/0/0]mpls ldp
[R9-GigabitEthernet0/0/0]int g0/0/2[R9-GigabitEthernet0/0/2]mpls
[R9-GigabitEthernet0/0/2]mpls ldp
[R9-GigabitEthernet0/0/2]int g0/0/1[R9-GigabitEthernet0/0/1]mpls
[R9-GigabitEthernet0/0/1]mpls ldp
[R9-GigabitEthernet0/0/1]int g6/0/0[R9-GigabitEthernet6/0/0]mpls
[R9-GigabitEthernet6/0/0]mpls ldp
[R9-GigabitEthernet6/0/0]qui
[R9]------------------------------------R3:[R3]mpls lsr-id 3.3.3.3[R3]mpls
[R3-mpls]mpls ldp
[R3-mpls-ldp]qui
[R3]int g0/0/1[R3-GigabitEthernet0/0/1]mpls
[R3-GigabitEthernet0/0/1]mpls ldp
[R3-GigabitEthernet0/0/1]int g0/0/2[R3-GigabitEthernet0/0/2]mpls
[R3-GigabitEthernet0/0/2]mpls ldp
[R3-GigabitEthernet0/0/2]int g0/0/0[R3-GigabitEthernet0/0/0]mpls
[R3-GigabitEthernet0/0/0]mpls ldp
[R3-GigabitEthernet0/0/0]qui
[R3]------------------------------------R4:[R4]mpls lsr-id 4.4.4.4[R4]mpls
[R4-mpls]mpls ldp
[R4-mpls-ldp]qui
[R4]int g0/0/1[R4-GigabitEthernet0/0/1]mpls
[R4-GigabitEthernet0/0/1]mpls ldp
[R4-GigabitEthernet0/0/1]int g0/0/2[R4-GigabitEthernet0/0/2]mpls
[R4-GigabitEthernet0/0/2]mpls ldp
[R4-GigabitEthernet0/0/2]int g0/0/0[R4-GigabitEthernet0/0/0]mpls
[R4-GigabitEthernet0/0/0]mpls ldp
[R4-GigabitEthernet0/0/0]qui
[R4]

12、BGP

R2:[R2]bgp 100[R2-bgp]peer 9.9.9.9 as 100[R2-bgp]peer 9.9.9.9 con loo0
[R2-bgp]ipv4-family vpnv4
[R2-bgp-af-vpnv4]peer 9.9.9.9 enable
[R2-bgp-af-vpnv4]qui
[R2-bgp]dis this
#
bgp 100
 peer 9.9.9.9 as-number 100 
 peer 9.9.9.9 connect-interfaceLoopBack0
 #
 ipv4-family unicast
  undo synchronization
  peer 9.9.9.9 enable
 # 
 ipv4-family vpnv4
  policy vpn-target
  peer 9.9.9.9 enable
#
[R2-bgp]qui
[R2]------------------------------------R1:[R1]bgp 100[R1-bgp]peer 9.9.9.9 as 100[R1-bgp]peer 9.9.9.9 con loo0
[R1-bgp]ipv4-family vpnv4
[R1-bgp-af-vpnv4]peer 9.9.9.9 enable
[R1-bgp-af-vpnv4]qui
[R1-bgp]qui
[R1]------------------------------------R3:[R3]bgp 100[R3-bgp]peer 9.9.9.9 as 100[R3-bgp]peer 9.9.9.9 con loo0
[R3-bgp]ipv4-family vpnv4
[R3-bgp-af-vpnv4]peer 9.9.9.9 enable
[R3-bgp-af-vpnv4]qui
[R3-bgp]qui
[R3]------------------------------------R4:[R4]bgp 100[R4-bgp]peer 9.9.9.9 as 100[R4-bgp]peer 9.9.9.9 con loo0
[R4-bgp]ipv4-family vpnv4
[R4-bgp-af-vpnv4]peer 9.9.9.9 enable
[R4-bgp-af-vpnv4]qui
[R4-bgp]qui
[R4]------------------------------------R9:[R9]bgp 100[R9-bgp]peer 2.2.2.2 as 100[R9-bgp]peer 2.2.2.2 con loo0
[R9-bgp]peer 3.3.3.3 as 100[R9-bgp]peer 3.3.3.3 con loo0
[R9-bgp]peer 1.1.1.1 as 100[R9-bgp]peer 1.1.1.1 con loo0
[R9-bgp]peer 4.4.4.4 as 100[R9-bgp]peer 4.4.4.4 con loo0
[R9-bgp]ipv4-family vpnv4
[R9-bgp-af-vpnv4]undo policy vpn-target
[R9-bgp-af-vpnv4]peer 2.2.2.2 enable
[R9-bgp-af-vpnv4]peer 2.2.2.2 reflect-client
[R9-bgp-af-vpnv4]peer 3.3.3.3 enable
[R9-bgp-af-vpnv4]peer 3.3.3.3 reflect-client
[R9-bgp-af-vpnv4]peer 1.1.1.1 enable
[R9-bgp-af-vpnv4]peer 1.1.1.1 reflect-client
[R9-bgp-af-vpnv4]peer 4.4.4.4 enable
[R9-bgp-af-vpnv4]peer 4.4.4.4 reflect-client
[R9-bgp-af-vpnv4]qui
[R9-bgp]dis this
#
bgp 100
 peer 1.1.1.1 as-number 100 
 peer 1.1.1.1 connect-interfaceLoopBack0
 peer 2.2.2.2 as-number 100 
 peer 2.2.2.2 connect-interfaceLoopBack0
 peer 3.3.3.3 as-number 100 
 peer 3.3.3.3 connect-interfaceLoopBack0
 peer 4.4.4.4 as-number 100 
 peer 4.4.4.4 connect-interfaceLoopBack0
 #
 ipv4-family unicast
  undo synchronization
  peer 1.1.1.1 enable
  peer 2.2.2.2 enable
  peer 3.3.3.3 enable
  peer 4.4.4.4 enable
 # 
 ipv4-family vpnv4
  undo policy vpn-target
  peer 1.1.1.1 enable
  peer 1.1.1.1 reflect-client
  peer 2.2.2.2 enable
  peer 2.2.2.2 reflect-client
  peer 3.3.3.3 enable
  peer 3.3.3.3 reflect-client
  peer 4.4.4.4 enable
  peer 4.4.4.4 reflect-client
#
[R9-bgp]qui
[R9]

13、VPN

R2:[R2]ip vpn-instance vpna
[R2-vpn-instance-vpna]route-distinguisher 1:1[R2-vpn-instance-vpna-af-ipv4]vpn-target 1:1[R2-vpn-instance-vpna-af-ipv4]qui
[R2-vpn-instance-vpna]qui
[R2]int g0/0/0[R2-GigabitEthernet0/0/0]ip binding vpn-instance vpna
[R2-GigabitEthernet0/0/0]ip add 10.1.28.224[R2-GigabitEthernet0/0/0]dis this
#
interfaceGigabitEthernet0/0/0
 ip binding vpn-instance vpna
 ip address 10.1.28.2255.255.255.0 
#
[R2-GigabitEthernet0/0/0]qui
[R2]bgp 100[R2-bgp]ipv4-family vpn-instance vpna
[R2-bgp-vpna]peer 10.1.28.8 as 65530[R2-bgp]qui
[R2]dis bgp vpnv4 all peer
[R2]dis bgp vpnv4 all routing-table
    
    R3:[R3]ip vpn-instance vpnc
[R3-vpn-instance-vpnc]route-distinguisher 2:1[R3-vpn-instance-vpnc-af-ipv4]vpn-target 1:1[R3-vpn-instance-vpnc-af-ipv4]qui
[R3-vpn-instance-vpnc]qui
[R3]int g4/0/0[R3-GigabitEthernet4/0/0]ip binding vpn-instance vpnc
[R3-GigabitEthernet4/0/0]ip add 192.168.37.324[R3-GigabitEthernet4/0/0]qui
[R3]ip route-static vpn-instance vpnc 192.168.1.024192.168.37.7[R3]dis ip routing-table vpn-instance vpnc
    
    R1:[R1]ip vpn-instance vpn
[R1-vpn-instance-vpn]route-distinguisher 3:1[R1-vpn-instance-vpn-af-ipv4]vpn-target 1:1[R1-vpn-instance-vpn-af-ipv4]qui
[R1-vpn-instance-vpn]qui
[R1]int g0/0/0[R1-GigabitEthernet0/0/0]ip binding vpn-instance vpn
[R1-GigabitEthernet0/0/0]ip add 10.1.51.124[R1-GigabitEthernet0/0/0]qui
[R1]ospf 1 vpn-instance vpn
[R1-ospf-1]area 0[R1-ospf-1-area-0.0.0.0]net 10.1.51.00.0.0.255[R1-ospf-1-area-0.0.0.0]qui
[R1-ospf-1]qui
[R1]dis ip routing-table vpn-instance vpn
    
   R4:[R4]ip vpn-instance vpnb
[R4-vpn-instance-vpnb]route-distinguisher 4:1[R4-vpn-instance-vpnb-af-ipv4]vpn-target 1:1[R4-vpn-instance-vpnb-af-ipv4]qui
[R4-vpn-instance-vpnb]qui
[R4]int g4/0/0[R4-GigabitEthernet4/0/0]ip binding vpn-instance vpnb
[R4-GigabitEthernet4/0/0]ip add 172.16.45.424[R4-GigabitEthernet4/0/0]qui
[R4]ospf 1 vpn-instance vpnb
[R4-ospf-1]area 0[R4-ospf-1-area-0.0.0.0]net 172.16.45.00.0.0.255[R4-ospf-1-area-0.0.0.0]qui
[R4-ospf-1]qui
[R4]dis ip routing-table vpn-instance vpnb

14、路由引入

R1:[R1]bgp 100[R1-bgp]ipv4-family vpn-instance vpn
[R1-bgp-vpn]import-route ospf 1[R1-bgp-vpn]qui
[R1-bgp]qui
[R1]ospf
[R1-ospf-1]import-route bgp
[R1-ospf-1]qui
[R1]R4:[R4]bgp 100[R4-bgp]ipv4-family vpn-instance vpnb
[R4-bgp-vpnb]import-route ospf 1[R4-bgp-vpnb]qui
[R4-bgp]qui
[R4]ospf
[R4-ospf-1]import-route bgp
[R4-ospf-1]dis this
#
ospf 1 vpn-instance vpnb
 import-route bgp
 area 0.0.0.0 
  network 172.16.45.00.0.0.255 
#
[R4-ospf-1]qui
[R4]R3:[R3]bgp 100[R3-bgp]ipv4-family vpn-instance vpnc
[R3-bgp-vpnc]import-route static[R3-bgp-vpnc]qui
[R3-bgp]qui
[R3]dis ip routing-table vpn-instance vpnc

本文转载自: https://blog.csdn.net/m0_46179473/article/details/128673224
版权归原作者 小猿网 所有, 如有侵权,请联系我们删除。

“基于MPLS-V**多分部互访的ensp企业网络规划与设计_ensp综合实验”的评论:

还没有评论