zoukankan      html  css  js  c++  java
  • BGP路由的手动汇总

    网络拓扑

    XRV1

    ==========================================================

    !
    hostname XRV1
    !
    interface Loopback0
    ip address 220.198.32.1 255.255.255.255
    ip router isis 100
    !
    interface GigabitEthernet1
    ip address 123.103.15.1 255.255.255.252
    negotiation auto
    bfd interval 250 min_rx 250 multiplier 3
    !
    interface GigabitEthernet2
    ip address 123.103.15.5 255.255.255.252
    negotiation auto
    bfd interval 250 min_rx 250 multiplier 3
    !
    interface GigabitEthernet3
    ip address 10.10.1.2 255.255.255.252
    ip router isis 100
    negotiation auto
    isis circuit-type level-2-only
    !
    router isis 100
    net 49.0000.2201.9832.1000.00
    is-type level-2-only
    !
    router bgp 4809
    bgp router-id 220.198.32.1
    bgp log-neighbor-changes
    bgp graceful-restart restart-time 120
    bgp graceful-restart stalepath-time 360
    bgp graceful-restart
    aggregate-address 43.180.0.0 255.255.0.0 as-set
    aggregate-address 36.159.0.0 255.255.0.0 as-set
    aggregate-address 27.160.0.0 255.255.0.0 as-set
    aggregate-address 14.102.0.0 255.255.0.0 as-set
    neighbor 123.103.15.2 remote-as 9308
    neighbor 123.103.15.2 password cisco
    neighbor 123.103.15.2 fall-over bfd
    neighbor 123.103.15.6 remote-as 9808
    neighbor 123.103.15.6 password cisco
    neighbor 123.103.15.6 fall-over bfd
    neighbor 220.198.32.5 remote-as 4809
    neighbor 220.198.32.5 password cisco
    neighbor 220.198.32.5 update-source Loopback0
    neighbor 220.198.32.5 next-hop-self
    !

    XRV2

    ==========================================================

    !
    hostname XRV2
    !
    interface Loopback0
    ip address 220.198.32.2 255.255.255.255
    !
    interface GigabitEthernet1
    ip address 123.103.15.2 255.255.255.252
    negotiation auto
    bfd interval 250 min_rx 250 multiplier 3
    !
    interface GigabitEthernet2
    ip address 123.103.15.13 255.255.255.252
    negotiation auto
    bfd interval 250 min_rx 250 multiplier 3
    !
    interface GigabitEthernet3
    ip address 123.103.15.9 255.255.255.252
    negotiation auto
    bfd interval 250 min_rx 250 multiplier 3
    !
    router bgp 9308
    bgp router-id 220.198.32.2
    bgp log-neighbor-changes
    bgp graceful-restart restart-time 120
    bgp graceful-restart stalepath-time 360
    bgp graceful-restart
    aggregate-address 43.180.0.0 255.255.0.0 summary-only
    aggregate-address 36.159.0.0 255.255.0.0 summary-only
    aggregate-address 27.160.0.0 255.255.0.0 summary-only
    aggregate-address 14.102.0.0 255.255.0.0 summary-only
    neighbor 123.103.15.1 remote-as 4809
    neighbor 123.103.15.1 password cisco
    neighbor 123.103.15.1 fall-over bfd
    neighbor 123.103.15.10 remote-as 9808
    neighbor 123.103.15.10 password cisco
    neighbor 123.103.15.10 fall-over bfd
    neighbor 123.103.15.14 remote-as 4807
    neighbor 123.103.15.14 password cisco
    neighbor 123.103.15.14 fall-over bfd
    !

    XRV3

    ==========================================================

    !
    hostname XRV3
    interface Loopback0
    ip address 220.198.32.3 255.255.255.255
    !
    interface GigabitEthernet2
    ip address 123.103.15.14 255.255.255.252
    negotiation auto
    bfd interval 250 min_rx 250 multiplier 3
    !
    interface GigabitEthernet4
    ip address 123.103.15.17 255.255.255.252
    negotiation auto
    bfd interval 250 min_rx 250 multiplier 3
    !
    router bgp 4807
    bgp router-id 220.198.32.3
    bgp log-neighbor-changes
    bgp graceful-restart restart-time 120
    bgp graceful-restart stalepath-time 360
    bgp graceful-restart
    neighbor 123.103.15.13 remote-as 9308
    neighbor 123.103.15.13 password cisco
    neighbor 123.103.15.13 fall-over bfd
    neighbor 123.103.15.18 remote-as 9808
    neighbor 123.103.15.18 password cisco
    neighbor 123.103.15.18 fall-over bfd
    !

    XRV4

    ==========================================================

    !
    hostname XRV4
    !
    interface Loopback0
    ip address 220.198.32.4 255.255.255.255
    !
    interface GigabitEthernet2
    ip address 123.103.15.6 255.255.255.252
    negotiation auto
    bfd interval 250 min_rx 250 multiplier 3
    !
    interface GigabitEthernet3
    ip address 123.103.15.10 255.255.255.252
    negotiation auto
    bfd interval 250 min_rx 250 multiplier 3
    !
    interface GigabitEthernet4
    ip address 123.103.15.18 255.255.255.252
    negotiation auto
    bfd interval 250 min_rx 250 multiplier 3
    !
    router bgp 9808
    bgp router-id 220.198.32.4
    bgp log-neighbor-changes
    bgp graceful-restart restart-time 120
    bgp graceful-restart stalepath-time 360
    bgp graceful-restart
    aggregate-address 43.180.0.0 255.255.0.0 suppress-map external-export
    aggregate-address 27.160.0.0 255.255.0.0 suppress-map external-export
    aggregate-address 14.102.0.0 255.255.0.0 suppress-map external-export
    neighbor 123.103.15.5 remote-as 4809
    neighbor 123.103.15.5 password cisco
    neighbor 123.103.15.5 fall-over bfd
    neighbor 123.103.15.9 remote-as 9308
    neighbor 123.103.15.9 password cisco
    neighbor 123.103.15.9 fall-over bfd
    neighbor 123.103.15.17 remote-as 4807
    neighbor 123.103.15.17 password cisco
    neighbor 123.103.15.17 fall-over bfd
    !
    ip prefix-list external-export seq 5 permit 14.102.0.0/16
    ip prefix-list external-export seq 10 permit 27.160.0.0/16
    ip prefix-list external-export seq 15 permit 43.180.0.0/16
    !
    route-map external-export permit 10
    match ip address prefix-list external-export
    !

    XRV5

    ==========================================================

    !
    hostname XRV5
    !
    interface Loopback0
    ip address 220.198.32.5 255.255.255.255
    ip router isis 100
    !
    interface GigabitEthernet0/0
    switchport access vlan 100
    switchport mode access
    media-type rj45
    negotiation auto
    !
    interface GigabitEthernet0/1
    switchport trunk encapsulation dot1q
    switchport mode trunk
    media-type rj45
    negotiation auto
    !
    interface GigabitEthernet0/2
    media-type rj45
    negotiation auto
    !
    interface GigabitEthernet0/3
    media-type rj45
    negotiation auto
    !
    interface Vlan1
    ip address 14.102.1.254 255.255.255.0
    !
    interface Vlan2
    ip address 14.102.128.254 255.255.255.0
    !
    interface Vlan3
    ip address 14.102.192.254 255.255.255.0
    !
    interface Vlan4
    ip address 14.102.255.254 255.255.255.0
    !
    interface Vlan5
    ip address 27.160.1.254 255.255.255.0
    !
    interface Vlan6
    ip address 27.160.128.254 255.255.255.0
    !
    interface Vlan7
    ip address 27.160.192.254 255.255.255.0
    !
    interface Vlan8
    ip address 27.160.255.254 255.255.255.0
    !
    interface Vlan9
    ip address 36.159.1.254 255.255.255.0
    !
    interface Vlan10
    ip address 36.159.128.254 255.255.255.0
    !
    interface Vlan11
    ip address 36.159.192.254 255.255.255.0
    !
    interface Vlan12
    ip address 36.159.255.254 255.255.255.0
    !
    interface Vlan13
    ip address 43.180.1.254 255.255.255.0
    !
    interface Vlan14
    ip address 43.180.128.254 255.255.255.0
    !
    interface Vlan15
    ip address 43.180.192.254 255.255.255.0
    !
    interface Vlan16
    ip address 43.180.255.254 255.255.255.0
    !
    interface Vlan100
    ip address 10.10.1.1 255.255.255.252
    ip router isis 100
    isis circuit-type level-2-only
    !
    router isis 100
    net 49.0000.2201.9832.5000.00
    is-type level-2-only
    !
    router bgp 4809
    bgp router-id 220.198.32.5
    bgp log-neighbor-changes
    bgp graceful-restart restart-time 120
    bgp graceful-restart stalepath-time 360
    bgp graceful-restart
    network 14.102.1.0 mask 255.255.255.0
    network 14.102.128.0 mask 255.255.255.0
    network 14.102.192.0 mask 255.255.255.0
    network 14.102.255.0 mask 255.255.255.0
    network 27.160.1.0 mask 255.255.255.0
    network 27.160.128.0 mask 255.255.255.0
    network 27.160.192.0 mask 255.255.255.0
    network 27.160.255.0 mask 255.255.255.0
    network 36.159.1.0 mask 255.255.255.0
    network 36.159.128.0 mask 255.255.255.0
    network 36.159.192.0 mask 255.255.255.0
    network 36.159.255.0 mask 255.255.255.0
    network 43.180.1.0 mask 255.255.255.0
    network 43.180.128.0 mask 255.255.255.0
    network 43.180.192.0 mask 255.255.255.0
    network 43.180.255.0 mask 255.255.255.0
    neighbor 220.198.32.1 remote-as 4809
    neighbor 220.198.32.1 password cisco
    neighbor 220.198.32.1 update-source Loopback0
    !

    手工汇总的注意事项:

    1.as-set 当BGP的路由汇总后,原路由的属性会丢失,比如as-path等,加as-set属性能够重新生成新的as-path

    2. advertise-map 只对 advertise-map 匹配的路由条目进行路由聚合

    3. attribute-map 聚合后清除原路由的属性

    4.suppress-map 设置为bgp路由条目为suppress,即该条目在BGP路由表中带s

  • 相关阅读:
    Unique constraint on single String column with GreenDao2
    Unique constraint on single String column with GreenDao
    将String转换成InputStream
    TypeError: unsupported operand type(s) for +: 'float' and 'str'
    Could not find private key file: AuthKey_NCD8233CS5.p8
    【Winows10】添加桌面小工具(在桌面显示时钟,日历)
    【Windows10】禁用开机启动项
    SQL如何查询出某一列中不同值出现的次数?
    使用 管理项目依赖
    Warning: Python 3.6 was not found on your system…
  • 原文地址:https://www.cnblogs.com/networking/p/10811510.html
Copyright © 2011-2022 走看看