最新mplsvpn配置案例.docx

上传人:b****5 文档编号:3135579 上传时间:2022-11-17 格式:DOCX 页数:11 大小:366.02KB
下载 相关 举报
最新mplsvpn配置案例.docx_第1页
第1页 / 共11页
最新mplsvpn配置案例.docx_第2页
第2页 / 共11页
最新mplsvpn配置案例.docx_第3页
第3页 / 共11页
最新mplsvpn配置案例.docx_第4页
第4页 / 共11页
最新mplsvpn配置案例.docx_第5页
第5页 / 共11页
点击查看更多>>
下载资源
资源描述

最新mplsvpn配置案例.docx

《最新mplsvpn配置案例.docx》由会员分享,可在线阅读,更多相关《最新mplsvpn配置案例.docx(11页珍藏版)》请在冰豆网上搜索。

最新mplsvpn配置案例.docx

最新mplsvpn配置案例

mpls-vpn配置案例

Mplsvpn配置实例

一.建立MPLS域〔配置PE与P之间的IGP和MPLS〕

1.分别在R2.R3.R4.R5开启OSPF协议分配到area0,进入各接口开启mplsip,保证R2的loopback0地址与R5的loopback0地址可以互访。

R2配置

Router#conft

Router(config)#routerospf1

Router(config-router)#router-id2.2.2.2

Router(config-router)#network2.2.2.20.0.0.0area0

Router(config-router)#network10.1.23.00.0.0.255area0

Router(config-router)#mplsldpautoconfig

R3配置

Router#conft

Router(config)#routerospf1

Router(config-router)#router-id3.3.3.3

Router(config-router)#network0.0.0.00.0.0.0area0

Router(config-router)#mplsldpautoconfig

R4配置

Router#conft

Router(config)#routerospf1

Router(config-router)#router-id4.4.4.4

Router(config-router)#network0.0.0.00.0.0.0area0

Router(config-router)#mplsldpautoconfig

R5配置

Router#conft

Router(config)#routerospf1

Router(config-router)#router-id5.5.5.5

Router(config-router)#network5.5.5.50.0.0.0area0

Router(config-router)#network10.1.45.00.0.0.255area0

Router(config-router)#mplsldpautoconfig

R2配置

R2(config)#routerrip

R2(config-router)#version2

R2(config-router)#noauto-summary

R2(config-router)#address-familyipv4vrfA

R2(config-router-af)#network192.168.1.0

配置完后确保R2可以学到到R1的路由

配置R5与R6要互相学习路由

R6配置

R5配置

R5(config)#routerrip

R5(config-router)#version2

R5(config-router)#noauto-summary

R5(config-router)#address-familyipv4vrfA

R5(config-router-af)#network192.168.2.0

配置完后确保R5可以学到R6的路由信息

2.接入点使用静态路由接入

R2配置

R2(config)#ipvrfA//定义VRF〔接入用户名字〕

R2(config-vrf)#rd1:

200//定义RD(区分客户路由,不同客户分配不同RD)

R2(config-vrf)#route-target1:

200//定义RT(对接VPN)

R2(config)#interfacef0/1//进入PE链接CE接口

R2(config-if)#ipvrfforwardingB//把接口放入VRF虚拟环境

R5配置

R5(config)#ipvrfA//定义VRF〔接入用户名字〕

R5(config-vrf)#rd1:

200//定义RD(区分客户路由,不同客户分配不同RD)

R5(config-vrf)#route-target1:

200//定义RT(对接VPN)

R5(config)#interfacef0/1//进入PE链接CE接口

R5(config-if)#ipvrfforwardingB//把接口放入VRF虚拟环境

R2静态路由配置

Router(config)#iproutevrfB7.7.7.7255.255.255.255192.168.3.7

R5静态路由配置

Router(config)#iproutevrfB8.8.8.8255.255.255.255192.168.4.8

3.接入点使用OSPF路由协议接入〔R7和R8清空静态路由〕

R2配置

R2(config)#ipvrfC//定义VRF〔接入用户名字〕

R2(config-vrf)#rd1:

300//定义RD(区分客户路由,不同客户分配不同RD)

R2(config-vrf)#route-target1:

300//定义RT(对接VPN)

R2(config)#interfacef0/1//进入PE链接CE接口

R2(config-if)#ipvrfforwardingC//把接口放入VRF虚拟环境

R5配置

R5(config)#ipvrfC//定义VRF〔接入用户名字〕

R5(config-vrf)#rd1:

300//定义RD(区分客户路由,不同客户分配不同RD)

R5(config-vrf)#route-target1:

300//定义RT(对接VPN)

R5(config)#interfacef0/1//进入PE链接CE接口

R5(config-if)#ipvrfforwardingC//把接口放入VRF虚拟环境

R7配置OSPF路由协议

Router(config)#routerospf2

Router(config-router)#router-id7.7.7.7

Router(config-router)#network0.0.0.00.0.0.0area0

在R2上输入,可以成功学到R7的路由

Router#showiproutevrfC

RoutingTable:

C

Codes:

C-connected,S-static,R-RIP,M-mobile,B-BGP

D-EIGRP,EX-EIGRPexternal,O-OSPF,IA-OSPFinterarea

N1-OSPFNSSAexternaltype1,N2-OSPFNSSAexternaltype2

E1-OSPFexternaltype1,E2-OSPFexternaltype2

i-IS-IS,su-IS-ISsummary,L1-IS-ISlevel-1,L2-IS-ISlevel-2

ia-IS-ISinterarea,*-candidatedefault,U-per-userstaticroute

o-ODR,P-periodicdownloadedstaticroute

Gatewayoflastresortisnotset

7.0.0.0/32issubnetted,1subnets

O7.7.7.7[110/2]via192.168.3.7,00:

01:

15,FastEthernet0/2

C192.168.3.0/24isdirectlyconnected,FastEthernet0/2

R8配置OSPF路由协议

Router(config)#routerospf2

Router(config-router)#router-id8.8.8.8

Router(config-router)#network0.0.0.00.0.0.0area0

在R5上输入,可以成功学到R8的路由

Router#showiproutevrfC

RoutingTable:

C

Codes:

C-connected,S-static,R-RIP,M-mobile,B-BGP

D-EIGRP,EX-EIGRPexternal,O-OSPF,IA-OSPFinterarea

N1-OSPFNSSAexternaltype1,N2-OSPFNSSAexternaltype2

E1-OSPFexternaltype1,E2-OSPFexternaltype2

i-IS-IS,su-IS-ISsummary,L1-IS-ISlevel-1,L2-IS-ISlevel-2

ia-IS-ISinterarea,*-candidatedefault,U-per-userstaticroute

o-ODR,P-periodicdownloadedstaticroute

Gatewayoflastresortisnotset

8.0.0.0/32issubnetted,1subnets

O8.8.8.8[110/2]via192.168.4.8,00:

03:

34,FastEthernet0/2

C192.168.4.0/24isdirectlyconnected,FastEthernet0/2

2配置PE与PE之间的MP-BGP(R2和R5要互相学习路由)

R2配置

R2(config)#routerbgp1

R2(config-router)#nosynchronization

R2(config-router)#noauto-summary

R2(config-router)#bgprouter-id2.2.2.2

R2(config-router)#neighbor5.5.5.5remote-as1

R2(config-router)#neighbor5.5.5.5update-sourceloopback0

R2(config-router)#address-familyvpnv4

R2(config-router-af)#neighbor5.5.5.5activate

R2(config-router-af)#neighbor5.5.5.5send-community

R5配置

R5(config)#routerbgp1

R5(config-router)#nosynchronization

R5(config-router)#noauto-summary

R5(config-router)#bgprouter-id5.5.5.5

R5(config-router)#neighbor2.2.2.2remote-as1

R5(config-router)#neighbor2.2.2.2update-sourceloopback0

R5(confi

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 法律文书 > 调解书

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1