天下网吧 >> 网吧方案 >> 方案分析 >> 正文

某项目的CISCO产品测试报告之实验二、基于OSPF的MPLS动态流量工程和BGP4


  验证在OSPF的网络环境下,MPLS动态流量工程和BGP4的EBGP和IBGP。
  本实验验证四个技术点:
  a. 路由协议OSPF的运行
  b. MPLS的动态流量工程机制
  c. BGP4的EBGP和IBGP
  d. 承载10万条BGP路由表能力
  
  2. 实验环境:
  
  实验环境如图:
   
  三台骨干的路由器为Area 0的骨干路由器
  R5为STUB Area 1、R6为Total NSSA Area 2
  三台骨干的路由器运行流量工程
  
  3. 实验方法:
  
  在如图环境中首先通过一系列命令确认MPLS TE隧道的建立、然后在R5上通过Trace命令分别跟踪R4上不同的端口Lo0和FE0端口。会产生不同的效果、到Lo0会从R2直接通过到达R4、到FE0端口会从R3再到R2到达R4。产生明显的流量工程效果、并能显示出MPLS的标记效果。
  
  在如图环境中通过一系列命令确认OSPF的邻居关系、数据库等是否正常、包括NSSA和STUB域是否正常。
  
  在如图环境中通过一系列命令确认BGP的邻居关系、查看TCP链接、及路由是否正确学到。
  
  
  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
  !
  
  
  5. 确认:
  
  
  1. OSPF 流量工程:
  
  R1#sh ip rou
  Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
  D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
  N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
  E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
  i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
  * - candidate default, U - per-user static route, o - ODR
  
  Gateway of last resort is not set
  
  222.222.222.0/24 is variably subnetted, 2 subnets, 2 masks
  C 222.222.222.2/32 is directly connected, Serial4/1/3
  C 222.222.222.0/24 is directly connected, Serial4/1/3
  100.0.0.0/24 is subnetted, 2 subnets
  C 100.100.100.0 is directly connected, FastEthernet10/0/0
  C 100.100.110.0 is directly connected, FastEthernet10/0/1
  10.0.0.0/8 is variably subnetted, 19 subnets, 2 masks
  O 10.10.3.0/24 [110/2] via 10.10.13.3, 00:02:25, POS4/0/0
  C 10.10.11.0/24 is directly connected, FastEthernet2/0/0
  C 10.10.10.1/32 is directly connected, Loopback0
  C 10.10.12.0/24 is directly connected, Multilink1
  C 10.10.13.0/24 is directly connected, POS4/0/0
  C 10.10.12.2/32 is directly connected, Multilink1
  C 10.10.15.0/24 is directly connected, FastEthernet2/0/1
  --More-- O IA 10.10.22.0/24 [110/3] via 10.10.13.3, 00:02:26, POS4/0/0
  O 10.10.20.2/32 [110/3] via 10.10.13.3, 00:02:26, POS4/0/0
  O 10.10.23.0/24 [110/2] via 10.10.13.3, 00:02:26, POS4/0/0
  O 10.10.24.0/24 [110/3] via 10.10.13.3, 00:02:26, POS4/0/0
  O IA 10.10.26.0/24 [110/18] via 10.10.13.3, 00:02:26, POS4/0/0
  O 10.10.30.3/32 [110/2] via 10.10.13.3, 00:02:26, POS4/0/0
  O 10.10.33.0/24 [110/2] via 10.10.13.3, 00:02:26, POS4/0/0
  S 10.10.40.4/32 is directly connected, Tunnel1
  S 10.10.24.44/32 is directly connected, Tunnel2
  O 10.10.50.5/32 [110/2] via 10.10.15.5, 00:04:51, FastEthernet2/0/1
  O E2 10.10.99.0/24 [110/20] via 10.10.13.3, 00:02:26, POS4/0/0
  O 10.10.100.0/24 [110/3] via 10.10.13.3, 00:02:27, POS4/0/0
  R1# sh mpls tr
  R1# sh mpls traffic-eng tu
  
  Name: R1_t1 (Tunnel1) Destination: 10.10.20.2
  Status:
  Admin: up Oper: up Path: valid Signalling: connected
  
  path option 1, type dynamic (Basis for Setup, path weight 21)
  
  Config Parameters:
  Bandwidth: 200 kbps (Global) Priority: 7 7 Affinity: 0x0/0xFFFF
  Metric Type: TE (default)
  AutoRoute: disabled LockDown: disabled Loadshare: 200 bw-based
  auto-bw: disabled
  
  InLabel : -
  OutLabel : Multilink1, implicit-null
  RSVP Signalling Info:
  Src 10.10.10.1, Dst 10.10.20.2, Tun_Id 1, Tun_Instance 262
  RSVP Path Info:
  My Address: 10.10.10.1
  Explicit Route: 10.10.12.2 10.10.20.2
  Record Route: NONE
  Tspec: ave rate=200 kbits, burst=1000 bytes, peak rate=200 kbits
  RSVP Resv Info:
  --More-- Record Route: NONE
  Fspec: ave rate=200 kbits, burst=1000 bytes, peak rate=Inf
  History:
  Tunnel:
  Time since created: 2 hours, 10 minutes
  Time since path change: 2 minutes, 49 seconds
  Current LSP:
  Uptime: 2 minutes, 49 seconds
  Prior LSP:
  ID: path option 1 [257]
  Removal Trigger: path verification failed
  
  Name: R1_t2 (Tunnel2) Destination: 10.10.20.2
  Status:
  Admin: up Oper: up Path: valid Signalling: connected
  
  path option 1, type dynamic (Basis for Setup, path weight 2)
  
  Config Parameters:
  Bandwidth: 300 kbps (Global) Priority: 7 7 Affinity: 0x0/0xFFFF
  Metric Type: TE (default)
  AutoRoute: disabled LockDown: disabled Loadshare: 300 bw-based
  auto-bw: disabled
  --More--
  InLabel : -
  OutLabel : POS4/0/0, 25
  RSVP Signalling Info:
  Src 10.10.10.1, Dst 10.10.20.2, Tun_Id 2, Tun_Instance 283
  RSVP Path Info:
  My Address: 10.10.10.1
  Explicit Route: 10.10.13.3 10.10.23.3 10.10.23.2 10.10.20.2
  Record Ro

本文来源:天下网吧 作者:网吧方案

声明
声明:本站所发表的文章、评论及图片仅代表作者本人观点,与本站立场无关。若文章侵犯了您的相关权益,请及时与我们联系,我们会及时处理,感谢您对本站的支持!联系Email:support@txwb.com,系统开号,技术支持,服务联系QQ:1175525021本站所有有注明来源为天下网吧或天下网吧论坛的原创作品,各位转载时请注明来源链接!
天下网吧·网吧天下