mpls-vpn配置案例.docx

上传人:scccc 文档编号:14175236 上传时间:2022-02-03 格式:DOCX 页数:10 大小:108.26KB
返回 下载 相关 举报
mpls-vpn配置案例.docx_第1页
第1页 / 共10页
mpls-vpn配置案例.docx_第2页
第2页 / 共10页
mpls-vpn配置案例.docx_第3页
第3页 / 共10页
mpls-vpn配置案例.docx_第4页
第4页 / 共10页
mpls-vpn配置案例.docx_第5页
第5页 / 共10页
点击查看更多>>
资源描述

《mpls-vpn配置案例.docx》由会员分享,可在线阅读,更多相关《mpls-vpn配置案例.docx(10页珍藏版)》请在三一文库上搜索。

1、Mpls vpn 配置实例cuftomi Acustcnn AcustomJWRF B RD 1:200 RT 1:200lDA.xyO/24 BGP ASI-R2 1W3P RSIP VRF A RD 1:100RT 14 gIP VRF A RD 1:100 RT 1:100:1M.3W24 mtic ,二建立MPLS域配置PE与P之间的IGP和 MPLS)1.分别在R2.R3.R4.RSF启OSP刖议分配到area 0,进入各接 口开启 mpls ip,保证 R2 的 loopback 0 地址与 R5 的 loopback0地址可以互访.R2配置Router#conf tRouter(

2、config)#router ospf 1Router(config-router)#router-id 2.2.2.2Router(config-router)#network 2.2.2.2 0.0.0.0 area 0Router(config-router)#network 10.1.23.0 0.0.0.255 area 0Router(config-router)#mpls ldp autoconfigR3配置Router#conf tRouter(config)#router ospf 1Router(config-router)#router-id 3.3.3.3Router(

3、config-router)#network 0.0.0.0 0.0.0.0 area 0Router(config-router)#mpls ldp autoconfigR4配置Router#conf tRouter(config)#router ospf 1Router(config-router)#router-id 4.4.4.4Router(config-router)#network 0.0.0.0 0.0.0.0 area 0Router(config-router)#mpls ldp autoconfigR5配置Router#conf tRouter(config)#route

4、r ospf 1Router(config-router)#router-id 5.5.5.5Router(config-router)#network 5.5.5.5 0.0.0.0 area 0Router(config-router)#network 10.1.45.0 0.0.0.255 area 0Router(config-router)#mpls ldp autoconfig1 .MP3根本部目:mpls label range 200 299 定立标第迫用 mpls label protocol ldp 定义标釜协议 mpls ldp router*id Loopbackl /

5、定义LDP RID int sO/1接入接口Epls ip开启MPLSZ ,常用命令show mpls ldp neighbor show mpls ldp bindings 肯有UB(标至数据库?show mpls forwarding-table 亘者LFIBy标至专专发表? clear mpls ldp neighbor * /刷新L0户邻居Show ip cef detailN.VS 点对jSVPZ前者:运营商艮提供物理链路,不参与客户路由服君;后者:运营西参与客户的路由选举过程.保证客户内网联通;MPLS VPZ基于Peer to peer 的YPN 门Tag:1. /RF-面向又寸

6、绘:解决用户平安2. RD-面向对豫:解决路由冲剂3. RT-面向对象:VPN.MPLS VPN 部署1配置PE与CE之间的路由协议1 .接入点使用rip v2路由协议接入R2配置R2(config)#ip vrf A/定义VRF (接入用户名字)R2(config-vrf)#rd 1:100/定义RD(区分客户路由,不同客户分配不同 RD)R2(config-vrf)#route-target 1:100/ 定义 RT(对接 VPN)1p vrf NameOeTaulr RDInterTacesAX:1QO上U.FR2(config)#interface f0/1/ 进入 PE 链接 CE

7、接口R2(config-if)#ip vrf forwarding A把接口放入 VRF 虚拟环境Routershow ip route vrt ARouti ng Tabie; a codes: c - connected, 5 - static, R -史工p, m - mobile, b - bgp d - EIGRP, EX - E:GRP external. o - OSPP, IA - OSPF inter area N1 - OSPF nssa ext ernal type 1, n2 - 05PF nssa external type 2 El - OSPF flxternaI

8、 type 2 - OSPF external type 2 i - 15-15, au - 15-is suinmary, Ll - 15-15 1 evel-1, L2 - rs-is level-2 ia - is-is inter area, - candi date default, u - per -user stati c route n - ODRH p - pprindic fiawnloac|p best, i - internal, r RIB-failure, S StaleMetric LocPrf Weight Path532768?032768 ?Origin c

9、odes: i - IGF, e - EGP ? - incompleteNetworkNext HopRoute Distinguisher: 1:100 (default for vrf A)* 1.1.1.1/32192.168.1.1* 192.168.1.00.0.0.0R5配置(bgp导入rip)Router(config)#router ripRouter(config-router)#address-family ipv4 vrf ARouter(config-router-af)#redistribute bgp 1 metric transparent做完后R6可以学到R1

10、的路由Router#show ip routeCodes: C - connected, S - static, R - RIPM - mobile, B - BGPD - EIGRPEX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2i - IS-IS, su - IS-IS summary, L1 - IS-IS

11、level-1, L2 - IS-IS level-2 ia - IS-IS inter area, * - candidate default, U - per-user static route o - ODR, P - periodic downloaded static routeGateway of last resort is not set1.0.0.0/32 is subnetted, 1 subnets1.1.1,1 120/6 via 192.168.2.5, 00:00:01, FastEthernet0/16.0.0.0/32 is subnetted, 1 subne

12、ts6.6.6.6 is directly connected, Loopback.R 192.168.1.0/24 120/1 via 192.168.2.5, 00:00:01, FastEthernet0/1C 192.168.2.0/24 is directly connected, FastEthernet0/1R5配置Router(config)#router bgp 1Router(config-router)#address-family ipv4 vrf A Router(config-router-af)#redistribute rip metric 5R2配置Route

13、r(config)#router ripRouter(config-router)#address-family ipv4 vrf ARouter(config-router-af)#redistribute bgp 1 metric transparent完成后R1可以学习到R6的路由Router#show ip routeCodes: C - connected, S - static, R - RIPM - mobile, B - BGPD - EIGRPEX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA e

14、xternal type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2 ia - IS-IS inter area, * - candidate default, U - per-user static route o - ODR, P - periodic downloaded static routeGateway of las

15、t resort is not set1.0.0.0/32 is subnetted, 1 subnetsC 1.1.1.1 is directly connected, Loopback06.0.0.0/32 is subnetted, 1 subnetsR 6.6.6.6 120/6 via 192.168.1.2, 00:00:14, FastEthernet0/1C 192.168.1.0/24 is directly connected, FastEthernet0/1R 192.168.2.0/24 120/1 via 192.168.1.2, 00:00:14, FastEthe

16、rnet0/12 .接入点使用静态路由接入R2配置Router(config)#router bgp 1Router(config-router)#address-family ipv4 vrf BRouter(config-router-af)#redistribute static完后可学到R7路由Router#show ip bgp vpnv4 allBGP table version is 13, local router ID is 2.2.2.2Status codes: s suppressed, d damped, h history, * valid, best, i - i

17、nternal, r RIB-failure, S StaleOrigin codes: i - IGP, e - EGP ? - incompleteNetworkNext HopMetric LocPrf Weight PathRoute Distinguisher: 1:100 (default for vrf A)* 1.1.1.1/32192.168.1.1532768 ?*i6.6.6.6/325.5.5.551000 ?* 192.168.1.00.0.0.0032768 ?*i192.168.2.05.5.5.501000 ?Route Distinguisher: 1:200

18、 (default for vrf B)* 7.7.7.7/32192.168.3.7032768 ?R5配置Router(config)#router bgp 1Router(config-router)#address-family ipv4 vrf BRouter(config-router-af)#redistribute static完后可学到R8路由Router#show ip bgp vpnv4 allBGP table version is 13, local router ID is 2.2.2.2Status codes: s suppressed, d damped, h

19、 history, * valid, best, i - internal, r RIB-failure, S StaleOrigin codes: i - IGP, e - EGP, ? - incompleteNetworkNext HopMetric LocPrf Weight PathRoute Distinguisher: 1:100 (default for vrf A)* 1.1.1.1/32192.168.1.1532768 ?*i6.6.6.6/325.5.5.551000 ?* 192.168.1.00.0.0.0032768 ?*i192.168.2.05.5.5.501

20、000 ?Route Distinguisher: 1:200 (default for vrf B)* 7.7.7.7/32192.168.3.7032768 ?*i8.8.8.8/325.5.5.501000 ?3 .接入点使用OSPF路由协议接入(R7和R8清空静态路由)R2配置Router(config)#router bgp 1Router(config-router)#address-family ipv4 vrf CRouter(config-router-af)#redistribute ospf 2 match internal externalRouter(config)#

21、router ospf 2 vrf CRouter(config-router)#redistribute bgp 1 subnetsR5配置Router(config)#router bgp 1Router(config-router)#address-family ipv4 vrf CRouter(config-router-af)#redistribute ospf 2 match internal externalRouter(config)#router ospf 2 vrf CRouter(config-router)#redistribute bgp 1 subnets在R7上输

22、入,可看到R7成功学习到R8路由Router#show ip route ospf8.0.0.0/32 is subnetted, 1 subnetsO IA 8.8.8.8 110/3 via 192.168.3.2, 00:00:52, FastEthernet0/2O IA 192.168.4.0/24 110/2 via 192.168.3.2, 00:00:52, FastEthernet0/2在R8上输入,可看到R8成功学习到R7路由Router#show ip route ospf7.0.0.0/32 is subnetted, 1 subnetsO IA 7.7.7.7 110/3 via 192.168.4.5, 00:00:55, FastEthernet0/2O IA 192.168.3.0/24 110/2 via 192.168.4.5, 00:00:55, FastEthernet0/2

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

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


经营许可证编号:宁ICP备18001539号-1