拓扑

实验 - 图1

实验00 Basic BGP Configuration

  • R2 是先no 掉 ipv4,然后进去到 address-falimy 单独 Activate
  1. #R1
  2. router bgp 65100
  3. neighbor 10.12.1.2 remote-as 65200
  4. neighbor 10.12.1.2 password CISCO
  5. neighbor 10.12.1.2 timers 10 40
  6. #R2
  7. router bgp 65200
  8. bgp log-neighbor-changes
  9. no bgp default ipv4-unicast
  10. neighbor 10.12.1.1 remote-as 65100
  11. neighbor 10.12.1.1 password CISCO
  12. neighbor 10.12.1.1 timers 20 100
  13. address-family ipv4
  14. neighbor 10.12.1.1 activate
  15. exit-address-family
  • verification
    • show ip bgp ipv4 unicast summary
    • show ip bgp ipv4 unicast neighbors 10.12.1.2
    • show ip bgp summary
    • 查看配置时的参数,协商后真正使用的参数,谁是本地179
    • show tcp brief

实验01 Prefix Advertisement

  1. 在R1上配置EIGRP,Static,OSPF,查看路由表,确认获取到路由
  2. 配置 BGP
  1. router eigrp MY_EIGRP
  2. !
  3. address-family ipv4 unicast autonomous-system 100
  4. !
  5. topology base
  6. exit-af-topology
  7. network 10.13.1.0 0.0.0.255
  8. exit-address-family
  9. !
  10. router ospf 100
  11. network 10.15.1.0 0.0.0.255 area 0
  12. !
  13. router bgp 65100
  14. bgp log-neighbor-changes
  15. network 192.168.1.1 mask 255.255.255.255
  16. network 192.168.3.3 mask 255.255.255.255
  17. network 192.168.4.4 mask 255.255.255.255
  18. redistribute ospf 100
  19. neighbor 10.12.1.2 remote-as 65200
  20. neighbor 10.12.1.2 password CISCO
  21. neighbor 10.12.1.2 timers 10 40