Skip to main content
  • Place orders quickly and easily
  • View orders and track your shipping status
  • Enjoy members-only rewards and discounts
  • Create and access a list of your products
  • Manage your Dell EMC sites, products, and product-level contacts using Company Administration.

Dell EMC SmartFabric OS10 User Guide Release 10.5.0

PDF

配置 BFD for BGP

OS10 使用默认 VRF 支持 IPv4 或 IPv6 BGP 邻居的 BFD 会话。配置 BFD for BGP 时,您可以使用 BGP 查找到的所有 BGP 邻居或指定的邻居启用 BFD 会话。

  1. 在 CONFIGURATION 模式下,配置 BFD 会话参数并在所有接口上全局启用 BFD(如在全局配置 BFD 中所述)。
    bfd interval milliseconds min_rx milliseconds multiplier number role {active | passive}
    bfd enable
  2. 在 CONFIGURATION 模式下输入远程 BFD 对等节点的 AS 编号,从 1 到 65535 适用于 2 字节 AS 编号,从 1 到 4294967295 适用于 4 字节 AS 编号。每个系统仅支持一个 AS 编号。如果输入一个 4 字节 AS 数字,则 4 字节 AS 支持自动启用。
    router bgp as-number
  3. 在 ROUTER-BGP 模式下输入 BFD 对等节点的 IP 地址。在 ROUTER-NEIGHBOR 模式下启用 BFD 会话和 BGP 链路。使用在步骤 1 中配置的全局 BFD 会话参数。
    neighbor ip-address
      bfd
      no shutdown

    在 ROUTER-BGP 模式下使用 BGP 发现的所有邻居配置 BFD 会话。您配置的 BFD 会话参数将覆盖在步骤 1 中配置的全局会话参数。
    bfd all-neighbors [interval milliseconds min_rx milliseconds multiplier number role {active | passive}]
    • interval milliseconds — 输入将控制数据包发送到 BFD 对等方的时间间隔,从 100 到 1000;默认值为 200。Dell EMC 建议使用超过 100 毫秒的时间。
    • min_rx milliseconds — 输入从 BFD 对等方接收控制数据包的最长等待时间,从 100 到 1000;默认值为 200。Dell EMC 建议使用超过 100 毫秒的时间。
    • multiplier number — 输入在将会话状态更改为 Down 之前不能从 BFD 对等方收到的最大连续数据包数;从 3 到 50;默认值为 3。
    • role {active | passive} — 如果路由器启动 BFD 会话,则输入 active。两个 BFD 对等方可以同时处于活动状态。如果路由器未启动 BFD 会话,并且仅响应来自活动 BFD 的请求以初始化会话,则输入 passive。默认值为 active
    要忽略为指定邻居配置的 bfd all-neighbors 设置,请在 ROUTER-NEIGHBOR 模式下输入 bfd disable 命令。

    在 ROUTER-BGP 模式下输入带有邻居名称的 BGP 模板。在 ROUTER-TEMPLATE 模式下使用继承模板的所有邻居配置 BFD 会话。有关如何使用 BGP 模板的详细信息,请参阅对等模板。使用在步骤 1 中配置的全局 BFD 会话参数。
    template template-name
      bfd
      no shutdown
  4. 在 EXEC 模式下验证 BFD for BGP 配置。
    show bfd neighbors [detail]

BFD for BGP 所有邻居配置

OS10(conf)# bfd interval 200 min_rx 200 multiplier 6 role active
OS10(conf)# bfd enable
OS10(conf)# router bgp 4
OS10(config-router-bgp-4)# bfd all-neighbors interval 200 min_rx 200 multiplier 6 role active

BFD for BGP 单邻居配置

OS10(conf)# bfd interval 200 min_rx 200 multiplier 6 role active
OS10(conf)# bfd enable
OS10(conf)# router bgp 1
OS10(config-router-bgp-1)# neighbor 150.150.1.1 
OS10(config-router-neighbor)# bfd
OS10(config-router-neighbor)# no shutdown

BFD for BGP 模板配置

OS10(config)# router bgp 300
OS10(config-router-bgp-300)# template ebgppg
OS10(config-router-template)# bfd
OS10(config-router-template)# exit
OS10(config-router-bgp-300)# neighbor 3.1.1.1
OS10(config-router-neighbor)# inherit template ebgppg
OS10(config-router-neighbor)# no shutdown

显示 BFD 操作

OS10# show bfd neighbors
* - Active session role
----------------------------------------------------------------------------
LocalAddr      RemoteAddr   Interface  State Rx-int Tx-int Mult VRF  Clients
----------------------------------------------------------------------------
* 150.150.1.2  150.150.1.1  vlan10     up    1000   1000   5   default  bgp
OS10# show bfd neighbors detail
Session Discriminator: 1
Neighbor Discriminator: 2
Local Addr: 150.150.1.2
Local MAC Addr: 90:b1:1c:f4:ab:fd
Remote Addr: 150.150.1.1
Remote MAC Addr: 90:b1:1c:f4:a4:d4
Interface: vlan10
State: up
Configured parameters:
TX: 1000ms, RX: 1000ms, Multiplier: 5
Actual parameters:
TX: 1000ms, RX: 1000ms, Multiplier: 5
Neighbor parameters:
TX: 200ms, RX: 200ms, Multiplier: 49
Role: active
VRF: default
Client Registered: bgp
Uptime: 01:58:09
Statistics:
  Number of packets received from neighbor: 7138
  Number of packets sent to neighbor: 7138

验证 BFD for BGP

OS10(config-router-bgp-101)# show ip bgp summary 
BGP router identifier 30.1.1.2 local AS number 101
Global BFD is enabled
Neighbor   AS    MsgRcvd    MsgSent    Up/Down    State/Pfx      
20.1.1.1   101   781        777        11:16:13     0         
30.1.1.1   101   787        779        11:15:35     0         

OS10(config-router-bgp-101)# show ip bgp neighbors 
BGP neighbor is 20.1.1.1, remote AS 101, local AS 101  internal link
  
  BGP version 4, remote router ID 30.1.1.1
  BGP state ESTABLISHED, in this state for 11:19:01
  Last read 00:24:31 seconds
  Hold time is 180, keepalive interval is 60 seconds
  Configured hold time is 180, keepalive interval is 60 seconds
  Fall-over disabled
  Neighbor is using Global level BFD Configuration
  
  Received 784 messages
    1 opens, 0 notifications, 0 updates
    783 keepalives, 0 route refresh requests
  Sent 780 messages
    2 opens, 0 notifications, 0 updates
    778 keepalives, 0 route refresh requests
  Minimum time between advertisement runs is 30 seconds
  Minimum time before advertisements start is 0 seconds
  Capabilities received from neighbor for IPv4 Unicast:
    MULTIPROTO_EXT(1)
    ROUTE_REFRESH(2)
    CISCO_ROUTE_REFRESH(128)
    4_OCTET_AS(65)
  Capabilities advertised to neighbor for IPv4 Unicast:
    MULTIPROTO_EXT(1)
    ROUTE_REFRESH(2)
    CISCO_ROUTE_REFRESH(128)
    4_OCTET_AS(65)
  Prefixes accepted 0, Prefixes advertised 0
  Connections established 1; dropped 0
  Last reset never
  For address family: IPv4 Unicast
    Allow local AS number 0 times in AS-PATH attribute
   Prefixes ignored due to:
    Martian address  0, Our own AS in AS-PATH 0
    Invalid Nexthop  0, Invalid AS-PATH length 0
    Wellknown community 0, Locally originated 0
  
  Local host: 20.1.1.2, Local port: 179
  Foreign host: 20.1.1.1, Foreign port: 58248

Rate this content

Accurate
Useful
Easy to understand
Was this article helpful?
0/3000 characters
  Please provide ratings (1-5 stars).
  Please provide ratings (1-5 stars).
  Please provide ratings (1-5 stars).
  Please select whether the article was helpful or not.
  Comments cannot contain these special characters: <>()\