ImageVerifierCode 换一换
格式:DOCX , 页数:14 ,大小:71.58KB ,
资源ID:8353463      下载积分:3 金币
快捷下载
登录下载
邮箱/手机:
温馨提示:
快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。 如填写123,账号就是123,密码也是123。
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝    微信支付   
验证码:   换一换

加入VIP,免费下载
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【https://www.bdocx.com/down/8353463.html】到电脑端继续下载(重复下载不扣费)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录   QQ登录  

下载须知

1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。
2: 试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。
3: 文件的所有权益归上传用户所有。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 本站仅提供交流平台,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

版权提示 | 免责声明

本文(eNSP实验BGPMPLSVPN.docx)为本站会员(b****6)主动上传,冰豆网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知冰豆网(发送邮件至service@bdocx.com或直接QQ联系客服),我们立即给予删除!

eNSP实验BGPMPLSVPN.docx

1、eNSP实验BGPMPLSVPNBGP MPLS VPN 配置实验1网络拓扑2配置文件2.1PE1的相关配置2.1.1在MPLS骨干网上配置IGP-OSPF协议,实现骨干网PE和P的互通# Sysna PE1ospf 1 area 0.0.0.0 network 10.0.0.0 0.0.0.3 network 1.1.1.1 0.0.0.0 (igp-ospf)#interface LoopBack0ip address 1.1.1.1 255.255.255.255 ospf enable 1 area 0.0.0.0 端口使能ospf)interface Ethernet0/0/0lsp

2、-trigger 命令用来配置LSP 的触发策略。undo lsp-trigger 命令用来恢复缺省情况。缺省情况下,只有32 位掩码的主机路由能够触发LDP 建立LSP。需要注意的是: IP 地址前缀列表只对静态路由和IGP 路由有效。 LSP 的建立需要LSR 上有精确匹配的路由项,如果使用32 位掩码的Loopback 接口,则必须有精确匹配的主机路由才能触发LSP 的建立。 如果指定vpn-instance vpn-instance-name 参数,则配置指定VPN 的LSP 触发策略; 如果未指定vpn-instance vpn-instance-name 参数,则配置公网路由的LS

3、P 触发策略。 有关 IP 前缀列表的介绍请参见“三层技术-IP 路由配置指导”中的“路由策略”。【举例】# 配置所有路由项都能够触发LDP 建立LSP。 system-viewSysname mplsSysname-mpls lsp-trigger allip address 10.0.0.1 255.255.255.252 ospf enable 1 area 0.0.0.0 ( 端口使能ospf)#2.1.2在PE1上配置与PE2、P的IBGP#bgp 65115router-id 1.1.1.1peer 3.3.3.3 as-number 65115 peer 3.3.3.3 conn

4、ect-interface LoopBack0 (配置bgp)peer 2.2.2.2 as-number 65115 peer 2.2.2.2 connect-interface LoopBack0ipv4-family unicastundo synchronizationnetwork 1.1.1.1 255.255.255.255 network 10.0.0.0 255.255.255.252 mpls lsr-id 命令用来配置本节点的LSR ID,缺省情况下,未配置LSR ID。配置 LSR ID 是配置其它MPLS 命令的前提。推荐使用LSR 某个Loopback 接口的地址做

5、为LSR ID。peer 2.2.2.2 enablepeer 3.3.3.3 enable (宣告网络)#2.1.3MPLS骨干网上配置MPLS基本能力和MPLS LDP,建立LDP LSP#mpls lsr-id 1.1.1.1 mplslsp-trigger all mpls ldp (使能mpls)#interface Ethernet0/0/0mplsmpls ldp (端口使能mpls)#2.1.4在PE设备上配置VPN实例,将CE接入PEip vpn-instance VPN1 创建并进入VPN实例视图ipv4-familyroute-distinguisher 100:1 为v

6、pn-instance创建RDvpn-target 111:1 export-extcommunity 为vpn-instance创建vpn-target扩展团体vpn-target 111:1 import-extcommunity (配置VPN1)#ip vpn-instance VPN2ipv4-familyroute-distinguisher 200:1vpn-target 222:1 export-extcommunityvpn-target 222:1 import-extcommunity (配置VPN2)#interface Ethernet0/0/1ip binding v

7、pn-instance VPN1 将接口与vpn-instance关联ip address 10.0.0.13 255.255.255.252 (端口绑定VPN)interface GigabitEthernet0/0/0ip binding vpn-instance VPN2ip address 10.0.0.9 255.255.255.252 (端口绑定VPN)#2.1.5在PE与CE之间建立EBGP对等体,引入VPN路由#bgp 65115ipv4-family vpnv4 进入MBGP的VPNv4地址族视图policy vpn-targetpeer 2.2.2.2 enable 激活M

8、BGP对等体peer 3.3.3.3 enable (建立邻居关系 ) # ipv4-family vpn-instance VPN1 进入BGP的VPN地址族视图import-route directimport-route static (配置 vpn路由)ipv4-family vpn-instance VPN2 import-route directimport-route static (配置 vpn路由)#ip route-static vpn-instance VPN1 0.0.0.0 0.0.0.0 10.0.0.14 ip route-static vpn-instance

9、VPN2 0.0.0.0 0.0.0.0 10.0.0.10 ( 配置vpn静态路由:PE和CE间通过静态路由链接的配置)#2.2P的相关配置2.2.1在MPLS骨干网上配置IGP协议,实现骨干网PE和P的互通#sysna Pospf 1 area 0.0.0.0 network 10.0.0.0 0.0.0.3 network 10.0.0.4 0.0.0.3 network 2.2.2.2 0.0.0.0 (igp-ospf)#interface LoopBack0ip address 2.2.2.2 255.255.255.255 ospf enable 1 area 0.0.0.0 (

10、 端口使能ospf)interface Ethernet0/0/0ip address 10.0.0.2 255.255.255.252 ospf enable 1 area 0.0.0.0 ( 端口使能ospf)interface Ethernet0/0/1ip address 10.0.0.5 255.255.255.252 ospf enable 1 area 0.0.0.0 ( 端口使能ospf)#2.2.2P上配置与PE1、PE2的IBGP#bgp 65115router-id 2.2.2.2peer 1.1.1.1 as-number 65115 peer 1.1.1.1 conn

11、ect-interface Ethernet0/0/0peer 3.3.3.3 as-number 65115 peer 3.3.3.3 connect-interface Ethernet0/0/1 (配置bgp)#ipv4-family unicastundo synchronizationnetwork 2.2.2.2 255.255.255.255 network 10.0.0.0 255.255.255.252 network 10.0.0.4 255.255.255.252 peer 1.1.1.1 enablepeer 3.3.3.3 enable (宣告网络)#2.2.3MPL

12、S骨干网上配置MPLS基本能力和MPLS LDP,建立LDP LSP#mpls lsr-id 2.2.2.2mplslsp-trigger all mpls ldp (使能mpls)#interface Ethernet0/0/0mplsmpls ldp (端口使能mpls)#interface Ethernet0/0/1mplsmpls ldp (端口使能mpls)#2.2.4建立P与PE1、PE2的邻居关系#bgp 65115ipv4-family vpnv4policy vpn-targetpeer 1.1.1.1 enablepeer 3.3.3.3 enable (建立邻居关系 )#

13、2.3PE2相关配置和PE1类似2.3.1在MPLS骨干网上配置IGP协议,实现骨干网PE和P的互通#Sysna PE2ospf 1 area 0.0.0.0 network 10.0.0.4 0.0.0.3 network 3.3.3.3 0.0.0.0 (igp-ospf)#interface LoopBack0ip address 3.3.3.3 255.255.255.255 ospf enable 1 area 0.0.0.0 端口使能ospf)interface Ethernet0/0/0ip address 10.0.0.6 255.255.255.252 ospf enable

14、 1 area 0.0.0.0 ( 端口使能ospf)#2.3.2在PE2上配置与P、PE1的IBGP#bgp 65115router-id 3.3.3.3peer 1.1.1.1 as-number 65115 peer 1.1.1.1 connect-interface LoopBack0 (配置bgp)ipv4-family unicastundo synchronizationnetwork 3.3.3.3 255.255.255.255 network 10.0.0.4 255.255.255.252 peer 2.2.2.2 enablepeer 1.1.1.1 enable (宣

15、告网络)#2.3.3MPLS骨干网上配置MPLS基本能力和MPLS LDP,建立LDP LSP#mpls lsr-id 3.3.3.3mplslsp-trigger all mpls ldp (使能mpls)#interface Ethernet0/0/0mplsmpls ldp (端口使能mpls)#2.3.4在PE设备上配置VPN实例,将CE接入PE#ip vpn-instance VPN1ipv4-familyroute-distinguisher 100:1vpn-target 111:1 export-extcommunityvpn-target 111:1 import-extco

16、mmunity # (配置VPN1)ip vpn-instance VPN2ipv4-familyroute-distinguisher 200:1vpn-target 222:1 export-extcommunityvpn-target 222:1 import-extcommunity (配置VPN2)#interface Ethernet0/0/1ip binding vpn-instance VPN1ip address 10.0.0.17 255.255.255.252 (端口绑定VPN)interface GigabitEthernet0/0/0ip binding vpn-in

17、stance VPN2ip address 10.0.0.21 255.255.255.252 (端口绑定VPN)#2.3.5PE与CE之间建立EBGP对等体,引入VPN路由bgp 65115ipv4-family vpnv4policy vpn-targetpeer 2.2.2.2 enablepeer 1.1.1.1 enable (建立邻居关系 ) #ipv4-family vpn-instance VPN1 import-route directimport-route static (配置 vpn路由)ipv4-family vpn-instance VPN2 import-rout

18、e directimport-route static (配置 vpn路由)#ip route-static vpn-instance VPN1 0.0.0.0 0.0.0.0 10.0.0.18ip route-static vpn-instance VPN2 0.0.0.0 0.0.0.0 10.0.0.22 # ( 配置vpn静态路由)2.4CE1的相关配置#Sysn CE1interface Ethernet0/0/0ip address 10.0.0.10 255.255.255.252 ip route-static 0.0.0.0 0.0.0.0 10.0.0.9 (配置静态路由

19、)#save 2.5CE2的相关配置#Sysn CE2interface Ethernet0/0/0ip address 10.0.0.14 255.255.255.252 ip route-static 0.0.0.0 0.0.0.0 10.0.0.13#2.6CE3的相关配置#Sysn CE3interface Ethernet 0/0/0ip address 10.0.0.18 255.255.255.252 ip route-static 0.0.0.0 0.0.0.0 10.0.0.17#2.7CE4的相关配置#SysSysn CE4interface Ethernet 0/0/0i

20、p address 10.0.0.22 255.255.255.252 ip route-static 0.0.0.0 0.0.0.0 10.0.0.21#3实验结果:3.1PE1 vpn 路由表PE1disp ip rout PE1disp ip routing-table Route Flags: R - relay, D - download to fib-Routing Tables: Public Destinations : 8 Routes : 8 Destination/Mask Proto Pre Cost Flags NextHop Interface 1.1.1.1/32

21、 Direct 0 0 D 127.0.0.1 LoopBack0 2.2.2.2/32 OSPF 10 1 D 10.0.0.2 Ethernet0/0/0 3.3.3.3/32 OSPF 10 2 D 10.0.0.2 Ethernet0/0/0 10.0.0.0/30 Direct 0 0 D 10.0.0.1 Ethernet0/0/0 10.0.0.1/32 Direct 0 0 D 127.0.0.1 Ethernet0/0/0 10.0.0.4/30 OSPF 10 2 D 10.0.0.2 Ethernet0/0/0 127.0.0.0/8 Direct 0 0 D 127.0

22、.0.1 InLoopBack0 127.0.0.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0PE1disp ip routing-table vp PE1disp ip routing-table vpn-instance ? STRING VPN instance namePE1disp ip routing-table vpn-instance VPN1Route Flags: R - relay, D - download to fib-Routing Tables: VPN1 Destinations : 4 Routes : 4 Destinati

23、on/Mask Proto Pre Cost Flags NextHop Interface 0.0.0.0/0 Static 60 0 RD 10.0.0.14 Ethernet0/0/1 10.0.0.12/30 Direct 0 0 D 10.0.0.13 Ethernet0/0/1 10.0.0.13/32 Direct 0 0 D 127.0.0.1 Ethernet0/0/1 10.0.0.16/30 IBGP 255 0 RD 3.3.3.3 Ethernet0/0/0PE1 PE1disp ip routing-table vpn-instance VPN2Route Flag

24、s: R - relay, D - download to fib-Routing Tables: VPN2 Destinations : 4 Routes : 4 Destination/Mask Proto Pre Cost Flags NextHop Interface 0.0.0.0/0 Static 60 0 RD 10.0.0.10 GigabitEthernet0/0/0 10.0.0.8/30 Direct 0 0 D 10.0.0.9 GigabitEthernet0/0/0 10.0.0.9/32 Direct 0 0 D 127.0.0.1 GigabitEthernet

25、0/0/0 10.0.0.20/30 IBGP 255 0 RD 3.3.3.3 Ethernet0/0/0PE13.2P路由表disp ip routingRoute Flags: R - relay, D - download to fib-Routing Tables: Public Destinations : 9 Routes : 9 Destination/Mask Proto Pre Cost Flags NextHop Interface 1.1.1.1/32 OSPF 10 1 D 10.0.0.1 Ethernet0/0/0 2.2.2.2/32 Direct 0 0 D

26、127.0.0.1 LoopBack0 3.3.3.3/32 OSPF 10 1 D 10.0.0.6 Ethernet0/0/1 10.0.0.0/30 Direct 0 0 D 10.0.0.2 Ethernet0/0/0 10.0.0.2/32 Direct 0 0 D 127.0.0.1 Ethernet0/0/0 10.0.0.4/30 Direct 0 0 D 10.0.0.5 Ethernet0/0/1 10.0.0.5/32 Direct 0 0 D 127.0.0.1 Ethernet0/0/1 127.0.0.0/8 Direct 0 0 D 127.0.0.1 InLoo

27、pBack0 127.0.0.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0PE2 Vpn 路由表dis ip routRoute Flags: R - relay, D - download to fib-Routing Tables: Public Destinations : 8 Routes : 8 Destination/Mask Proto Pre Cost Flags NextHop Interface 1.1.1.1/32 OSPF 10 2 D 10.0.0.5 Ethernet0/0/0 2.2.2.2/32 OSPF 10 1 D 10.0

28、.0.5 Ethernet0/0/0 3.3.3.3/32 Direct 0 0 D 127.0.0.1 LoopBack0 10.0.0.0/30 OSPF 10 2 D 10.0.0.5 Ethernet0/0/0 10.0.0.4/30 Direct 0 0 D 10.0.0.6 Ethernet0/0/0 10.0.0.6/32 Direct 0 0 D 127.0.0.1 Ethernet0/0/0 127.0.0.0/8 Direct 0 0 D 127.0.0.1 InLoopBack0 127.0.0.1/32 Direct 0 0 D 127.0.0.1 InLoopBack

29、0dis ip rou dis ip routing-table vpn-instance VPN1Route Flags: R - relay, D - download to fib-Routing Tables: VPN1 Destinations : 3 Routes : 3 Destination/Mask Proto Pre Cost Flags NextHop Interface 10.0.0.12/30 IBGP 255 0 RD 1.1.1.1 Ethernet0/0/0 10.0.0.16/30 Direct 0 0 D 10.0.0.17 Ethernet0/0/1 10.0.0.17/32 Direct 0 0 D 127.0.0.1 Ethernet0/0/1dis

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

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