MPLS VPN实验.doc

上传人:大米 文档编号:559620779 上传时间:2023-07-05 格式:DOC 页数:8 大小:98KB
返回 下载 相关 举报
MPLS VPN实验.doc_第1页
第1页 / 共8页
MPLS VPN实验.doc_第2页
第2页 / 共8页
MPLS VPN实验.doc_第3页
第3页 / 共8页
MPLS VPN实验.doc_第4页
第4页 / 共8页
MPLS VPN实验.doc_第5页
第5页 / 共8页
点击查看更多>>
资源描述

《MPLS VPN实验.doc》由会员分享,可在线阅读,更多相关《MPLS VPN实验.doc(8页珍藏版)》请在金锄头文库上搜索。

1、MPLS/VPN 12.1.2 MPLS VPN 连通性测试测试编号 12.1.2验证MPLS VPN连通性测试测试组:MPLS/VPN测试项目:验证MPLS VPN 连通性测试测试目的:验证MPLS vpn 连通性测试测试组网图:如图:使用mpls作为承载网;R8/R9R6/R7 使用 MPLS vpn 承载业务;测试步骤:1、 按拓扑搭建网络;2、 完成MPLS承载网的配置3、 部署mpls vpn,R4/R5建立MP-BGP邻居,创建vpn vrf实例,将相应接口加入vrf;4、 总部、分部和PE的IGP;5、 将CE的路由在PE vrf中重发布到PE MP-BGP中;6、 将PE MP

2、-BGP的路由重分发到CE IGP中7、 测试连通性预期测试结果:测试准备:路由器测试结果:步骤2:完成MPLS承载网的配置R1:Ip cefMpls ip interface Loopback0 ip address 1.1.1.1 255.255.255.255 ip ospf 1 area 0!interface Ethernet0/0 ip address 10.0.12.1 255.255.255.252 ip ospf 1 area 0 half-duplex mpls label protocol ldp mpls ip!interface Ethernet0/1 ip addr

3、ess 10.0.13.1 255.255.255.252 ip ospf 1 area 0 half-duplex mpls label protocol ldp mpls iprouter ospf 1R2:Ip cefMpls ipinterface Loopback0 ip address 2.2.2.2 255.255.255.255 ip ospf 1 area 0!interface Ethernet0/0 ip address 10.0.24.1 255.255.255.252 ip ospf 1 area 0 half-duplex mpls label protocol l

4、dp mpls ip!interface Ethernet0/1 ip address 10.0.12.2 255.255.255.252 ip ospf 1 area 0 half-duplex mpls label protocol ldp mpls ip!interface Ethernet0/2 ip address 10.0.23.1 255.255.255.252 ip ospf 1 area 0 half-duplex mpls label protocol ldp mpls iprouter ospf 1R3:Ip cefMpls ip!interface Loopback0

5、ip address 3.3.3.3 255.255.255.255 ip ospf 1 area 0!interface Ethernet0/0 ip address 10.0.23.2 255.255.255.252 ip ospf 1 area 0 half-duplex mpls label protocol ldp mpls ip!interface Ethernet0/1 ip address 10.0.13.2 255.255.255.252 ip ospf 1 area 0 half-duplex mpls label protocol ldp mpls ip!interfac

6、e Ethernet0/2 ip address 10.0.35.1 255.255.255.252 ip ospf 1 area 0 half-duplex mpls label protocol ldp mpls ip!Router ospf 1R4:IP CEFMPLS IP!interface Loopback0 no ip address ip ospf 1 area 0!interface Loopback1 ip address 4.4.4.4 255.255.255.255 ip ospf 1 area 0!interface Ethernet0/0 ip address 10

7、.0.24.2 255.255.255.252 ip ospf 1 area 0 half-duplex mpls label protocol ldp mpls ip!ROUER OSPF 1!R5:IP CEFMPLS IP!interface Loopback0 ip address 5.5.5.5 255.255.255.255 ip ospf 1 area 0!interface Ethernet0/0 ip address 10.0.35.2 255.255.255.252 ip ospf 1 area 0 half-duplex mpls label protocol ldp m

8、pls ip!ROUTER OSPF 1步骤3:部署mpls vpn,R4/R5建立MP-BGP邻居,创建vpn vrf实例,将相应接口加入vrf建立mp-bgp邻居:R4:router bgp 65000 no synchronization bgp log-neighbor-changes neighbor 5.5.5.5 remote-as 65000 neighbor 5.5.5.5 update-source Loopback1 neighbor 5.5.5.5 next-hop-self no auto-summary ! address-family vpnv4 neighbor

9、 5.5.5.5 activate neighbor 5.5.5.5 send-community extended!R5:router bgp 65000 no synchronization bgp log-neighbor-changes neighbor 4.4.4.4 remote-as 65000 neighbor 4.4.4.4 update-source Loopback0 neighbor 4.4.4.4 next-hop-self no auto-summary ! address-family vpnv4 neighbor 4.4.4.4 activate neighbo

10、r 4.4.4.4 send-community extended exit-address-family !创建vrf实例:R4:ip vrf vpn1 rd 1:2 route-target export 1:1 route-target import 1:1R5:ip vrf vpn1 rd 1:1 route-target export 1:1 route-target import 1:1将相应接口加入vrfR4:interface Ethernet0/1 ip vrf forwarding vpn1 ip address 172.16.48.1 255.255.255.0 half

11、-duplex!interface Ethernet0/2 ip vrf forwarding vpn1 ip address 172.16.49.1 255.255.255.0!R5:interface Ethernet0/1 ip vrf forwarding vpn1 ip address 172.16.56.1 255.255.255.0 half-duplex!interface Ethernet0/2 ip vrf forwarding vpn1 ip address 172.16.57.1 255.255.255.0!步骤4:完成总部、分部和PE的IGPR6:interface

12、Loopback0 ip address 6.6.6.6 255.255.255.255!interface Ethernet0/0 ip address 172.16.56.2 255.255.255.0 half-duplex!interface Ethernet0/1 no ip address shutdown half-duplex!router rip version 2 network 6.0.0.0 network 172.16.0.0!R7:interface Loopback0 ip address 7.7.7.7 255.255.255.255!interface Eth

13、ernet0/0 ip address 172.16.57.2 255.255.255.0 half-duplex!router bgp 65001 no synchronization bgp log-neighbor-changes network 7.7.7.7 mask 255.255.255.255 network 172.16.57.0 mask 255.255.255.0 neighbor 172.16.57.1 remote-as 65000 no auto-summary!R8:interface Loopback0 ip address 8.8.8.8 255.255.25

14、5.255 ip ospf 1 area 0!interface Ethernet0/0 ip address 172.16.48.2 255.255.255.0 ip ospf 1 area 0 half-duplexROUTER OSPF 1!R9:interface Loopback0 ip address 9.9.9.9 255.255.255.255!interface Ethernet0/0 ip address 172.16.49.2 255.255.255.0 half-duplexip route 0.0.0.0 0.0.0.0 172.16.49.1在R4上:router ospf 10 vrf vpn1network 172.16.48.0 0.0.0.255 area 0 network 172.16.49.0 0.0.0.255 area 0ip route vrf vpn1 8.8.8.8 255.255.255.255 172.16.48.2ip route vrf vpn1 9.9.9.9 255.255.255.255 172.16.49.2在R5上:router rip version 2 no auto-summary ! address-f

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 生活休闲 > 社会民生

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号