Cisco MPLS-TE 配置实例
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
拓扑结构:
原理说明:
流量工程中tunnel的创立过程分为四步,分别为:
1.开启全局和interface上面的mpls traffic engine tunnel,这一步为一个开关的作用。
2.配置端口的rsvp bandw idth,分别为各个interface指定一定的预留带宽用于分给上面的tunnel。
3.开启ospf-te或者其他协议的扩展功能,保障所有端口的流量情况被同步到area中的所有路由器,这在LER建立tunnel时提供了保障。
4.创建mpls traffic-engine tunnel,配置其带宽,优先级,recor route等属性。通过RSVP-TE的path报文到达destination,并反向传送resv报文,用于分配标签和预留带宽。从而真正创建出一条有保障能力的tunnel。
实验步骤:
在所有设备之间运行OSPF和MPLS,保障所有设备都能够分到标签,基于标签转发。此时,在PE1-P1-PE2上预留带宽为10M,在PE1-P2-PE2上预留带宽为20M。在PE1上面建立dynamic tunnel和explicit r oute tunnel,看在大于或者小于等于链路所剩余带宽的情况下,是否能够成功创建mpls traffic-engine tunnel。
//CE1//
ip cef
mpls label protocol ldp
interface Loopback0
ip address 1.1.1.1 255.255.255.255
interface GigabitEthernet1/0
ip address 10.0.0.1 255.255.255.0
tag-switching ip
router ospf 1
router-id 1.1.1.1
network 1.1.1.1 0.0.0.0 area 0
network 10.0.0.0 0.0.0.255 area 0
//PE1//
ip cef
mpls label protocol ldp
mpls traffic-eng tunnels
interface Loopback0
ip address 2.2.2.2 255.255.255.255
interface Tunnel1
ip unnumbered Loopback0
tunnel destination 5.5.5.5
tunnel mode mpls traffic-eng
tunnel mpls traffic-eng autoroute announce
tunnel mpls traffic-eng priority 7 7
tunnel mpls traffic-eng bandwidth 5000
tunnel mpls traffic-eng path-option 5 dynamic tunnel mpls traffic-eng record-route
interface GigabitEthernet1/0
ip address 10.0.0.2 255.255.255.0
tag-switching ip
interface GigabitEthernet2/0
ip address 11.0.0.1 255.255.255.0
mpls traffic-eng tunnels
tag-switching ip
ip rsvp bandwidth 10000
interface GigabitEthernet3/0
ip address 13.0.0.1 255.255.255.0
mpls traffic-eng tunnels
tag-switching ip
ip rsvp bandwidth 20000
router ospf 1
mpls traffic-eng router-id Loopback0
mpls traffic-eng area 0
router-id 2.2.2.2
network 2.2.2.2 0.0.0.0 area 0
network 10.0.0.0 0.0.0.255 area 0
network 11.0.0.0 0.0.0.255 area 0
network 13.0.0.0 0.0.0.255 area 0
ip explicit-path name 10m_link enable
next-address 11.0.0.2
next-address 12.0.0.2
//P1//
ip cef
mpls label protocol ldp
mpls traffic-eng tunnels
interface Loopback0
ip address 3.3.3.3 255.255.255.255
interface GigabitEthernet1/0
ip address 11.0.0.2 255.255.255.0
negotiation auto
mpls traffic-eng tunnels
tag-switching ip
ip rsvp bandwidth 10000
interface GigabitEthernet2/0
ip address 12.0.0.1 255.255.255.0
negotiation auto
mpls traffic-eng tunnels
tag-switching ip
ip rsvp bandwidth 10000
router ospf 1
mpls traffic-eng router-id Loopback0 mpls traffic-eng area 0
router-id 3.3.3.3
log-adjacency-changes
network 3.3.3.3 0.0.0.0 area 0
network 11.0.0.0 0.0.0.255 area 0
network 12.0.0.0 0.0.0.255 area 0
//P2//
ip cef
mpls label protocol ldp
mpls traffic-eng tunnels
interface Loopback0
ip address 4.4.4.4 255.255.255.255 interface GigabitEthernet1/0
ip address 13.0.0.2 255.255.255.0
negotiation auto
mpls traffic-eng tunnels
tag-switching ip
ip rsvp bandwidth 20000
interface GigabitEthernet2/0
ip address 14.0.0.1 255.255.255.0
negotiation auto
mpls traffic-eng tunnels
tag-switching ip
ip rsvp bandwidth 20000
router ospf 1
mpls traffic-eng router-id Loopback0 mpls traffic-eng area 0
router-id 4.4.4.4
network 4.4.4.4 0.0.0.0 area 0
network 13.0.0.0 0.0.0.255 area 0
network 14.0.0.0 0.0.0.255 area 0
//PE2//
ip cef
mpls label protocol ldp