首页 > MPLS TE基本配置-OSPF

MPLS TE基本配置-OSPF

拓扑:

R1配置:

mpls label range 100 199

mpls traffic-eng tunnels

interface Loopback0

ip address 1.1.1.1 255.255.255.255

!

interface Tunnel1

ip unnumbered Loopback0

tunnel destination 6.6.6.6

tunnel mode mpls traffic-eng

tunnel mpls traffic-eng autoroute announce

tunnel mpls traffic-eng priority 7 7

tunnel mpls traffic-eng bandwidth 1000

tunnel mpls traffic-eng path-option 10 dynamic

no routing dynamic

!

interface FastEthernet0/0

ip address 12.1.1.1 255.255.255.0

duplex auto

speed auto

mpls traffic-eng tunnels

ip rsvp bandwidth 5000

ip rsvp resource-provider none

!

interface FastEthernet0/1

ip address 14.1.1.1 255.255.255.0

duplex auto

speed auto

mpls traffic-eng tunnels

ip rsvp bandwidth 5000

ip rsvp resource-provider none

!

router ospf 100

mpls traffic-eng router-id Loopback0

mpls traffic-eng area 0

router-id 1.1.1.1

log-adjacency-changes

network 1.1.1.1 0.0.0.0 area 0

network 12.1.1.0 0.0.0.255 area 0

network 14.1.1.0 0.0.0.255 area 0

R2配置:

mpls label range 200 299

mpls traffic-eng tunnels

interface Loopback0

ip address 2.2.2.2 255.255.255.255

!

interface FastEthernet0/0

ip address 12.1.1.2 255.255.255.0

duplex auto

speed auto

mpls traffic-eng tunnels

ip rsvp bandwidth 5000

ip rsvp resource-provider none

!

interface FastEthernet0/1

ip address 23.1.1.2 255.255.255.0

duplex auto

speed auto

mpls traffic-eng tunnels

ip rsvp bandwidth 5000

ip rsvp resource-provider none

!

router ospf 100

mpls traffic-eng router-id Loopback0

mpls traffic-eng area 0

router-id 2.2.2.2

log-adjacency-changes

network 2.2.2.2 0.0.0.0 area 0

network 12.1.1.0 0.0.0.255 area 0

network 23.1.1.0 0.0.0.255 area 0

R3配置:

mpls label range 300 399

mpls traffic-eng tunnels

interface Loopback0

ip address 3.3.3.3 255.255.255.255

!

interface FastEthernet0/0

ip address 36.1.1.3 255.255.255.0

duplex auto

speed auto

mpls traffic-eng tunnels

ip rsvp bandwidth 5000

ip rsvp resource-provider none

!

interface FastEthernet0/1

ip address 23.1.1.3 255.255.255.0

duplex auto

speed auto

mpls traffic-eng tunnels

ip rsvp bandwidth 5000

ip rsvp resource-provider none

!

router ospf 100

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 23.1.1.0 0.0.0.255 area 0

network 36.1.1.0 0.0.0.255 area 0

R4配置:

mpls label range 400 499

mpls traffic-eng tunnels

interface Loopback0

ip address 4.4.4.4 255.255.255.255

!

interface FastEthernet0/0

ip address 45.1.1.4 255.255.255.0

duplex auto

speed auto

mpls traffic-eng tunnels

ip rsvp bandwidth 5000

ip rsvp resource-provider none

!

interface FastEthernet0/1

ip address 14.1.1.4 255.255.255.0

duplex auto

speed auto

mpls traffic-eng tunnels

ip rsvp bandwidth 5000

ip rsvp resource-provider none

!

router ospf 100

mpls traffic-eng router-id Loopback0

mpls traffic-eng area 0

router-id 4.4.4.4

log-adjacency-changes

network 4.4.4.4 0.0.0.0 area 0

network 14.1.1.0 0.0.0.255 area 0

network 45.1.1.0 0.0.0.255 area 0

R5配置:

mpls label range 500 599

mpls traffic-eng tunnels

!

interface Loopback0

ip address 5.5.5.5 255.255.255.255

!

interface FastEthernet0/0

ip address 45.1.1.5 255.255.255.0

duplex auto

speed auto

mpls traffic-eng tunnels

ip rsvp bandwidth 5000

ip rsvp resource-provider none

!

interface FastEthernet0/1

ip address 56.1.1.5 255.255.255.0

duplex auto

speed auto

mpls traffic-eng tunnels

ip rsvp bandwidth 5000

ip rsvp resource-provider none

!

router ospf 100

mpls traffic-eng router-id Loopback0

mpls traffic-eng area 0

router-id 5.5.5.5

log-adjacency-changes

network 5.5.5.5 0.0.0.0 area 0

network 45.1.1.0 0.0.0.255 area 0

network 56.1.1.0 0.0.0.255 area 0

R6配置:

mpls label range 600 699

mpls traffic-eng tunnels

interface Loopback0

ip address 6.6.6.6 255.255.255.255

!

interface Loopback1

ip address 66.6.6.6 255.255.255.0

!

interface FastEthernet0/0

ip address 36.1.1.6 255.255.255.0

duplex auto

speed auto

mpls traffic-eng tunnels

ip rsvp bandwidth 5000

ip rsvp resource-provider none

!

interface FastEthernet0/1

ip address 56.1.1.6 255.255.255.0

duplex auto

speed auto

mpls traffic-eng tunnels

ip rsvp bandwidth 5000

ip rsvp resource-provider none

!

router ospf 100

mpls traffic-eng router-id Loopback0

mpls traffic-eng area 0

router-id 6.6.6.6

log-adjacency-changes

network 6.6.6.6 0.0.0.0 area 0

network 36.1.1.0 0.0.0.255 area 0

network 56.1.1.0 0.0.0.255 area 0

network 66.6.6.0 0.0.0.255 area 0

验证:

从上图可以看出TE已经正常工作了。

另外可以使用下面的命令确认MPLS TE支持

说明:

MPLS TE的命令和理论会在以后的问题给出。

更多相关:

  • 下面的源码给出了使用boost::asio进行域名解析的方法. //g++ -g resolver_demo.cpp -o resolver_demo -lboost_system -lpthread //#include #include #include

  • pc 端配置 点击pc端无线链接图标编辑链接以太网编辑IPv4设置方法:与其他计算机共享根据putty获取的动态ip使用ssh登录 解决 ip 无法登录问题 设置 pc 端 ip 和开发板 ip 在同一个网段 比如开发板 ip 是 10.42.0.123 可以设置自己机器的 ip 为 10.42.0.11 sudo ifcon...

  • 原文:TCP/IP 简介     第一节:TCP/IP 简介 第二节:TCP/IP 寻址 第三节:TCP/IP 协议 第四节:TCP/IP 邮件     TCP/IP 是用于因特网 (Internet) 的通信协议。     计算机通信协议 计算机通信协议是对那些计算机必须遵守以便彼此通信的规则的描述。     什么是 TC...

  • #保存一万条命令记录 sed -i 's/^HISTSIZE=1000/HISTSIZE=10000/g' /etc/profile#在/etc/profile的文件尾部添加如下行数配置信息 ######jiagu history xianshi######### USER_IP=`who -u am i 2>/dev/null |...

  • TCP/IP基础概念及通信过程举例   出现 上个世纪60年代,由于中央集中式网络的容灾性较弱,以美国国防部为中心的一家组织研究出分组交换网络。后来为了验证分组交换技术的实用性,ARPANET出现了,并且在3年内逐渐发展,由4个节点发展至34个节点。20世纪70年代前半叶,ARPANET一个机构研制出了TCP/IP,1982年具体规范...