赞
踩
可根据以下所提供的设计与实现步骤过程一步一步自行实现(每一条命令都是关键的命令);但是如果有需要的也可以根据以下地址进行下载完整的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中大型校园/企业网络规划与设计_综合大作业 如下图所示(但是并不在该篇文章中做详细介绍和说明,如查看可点击连接自行查看阅读):
命令是全的,不过对于很多人来说可能配置不全,自己单独完成不了这个实验,所以这边建议是以下的命令结合配置的视频来完成相应的实验,可能命令嘛就是起到一个辅助的用作在该实验中,花不了你多少米,因为这个基于MPLS VPN的综合实验可能很多朋友都会觉得比较的不好弄
SW3: <Huawei>sys [Huawei]un in en [Huawei]sysname SW3 [SW3]vlan batch 10 20 [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 10 20 [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 10 20 11 [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 10 20 22 [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
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]
SW1: [SW1]int vlan 10 [SW1-Vlanif10]ip add 10.1.10.253 24 [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.253 24 [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.1 24 [SW1-Vlanif11]qui [SW1] ------------------------------------ SW2: [SW2]int vlan 10 [SW2-Vlanif10]ip add 10.1.10.252 24 [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.252 24 [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.2 24 [SW2-Vlanif22]qui [SW2]dis vrrp br
SW2: [SW2]ospf [SW2-ospf-1]area 0 [SW2-ospf-1-area-0.0.0.0]net 10.1.25.0 0.0.0.255 [SW2-ospf-1-area-0.0.0.0]net 10.1.10.0 0.0.0.255 [SW2-ospf-1-area-0.0.0.0]net 10.1.20.0 0.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.0 0.0.0.255 [SW1-ospf-1-area-0.0.0.0]net 10.1.10.0 0.0.0.255 [SW1-ospf-1-area-0.0.0.0]net 10.1.20.0 0.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]
R5: <Huawei>sys [Huawei]un in en [Huawei]sysname R5 [R5]int g0/0/2 [R5-GigabitEthernet0/0/2]ip add 10.1.51.5 24 [R5-GigabitEthernet0/0/2]int g0/0/0 [R5-GigabitEthernet0/0/0]ip add 10.1.15.5 24 [R5-GigabitEthernet0/0/0]int g0/0/1 [R5-GigabitEthernet0/0/1]ip add 10.1.25.5 24 [R5-GigabitEthernet0/0/1]qui [R5]ospf [R5-ospf-1]area 0 [R5-ospf-1-area-0.0.0.0]net 10.1.15.0 0.0.0.255 [R5-ospf-1-area-0.0.0.0]net 10.1.25.0 0.0.0.255 [R5-ospf-1-area-0.0.0.0]net 10.1.51.0 0.0.0.255 [R5-ospf-1-area-0.0.0.0]qui [R5-ospf-1]qui [R5]dis ospf peer br
SW6: <Huawei>sys [Huawei]un in en [Huawei]sysname SW6 [SW6]vlan batch 111 112 [SW6]port-group g g0/0/1 to g0/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 111 112 [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.1 24 [AC-Vlanif111]dhcp select interface [AC-Vlanif111]qui [AC]int vlan 112 [AC-Vlanif112]ip add 10.1.112.1 24 [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
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.254 255.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.8 24 [R8-GigabitEthernet0/0/0]qui [R8]bgp 65530 [R8-bgp]peer 10.1.28.2 as 100 [R8-bgp]net 10.1.112.0 24 [R8-bgp]dis this # bgp 65530 peer 10.1.28.2 as-number 100 # ipv4-family unicast undo synchronization network 10.1.112.0 255.255.255.0 peer 10.1.28.2 enable # [R8-bgp]qui [R8]
R6: <Huawei>sys [Huawei]un in en [Huawei]sysname R6 [R6]int g0/0/0 [R6-GigabitEthernet0/0/0]ip add 172.16.45.5 24 [R6-GigabitEthernet0/0/0]qui [R6]dhcp enable [R6]int g0/0/1 [R6-GigabitEthernet0/0/1]ip add 172.16.1.254 24 [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.0 0.0.0.25 [R6-ospf-1-area-0.0.0.0]net 172.16.45.0 0.0.0.255 [R6-ospf-1-area-0.0.0.0]qui [R6-ospf-1]qui [R6]qui <R6>save
<Huawei>sys
[Huawei]un in en
[Huawei]sysname R7
[R7]int g0/0/0
[R7-GigabitEthernet0/0/0]ip add 192.168.1.254 24
[R7-GigabitEthernet0/0/0]int g0/0/1
[R7-GigabitEthernet0/0/1]ip add 192.168.37.7 24
[R7-GigabitEthernet0/0/1]qui
[R7]ip route-static 0.0.0.0 0 192.168.37.3
[R7]qui
<R7>save
R2: <Huawei>sys [Huawei]un in en [Huawei]sysname R2 [R2]int g4/0/0 [R2-GigabitEthernet4/0/0]ip add 23.1.1.2 24 [R2-GigabitEthernet4/0/0]int g0/0/1 [R2-GigabitEthernet0/0/1]ip add 29.1.1.2 24 [R2-GigabitEthernet0/0/1]int g0/0/2 [R2-GigabitEthernet0/0/2]ip add 12.1.1.2 24 [R2-GigabitEthernet0/0/2]qui [R2]int loo0 [R2-LoopBack0]ip add 2.2.2.2 32 [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.2 0.0.0.0 [R2-ospf-2-area-0.0.0.0]net 29.1.1.0 0.0.0.255 [R2-ospf-2-area-0.0.0.0]net 12.1.1.0 0.0.0.255 [R2-ospf-2-area-0.0.0.0]net 23.1.1.0 0.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.1 24 [R1-GigabitEthernet0/0/1]int g0/0/2 [R1-GigabitEthernet0/0/2]ip add 19.1.1.1 24 [R1-GigabitEthernet0/0/2]int g4/0/0 [R1-GigabitEthernet4/0/0]ip add 14.1.1.1 24 [R1-GigabitEthernet4/0/0]qui [R1]int loo0 [R1-LoopBack0]ip add 1.1.1.1 32 [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.1 0.0.0.0 [R1-ospf-2-area-0.0.0.0]net 12.1.1.0 0.0.0.255 [R1-ospf-2-area-0.0.0.0]net 19.1.1.0 0.0.0.255 [R1-ospf-2-area-0.0.0.0]net 14.1.1.0 0.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.9 24 [R9-GigabitEthernet0/0/0]int g0/0/1 [R9-GigabitEthernet0/0/1]ip add 19.1.1.9 24 [R9-GigabitEthernet0/0/1]int g0/0/2 [R9-GigabitEthernet0/0/2]ip add 39.1.1.9 24 [R9-GigabitEthernet0/0/2]int g6/0/0 [R9-GigabitEthernet6/0/0]ip add 49.1.1.9 24 [R9-GigabitEthernet6/0/0]qui [R9]int loo0 [R9-LoopBack0]ip add 9.9.9.9 32 [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.9 0.0.0.0 [R9-ospf-2-area-0.0.0.0]net 19.1.1.0 0.0.0.255 [R9-ospf-2-area-0.0.0.0]net 29.1.1.0 0.0.0.255 [R9-ospf-2-area-0.0.0.0]net 39.1.1.0 0.0.0.255 [R9-ospf-2-area-0.0.0.0]net 49.1.1.0 0.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.3 24 [R3-GigabitEthernet0/0/1]int g0/0/0 [R3-GigabitEthernet0/0/0]ip add 39.1.1.3 24 [R3-GigabitEthernet0/0/0]int g0/0/2 [R3-GigabitEthernet0/0/2]ip add 34.1.1.3 24 [R3-GigabitEthernet0/0/2]qui [R3]int loo0 [R3-LoopBack0]ip add 3.3.3.3 32 [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.3 0.0.0.0 [R3-ospf-2-area-0.0.0.0]net 23.1.1.0 0.0.0.255 [R3-ospf-2-area-0.0.0.0]net 34.1.1.0 0.0.0.255 [R3-ospf-2-area-0.0.0.0]net 39.1.1.0 0.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.4 24 [R4-GigabitEthernet0/0/1]int g0/0/2 [R4-GigabitEthernet0/0/2]ip add 49.1.1.4 24 [R4-GigabitEthernet0/0/2]int g0/0/0 [R4-GigabitEthernet0/0/0]ip add 14.1.1.4 24 [R4-GigabitEthernet0/0/0]qui [R4]int loo0 [R4-LoopBack0]ip add 4.4.4.4 32 [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.4 0.0.0.0 [R4-ospf-2-area-0.0.0.0]net 14.1.1.0 0.0.0.255 [R4-ospf-2-area-0.0.0.0]net 49.1.1.0 0.0.0.255 [R4-ospf-2-area-0.0.0.0]net 34.1.1.0 0.0.0.255 [R4-ospf-2-area-0.0.0.0]qui [R4-ospf-2]qui [R4]
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]
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-interface LoopBack0 # 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-interface LoopBack0 peer 2.2.2.2 as-number 100 peer 2.2.2.2 connect-interface LoopBack0 peer 3.3.3.3 as-number 100 peer 3.3.3.3 connect-interface LoopBack0 peer 4.4.4.4 as-number 100 peer 4.4.4.4 connect-interface LoopBack0 # 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]
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.2 24 [R2-GigabitEthernet0/0/0]dis this # interface GigabitEthernet0/0/0 ip binding vpn-instance vpna ip address 10.1.28.2 255.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.3 24 [R3-GigabitEthernet4/0/0]qui [R3]ip route-static vpn-instance vpnc 192.168.1.0 24 192.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.1 24 [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.0 0.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.4 24 [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.0 0.0.0.255 [R4-ospf-1-area-0.0.0.0]qui [R4-ospf-1]qui [R4]dis ip routing-table vpn-instance vpnb
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.0 0.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
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。