frr集中式vxlan网关

leaf1


[root@kunpeng82 frr-stable-7.3]# vtysh Hello, this is FRRouting (version 7.3-MyOwnFRRVersion). Copyright 1996-2005 Kunihiro Ishiguro, et al. kunpeng82.bogon# config terminal kunpeng82.bogon(config)# router bgp 82 kunpeng82.bogon(config-router)# bgp router-id 10.10.16.82 kunpeng82.bogon(config-router)# bgp bestpath as-path multipath-relax kunpeng82.bogon(config-router)# neighbor fabric peer-group kunpeng82.bogon(config-router)# neighbor fabric remote-as external kunpeng82.bogon(config-router)# neighbor 10.10.18.195 peer-group fabric kunpeng82.bogon(config-router)# address-family l2vpn evpn kunpeng82.bogon(config-router-af)# neighbor fabric activate kunpeng82.bogon(config-router-af)# advertise-all-vni kunpeng82.bogon(config-router-af)# exit-address-family kunpeng82.bogon(config-router)# exit kunpeng82.bogon(config)# exit kunpeng82.bogon# write Note: this version of vtysh never writes vtysh.conf Building Configuration... Configuration saved to /etc/frr/zebra.conf Configuration saved to /etc/frr/bgpd.conf Configuration saved to /etc/frr/staticd.conf kunpeng82.bogon#

  

kunpeng82.bogon# show bgp l2vpn evpn 
No prefixes displayed, 0 exist
kunpeng82.bogon# how bgp neighbors  
% Unknown command: how bgp neighbors  
kunpeng82.bogon# show bgp neighbors  
BGP neighbor is 10.10.18.195, remote AS 0, local AS 82, external link
 Member of peer-group fabric for session parameters
  BGP version 4, remote router ID 0.0.0.0, local router ID 10.10.16.82
  BGP state = Active
  Last read 00:15:34, Last write never
  Hold time is 180, keepalive interval is 60 seconds
  Message statistics:
    Inq depth is 0
    Outq depth is 0
                         Sent       Rcvd
    Opens:                  0          0
    Notifications:          0          0
    Updates:                0          0
    Keepalives:             0          0
    Route Refresh:          0          0
    Capability:             0          0
    Total:                  0          0
  Minimum time between advertisement runs is 0 seconds

 For address family: IPv4 Unicast
  fabric peer-group member
  Not part of any update group
  Community attribute sent to this neighbor(all)
  0 accepted prefixes

 For address family: L2VPN EVPN
  fabric peer-group member
  Not part of any update group
  NEXT_HOP is propagated unchanged to this neighbor
  Community attribute sent to this neighbor(all)
  advertise-all-vni
  0 accepted prefixes

  Connections established 0; dropped 0
  Last reset 00:15:34,   Waiting for NHT
BGP Connect Retry Timer in Seconds: 120
Next connect timer due in 27 seconds
Read thread: off  Write thread: off  FD used: -1

 leaf2

[root@localhost frr-stable-7.3]# vtysh

Hello, this is FRRouting (version 7.3-MyOwnFRRVersion).
Copyright 1996-2005 Kunihiro Ishiguro, et al.

localhost.localdomain# router bgp  81
% Unknown command: router bgp  81
localhost.localdomain# configure terminal
localhost.localdomain(config)# router bgp  81
localhost.localdomain(config-router)# bgp router-id 10.10.16.81
localhost.localdomain(config-router)# bgp bestpath as-path multipath-relax
localhost.localdomain(config-router)# neighbor fabric peer-group
localhost.localdomain(config-router)# neighbor fabric remote-as external
localhost.localdomain(config-router)# neighbor 10.10.18.195 peer-group fabric
localhost.localdomain(config-router)# address-family l2vpn evpn
localhost.localdomain(config-router-af)# neighbor fabric activate
localhost.localdomain(config-router-af)# advertise-all-vni
localhost.localdomain(config-router-af)#  exit-address-family
localhost.localdomain(config-router)# exit
localhost.localdomain(config)# wxit
% Unknown command: wxit
localhost.localdomain(config)# exit
localhost.localdomain# write
Note: this version of vtysh never writes vtysh.conf
Building Configuration...
Configuration saved to /etc/frr/zebra.conf
Configuration saved to /etc/frr/bgpd.conf
Configuration saved to /etc/frr/staticd.conf
localhost.localdomain# show bgp neighbor
BGP neighbor is 10.10.18.195, remote AS 0, local AS 81, external link
 Member of peer-group fabric for session parameters
  BGP version 4, remote router ID 0.0.0.0, local router ID 10.10.16.81
  BGP state = Active
  Last read 00:01:02, Last write never
  Hold time is 180, keepalive interval is 60 seconds
  Message statistics:
    Inq depth is 0
    Outq depth is 0
                         Sent       Rcvd
    Opens:                  0          0
    Notifications:          0          0
    Updates:                0          0
    Keepalives:             0          0
    Route Refresh:          0          0
    Capability:             0          0
    Total:                  0          0
  Minimum time between advertisement runs is 0 seconds

 For address family: IPv4 Unicast
  fabric peer-group member
  Not part of any update group
  Community attribute sent to this neighbor(all)
  0 accepted prefixes

 For address family: L2VPN EVPN
  fabric peer-group member
  Not part of any update group
  NEXT_HOP is propagated unchanged to this neighbor
  Community attribute sent to this neighbor(all)
  advertise-all-vni
  0 accepted prefixes

  Connections established 0; dropped 0
  Last reset 00:01:02,   Waiting for NHT
BGP Connect Retry Timer in Seconds: 120
Next connect timer due in 59 seconds
Read thread: off  Write thread: off  FD used: -1


localhost.localdomain# show bgp l2vpn evpn 
No prefixes displayed, 0 exist
localhost.localdomain# 

spine

host-10-10-18-195# show bgp neighbor
BGP neighbor is 10.10.16.81, remote AS 0, local AS 195, external link
 Member of peer-group fabric for session parameters
  BGP version 4, remote router ID 0.0.0.0, local router ID 10.10.18.195
  BGP state = Active
  Last read 14:31:13, Last write never
  Hold time is 180, keepalive interval is 60 seconds
  Message statistics:
    Inq depth is 0
    Outq depth is 0
                         Sent       Rcvd
    Opens:                  0          0
    Notifications:          0          0
    Updates:                0          0
    Keepalives:             0          0
    Route Refresh:          0          0
    Capability:             0          0
    Total:                  0          0
  Minimum time between advertisement runs is 0 seconds

 For address family: IPv4 Unicast
  fabric peer-group member
  Not part of any update group
  Community attribute sent to this neighbor(all)
  0 accepted prefixes

 For address family: L2VPN EVPN
  fabric peer-group member
  Not part of any update group
  NEXT_HOP is propagated unchanged to this neighbor
  Community attribute sent to this neighbor(all)
  0 accepted prefixes

  Connections established 0; dropped 0
  Last reset 14:31:13,   Waiting for NHT
BGP Connect Retry Timer in Seconds: 120
Next connect timer due in 48 seconds
Read thread: off  Write thread: off  FD used: -1

BGP neighbor is 10.10.16.82, remote AS 0, local AS 195, external link
 Member of peer-group fabric for session parameters
  BGP version 4, remote router ID 0.0.0.0, local router ID 10.10.18.195
  BGP state = Active
  Last read 14:31:08, Last write never
  Hold time is 180, keepalive interval is 60 seconds
  Message statistics:
    Inq depth is 0
    Outq depth is 0
                         Sent       Rcvd
    Opens:                  0          0
    Notifications:          0          0
    Updates:                0          0
    Keepalives:             0          0
    Route Refresh:          0          0
    Capability:             0          0
    Total:                  0          0
  Minimum time between advertisement runs is 0 seconds

 For address family: IPv4 Unicast
  fabric peer-group member
  Not part of any update group
  Community attribute sent to this neighbor(all)
  0 accepted prefixes

 For address family: L2VPN EVPN
  fabric peer-group member
  Not part of any update group
  NEXT_HOP is propagated unchanged to this neighbor
  Community attribute sent to this neighbor(all)
  0 accepted prefixes

  Connections established 0; dropped 0
  Last reset 14:31:08,   Waiting for NHT
BGP Connect Retry Timer in Seconds: 120
Next connect timer due in 53 seconds
Read thread: off  Write thread: off  FD used: -1

  

猜你喜欢

转载自www.cnblogs.com/dream397/p/12330403.html