!……and enables IS…IS for IP on the interface。
!
interface Serial0/0
encapsulation frame…relay
!
interface Serial0/0。1 point…to…point
ip address 10。1。1。6 255。255。255。252
ip router isis
tag…switching ip
!……Enables dynamic Label Switching of
!……IPv4 packets on an interface。
frame…relay interface…dlci 301
!
interface Serial0/0。2 point…to…point
ip address 10。1。1。9 255。255。255。252
ip router isis
tag…switching ip
frame…relay interface…dlci 303
!
interface Serial0/0。3 point…to…point
ip address 10。1。1。21 255。255。255。252
ip router isis
tag…switching ip
frame…relay interface…dlci 306
!
router isis
net 49。0001。0000。0000。0003。00
is…type level…1
!
ip classless
!
end
2。2。3。2 配置MPLS TE
1。 利用通常配置搭建你的网络 (这里我们以Frame Relay为例)。注:必须建立一个具有32位掩码的 loopback 接口。这个地址将用于路由协议建立MPLS 网络和TE。这个地址必须在全局的路由表中可达。
2。 为MPLS网络建立路由协议。协议必须是链路状态协议 (IS…IS 或 OSPF)。在路由协议配置模式下,键入:
o 对于 IS…IS:
o metric…style wide (or metric…style both)
o mpls traffic…eng router…id LoopbackN
mpls traffic…eng 'level…1 | level…2 |'
o 对于 OSPF:
o mpls traffic…eng area X
mpls traffic…eng router…id LoopbackN (must have a 255。255。255。255 mask)
3。 开启MPLS TE。在配置模式下键入 ip cef (或 ip cef distributed) 。在每个接口上开启MPLS (tag…switching ip),并键入 mpls traffic…engineering tunnel 开启MPLS TE。
4。 在相应的接口下使用 ip rsvp bandwidth XXX 开启RSVP。
5。 建立用于TE的隧道。在配置MPLS TE 隧道时,有许多选项,但命令 tunnel mode mpls traffic…eng 是必须的。命令tunnel mpls traffic…eng autoroute announce 则向路由协议宣告隧道的存在。
注: 不要忘记在隧道接口上使用 ip unnumbered loopbackN
配置案例
下面的例子使用显式(explicit…path)路径建立Tunnel:
Current configuration:
!
version 12。1
!
hostname Pesaro
!
ip cef
mpls traffic…eng tunnels
!
interface Loopback0
ip address 10。10。10。6 255。255。255。255
ip router isis
!
interface Tunnel158
ip unnumbered Loopback0
tunnel destination 10。10。10。4
tunnel mode mpls traffic…eng
tunnel mpls traffic…eng autoroute announce
tunnel mpls traffic…eng priority 2 2
tunnel mpls traffic…eng bandwidth 158
tunnel mpls traffic…eng path…option 1 explicit name low
!
interface Tunnel159
ip unnumbered Loopback0
tunnel destination 10。10。10。4
tunnel mode mpls traffic…eng
tunnel mpls traffic…eng autoroute announce
tunnel mpls traffic…eng priority 4 4
tunnel mpls traffic…eng bandwidth 159
tunnel mpls traffic…eng path…option 1 explicit name straight
!
interface Serial0/0
no ip address
encapsulation frame…relay
!
interface Serial0/0。1 point…to…point
bandwidth 512
ip address 10。1。1。22 255。255。255。252
ip router isis
tag…switching ip
mpls traffic…eng tunnels
frame…relay interface…dlci 603
ip rsvp bandwidth 512 512
!
router isis
net 49。0001。0000。0000。0006。00
is…type level…1
metric…style wide
mpls traffic…eng router…id Loopback0
mpls traffic…eng level…1
!
!
ip classless
!
ip explicit…path name low enable
next…address 10。1。1。21
next…address 10。1。1。10
next…address 10。1。1。1
next…address 10。1。1。14
!
ip explicit…path name straight enable
next…address 10。1。1。21
next…address 10。1。1。5
next…address 10。1。1。14
!
end
下面的例子使用动态的路径建立Tunnel:
Current configuration:
!
version 12。0
!
hostname Pescara
!
ip cef
!
mpls traffic…eng tunnels
!
interface Loopback0
ip address 10。10。10。4 255。255。255。255
ip router isis
!
interface Tunnel1
ip unnumbered Loopback0
tunnel destination 10。10。10。6
tunnel mode mpls traffic…eng
tunnel mpls traffic…eng autoroute announce
tunnel mpls traffic…eng priority 5 5
tunnel mpls traffic…eng bandwidth 25
tunnel mpls traffic…eng path…option 2 dynamic
!
interface Tunnel3
ip unnumbered Loopback0
tunnel destination 10。10。10。6
tunnel mode mpls traffic…eng
tunnel mpls traffic…eng autoroute announce
tunnel mpls traffic…eng priority 6 6
tunnel mpls traffic…eng bandwidth 69
tunnel mpls traffic…eng path…option 1 dynamic
!
interface Serial0/1
no ip address
encapsulation frame…relay
!
interface Serial0/1。1 point…to…point
bandwidth 512
ip address 10。1。1。14 255。255。255。252
ip router isis
mpls traffic…eng tunnels
tag…switching ip
frame…relay interface…dlci 401
ip rsvp bandwidth 512 512
!
router isis
net 49。0001。0000。0000。0004。00
is…type level…1
metric…style wide
mpls traffic…eng router…id Loopback0
mpls traffic…eng level…1
!
end
2。2。3。3 配置MPLS VPN须完成的任务
* 定义 VPN
* 配置 PE 到 PE 的BGP路由协议会话
* 配置 PE 到 CE 的BGP路由协议会话
* 配置 PE 到 CE 的RIP路由协议会话
* 配置 PE 到 CE 的静态路由
* 验证
定义 VPN
在PE路由器上完成以下配置来定义VPN路由:
步骤
配置命令
作用
1。
Router(config)# ip vrf vrf…name
进入VRF配置模式,定义VPN,并命名VRF。
2。
Router(config…vrf)# rd route…distinguisher
生成路由和转发表
3。
Router(config…vrf)# route…target {import | export | both} route…target…ext…munity
生成VRF的输入和/或输出的路由目标团体(route target munities)
4。
Router(config…vrf)# import map route…map
(选项) 关联特定的路由图(route map)到 VRF
5。
Router(config…if)# ip vrf forwarding vrf…name
关联特定接口(子接口)和VRF
配置PE 到 PE BGP路由会话
在营运商的网络中,完成以下任务来配置PE到PE的BGP路由会话:
步骤
配置命令
作用
1。
Router(config)# router bgp autonomous…system
配置 IBGP 路由进程
2。
Router(config…router)# neighbor {ip…address | peer…group…name} remote…as number
指定对端的邻居的IP地址或IBGP 对等组。
3。
Router(config…router)# neighbor ip…address activate
激活IPv4 address family
配置PE到CE的BGP路由协议
完成以下步骤,配置PE到CE的BGP路由协议:
步骤
命令
作用
1。
Router(config)# router bgp autonomous…system
配置一个EBGP路由进程
2。
Router(config…router)# neighbor {ip…address | peer…group…name} remote…as number
指定一个邻居的IP 地址或EBGP对等组
3。
Router(config…router)# neighbor ip…address activate
激活 IPv4 address family。
配置PE到CE的RIP路由协议
完成以下步骤,配置PE到CE的RIP路由协议:
小说推荐
- asp基础实用教程(DOC格式)
- 目 录一、关于ASP二、ASP的新功能三、创建ASP页四、使用脚本语言五、使用变量和常量六、使用集合七、ASP内建对象八、向浏览器发送内容九、包含文件十、访问数据库十一、调试ASP脚本十二、维护ASP应用程序的安全一、关于ASP Active Server Pages(ASP)是服务器端脚本编写环境
- 最新章:第17章
- asp基础入门篇(DOC格式)
- ASP入门与实例-IIS的安装与配置1、运行环境与软件要求Windows 2000 以上(不包括Windows XP Home版)IIS 4.0 以上Microsoft Access 2000Dreamweaver MX2、IIS的安装与配置a.安装IIS若操作系统中还未安装IIS服务器,可打开"控
- 最新章:第23章
- Word2003使用技巧大全(DOC格式)
- Word使用技巧(二)表格使用大全更新时间:2009-11-16 19:32:15 本文共阅读了257次 作者:xushezheng 文章来源:电教组字体大小:大中小一、快速插入表格 拖动“插入表格”能插入的最大表格跟该图标位置、显示分辨率有关。如使用800×600分辨率时最大为18行×28列 二、
- 最新章:第1章
- C语言实例教程(PDF格式)
- -Page 1-前 言Visual C+是开发运行于Windows 95和Windows NT环境下的Win32应用程序的可视化编程工具中最重要的成员之一,它为软件开发人员提供了完整的编辑、编译和调试工具和建立于Win32 API(ApplicationProgramming Interface)基
- 最新章:第143章
- Excel word ppt office使用技巧大全(DOC格式)
- -Page 1-Excel_word_ppt_使用技巧大全(完全版)Excelwordppt使用技巧大全(2011新版本)I-Page 2-Excel_word_ppt_使用技巧大全(完全版
- 最新章:第338章
- 股票基本知识
- 第一节 股票的概念与特征随着经济体制改革的深化,我国股票市场也不断地发展与完善,参与股市投资的投资者日益增多,股市投资已成为一种人们愿意承担其风险的理财手段,而股票自然而然也成为了人人关心的热门话题。股票到底是什么?股票是股份证书的简称,是股份公司为筹集资金而发行给股东作为持股凭证并借以取得股息和红
- 最新章:第36章
- JSP入门教程(DOC格式)
- -Page 1-jsp 入门教程0.0.1版权(c 2008 叮咚老菜鸟叮咚对文档的任何问题或建议,请给叮咚发邮件或留言。QQ:475784337QQ 群:51239192MSN:lingirl6@hotmail.EMAIL:lingirl6@hotmail.2008-02-28 20:05:061
- 最新章:第37章
- php程序设计简明教程(DOC格式)
- -Page 1-PHP 程序设计简明教程PHP 讲义 第 1 页 共 90 页-Page 2-目录序 4第一章 PHP 简介 6
- 最新章:第31章
- 法律基础知识
- 《法律基础知识》作者:佚名人身权:人身权是指民事主体依法享有的、与其人身不可分离而又不直接具有财产内容的民事权利。它与财产权共同构成了民法中的两大类基本民事权利。人身权包括人格权和身份权两大类,其中人格权包括生命权、身体权、健康权、姓名权、名称权、名誉权、肖像权、隐私权。身份权包括亲权、配偶权、亲属
- 最新章:第6章