网络通信 频道

基于OSPF的MPLS动态流量工程和BGP4

4. 配置命令:
  
  mpls traffic-eng tunnels
  no mpls traffic-eng auto-bw timers frequency 0
  tag-switching tdp router-id Loopback0
  !
  !
  !
  !
  interface Loopback0
  ip address 10.10.10.1 255.255.255.255
  no ip directed-broadcast
  !
  interface Tunnel1
  ip unnumbered Loopback0
  no ip directed-broadcast
  tunnel source Loopback0
  tunnel destination 10.10.20.2
  tunnel mode mpls traffic-eng
  tunnel mpls traffic-eng priority 7 7
  tunnel mpls traffic-eng bandwidth 200
  tunnel mpls traffic-eng path-option 1 dynamic
  !
  interface Tunnel2
  ip unnumbered Loopback0
  no ip directed-broadcast
  tunnel source Loopback0
  tunnel destination 10.10.20.2
  tunnel mode mpls traffic-eng
  tunnel mpls traffic-eng priority 7 7
  tunnel mpls traffic-eng bandwidth 300
  tunnel mpls traffic-eng path-option 1 dynamic
  !
  interface Multilink1
  ip address 10.10.12.1 255.255.255.0
  no ip directed-broadcast
  mpls traffic-eng tunnels
  tag-switching ip
  ppp multilink
  multilink-group 1
  ip rsvp bandwidth 300 300
  
  router ospf 1
  router-id 10.10.10.1
  log-adjacency-changes
  nsf
  area 1 stub
  passive-interface Loopback0
  network 10.10.10.0 0.0.0.255 area 0
  network 10.10.11.0 0.0.0.255 area 0
  network 10.10.12.0 0.0.0.255 area 0
  network 10.10.13.0 0.0.0.255 area 0
  network 10.10.15.0 0.0.0.255 area 1
  mpls traffic-eng router-id Loopback0
  mpls traffic-eng area 0
  !
  router rip
  version 2
  network 100.0.0.0
  network 222.222.222.0
  !
  router bgp 100
  no synchronization
  bgp log-neighbor-changes
  neighbor 10.10.20.2 remote-as 100
  neighbor 10.10.20.2 update-source Loopback0
  neighbor 10.10.30.3 remote-as 100
  neighbor 10.10.30.3 update-source Loopback0
  no auto-summary
  !
  ip classless
  ip route 10.10.24.44 255.255.255.255 Tunnel2
  ip route 10.10.40.4 255.255.255.255 Tunnel1
  !
  !
  logging 10.10.3.99
  access-list 101 permit ip 100.100.100.0 0.0.0.255 200.200.200.0 0.0.0.255
  route-map MPLStunnel permit 10
  match interface FastEthernet2/0/0
  set interface Tunnel2
  !
  route-map MPLStunnel permit 20
  match interface FastEthernet2/0/1
  set interface Tunnel1
  !

0
相关文章