通过桥接技术使OSPF运行在帧中继

试验目的:

通过桥接技术使OSPF运行在FR网络上的行为相当于在以太网。 

试验拓扑:

 

配置:

R1:

  1. bridge irb
  2. !
  3. interface Loopback0
  4.  ip address 1.1.1.1 255.255.255.0
  5. !
  6. interface Serial1/0.102 multipoint
  7.  frame-relay map bridge 102 broadcast
  8.  bridge-group 1
  9. !
  10. interface Serial1/0.103 multipoint
  11.  frame-relay map bridge 103 broadcast
  12.  bridge-group 1
  13. interface BVI1
  14.  ip address 192.168.23.1 255.255.255.0
  15.  ip ospf priority 4
  16. !
  17. router ospf 100
  18.  router-id 1.1.1.1
  19.  log-adjacency-changes
  20.  network 1.1.1.0 0.0.0.255 area 0
  21.  network 192.168.23.0 0.0.0.255 area 0
  22. !
  23. bridge 1 protocol ieee
  24. bridge 1 route ip

R2:

  1. bridge irb
  2. !
  3. interface Loopback0
  4.  ip address 2.2.2.2 255.255.255.0
  5. !
  6. interface Serial1/0
  7.  no ip address
  8.  encapsulation frame-relay
  9.  serial restart-delay 0
  10.  frame-relay map bridge 201 broadcast
  11.  bridge-group 1
  12. !
  13. interface BVI1
  14.  ip address 192.168.23.2 255.255.255.0
  15.  ip ospf priority 0
  16. !
  17. router ospf 100
  18.  router-id 2.2.2.2
  19.  log-adjacency-changes
  20.  network 2.2.2.0 0.0.0.255 area 0
  21.  network 192.168.23.0 0.0.0.255 area 0
  22. !
  23. bridge 1 protocol ieee
  24. bridge 1 route ip

R3:

  1. bridge irb
  2. !
  3. interface Loopback0
  4. ip address 3.3.3.3 255.255.255.0
  5. !
  6. interface Serial1/0
  7. no ip address
  8. encapsulation frame-relay
  9. serial restart-delay 0
  10. frame-relay map bridge 301 broadcast
  11. bridge-group 1
  12. !
  13. interface BVI1
  14. ip address 192.168.23.3 255.255.255.0
  15. ip ospf priority 0
  16. !
  17. router ospf 100
  18. router-id 3.3.3.3
  19. log-adjacency-changes
  20. network 3.3.3.0 0.0.0.255 area 0
  21. network 192.168.23.0 0.0.0.255 area 0
  22. !
  23. bridge 1 protocol ieee
  24. bridge 1 route ip 

验证:

 

通过上图可看出R1是ROOT

总结:通过上面的分析可以看出OSPF在桥接组中的行为相当于以太网,这样就省去了OSPF在FR路由的麻烦。

你可能感兴趣的:(桥接,帧中继,OSP)