Cisco XR BGP 邻居组

网络工程 思科 bgp cisco-ios-xr
2021-07-19 14:24:40

我在理解 Cisco IOS XR 中的邻居组时遇到问题。我将在下面的例子中描述它:

router bgp 10429 
 bfd minimum-interval 300
 !
 neighbor-group IBGP
  remote-as 10429
  address-family ipv4 unicast
   route-policy pass-all in
   route-policy pass-all out
  !
  address-family l2vpn vpls-vpws
   route-policy block-all in
   route-policy block-all out
  !
 !
 neighbor 187.100.0.89
  remote-as 65200
  use neighbor-group IBGP
  description TEST
  address-family ipv4 unicast
 !
!

1.remote-as 会被neighbor-group 覆盖吗?
2. 邻居是否因为包含“address-family ipv4 unicast”行而继承pass-all in和pass-all out策略?
3. 邻居是否继承了“address-family l2vpn vpls-vpws”下的策略?

以我目前的理解:
1. 否
2. 是
3. 否,因为邻居下没有“address-family l2vpn vpls-vpws”行。

1个回答

以下是我的回答:

  1. 不,remote-as 值(邻居 187.100.0.89)保持 65200 不变。
  2. 是的,即使您没有“address-family ipv4 单播”。
  3. 是的,邻居继承了“address-family l2vpn vpls-vpws”下的策略。

您可以使用以下命令验证所有答案:

#show bgp neighbors 187.100.0.89 configuration    

  neighbor 187.100.0.89
     remote-as 65200             []
     description TEST            []
     address-family IPv4 Unicast []
      policy pass-all in         [n:IBGP]
      policy pass-all out        [n:IBGP]
     address-family L2VPN VPLS   [n:IBGP]
      policy block-all in        [n:IBGP]
      policy block-all out       [n:IBGP]

#show bgp neighbors 187.100.0.89 inheritance

  Session:      n:IBGP
  IPv4 Unicast: n:IBGP
  L2VPN VPLS:   n:IBGP

#show bgp neighbors  187.100.0.89

  BGP neighbor is 187.100.0.89
  Remote AS 65200, local AS 10429, external link
  Description: TEST
  ...
  For Address Family: IPv4 Unicast
  BGP neighbor version 0
  Update group: 0.1 Filter-group: 0.0  No Refresh request being processed
  Route refresh request: received 0, sent 0
  Policy for incoming advertisements is pass-all
  Policy for outgoing advertisements is pass-all
  ...
  For Address Family: L2VPN VPLS
  BGP neighbor version 0
  Update group: 0.1 Filter-group: 0.0  No Refresh request being processed
  Community attribute sent to this neighbor
  Extended community attribute sent to this neighbor
  Route refresh request: received 0, sent 0
  Policy for incoming advertisements is block-all
  Policy for outgoing advertisements is block-all

我希望它有用并回答您的问题。请查看 Cisco 文档,了解 IOS-XR 上 BGP 的模板继承规则。