EVPN VPWS Operational Commands

EVPN VPWS Show Commands

The following show commands display the EVPN VPWS-related information.

BGP Summary

This command displays BGP protocol parameters like attributes or timers that are generic to the BGP instance.

Syntax:

show bgp summary <option>

Attribute Description

Option

Description

-

Without any option, the command displays the information for all instances.

Example: BGP summary for instance evpn-vpws-vrf1

supervisor@rtbrick: op> show bgp summary instance evpn-vpws-vrf1
Instance: evpn-vpws-vrf1
  General information
    Hostname: , Domain name:
    Local AS: 65006, Version: 4
    Local preference: 100, eBGP Protocol preference: 20, iBGP Protocol preference: 200
    Router ID: 192.168.6.10, Cluster ID: 192.168.6.10
  Capabilities
    Route refresh: True, AS4: True, Graceful restart: False, L2VPN EVPN-VPWS:True
  Best route selection
    Always compare MED: False, Ignore as path: False
    Ignore local preference: False, Ignore origin: False
    Ignore MED: False, Ignore route source: False
    Ignore router ID: False, Ignore uptime: True
    Ignore cluster length: False, Ignore peer IP: False
    Route select parameter: 0
  Timers
    Connect retry: 30s, Keepalive: 30s, Holdtime: 90s
  Statistics
    Peers configured: 0, Peers auto discovery: 0
      Peers in idle          : 0
      Peers in connect       : 0
      Peers in active        : 0
      Peers in opensent      : 0
      Peers in openconfirm   : 0
      Peers in established   : 0

BGP Peer

The 'show bgp peer' commands display information on BGP peers.

Syntax:

show bgp peer <option>

Option Description

-

Without any option, the commands display all BGP peers in all instances in a summary table format.

detail

Detailed information on all BGP peers in all instances in a list view.

<peer-name>

Detailed information on the peer with the given name.

address <peer-address>

Detailed information on the peer with the given IP address.

instance <instance-name>

Summary of all BGP peers in the given instance.

instance <instance-name> detail

Detailed information on all BGP peers in the given instance.

instance <instance-name> detail <peer-name>

Detailed information on the peer with the given name in the given instance.

instance <instance-name> detail address <peer-address>

Detailed information on the peer with the given IP address in the given instance.

statistics

Received and sent BGP prefixes per AFI/SAFI for all peers in all instances.

statistics peer <peer-name>

Received and sent BGP prefixes per AFI/SAFI for the peer with the given name.

statistics peer address <peer-address>

Received and sent BGP prefixes per AFI/SAFI for the peer with the given IP address.

statistics instance <instance-name> peer <peer-name>

Received and sent BGP prefixes per AFI/SAFI for the peer with the given name in the given instance.

statistics instance <instance-name> peer address <peer-address>

Received and sent BGP prefixes per AFI/SAFI for the peer with the given IP address in the given instance.

Example 1: BGP Peer Information for instance default

supervisor@rtbrick: op> show bgp peer instance default
Instance: default
  Peer     Remote AS    State         Up/Down Time    PfxRcvd         PfxSent
  spine1   4200000000   Established   0d:00h:42m:53s  5               14
supervisor@rtbrick: op>

Example 2: Detailed view of BGP Peer Information

supervisor@rtbrick: op> show bgp peer detail
Peer: spine1, Peer IP: fe80::9a19:2cff:fe99:4701, Remote AS: 4200000000, Local: fe80::9a19:2cff:fe36:3e03, Local AS: 4200000004, Any AS: False
  Type: ebgp, State: Established, Up/Down Time: 0d:01h:00m:40s
  Discovered on interface: ifl-0/0/2/1
  Last transition: Thu Apr 18 04:50:56 GMT +0000 2024, Flap count: 0
  Peer ID        : 192.1.0.1, Local ID  : 192.1.0.4
  Instance       : default, Peer group: spine
  6PE enabled    : False
  Timer values:
    Peer keepalive : 30s, Local keepalive: 30s
    Peer holddown  : 90s, Local holddown : 90s
    Connect retry  : 30s
  Timers:
    Connect retry timer : 0s
    keepalive timer     : expires in 21s 796304us
    Holddown timer      : expires in 1m 13s 560627us
  NLRIs:
    Sent           : ['l2vpn-evpn', 'ipv4-unicast', 'ipv6-unicast', 'ipv4-vpn-unicast', 'ipv6-vpn-unicast', 'ipv4-vpn-multicast', 'l2vpn-vpls', 'ipv4-labeled-unicast', 'ipv6-labeled-unicast']
    Received       : ['l2vpn-evpn', 'ipv4-unicast', 'ipv6-unicast', 'ipv4-vpn-unicast', 'ipv6-vpn-unicast', 'ipv4-vpn-multicast', 'l2vpn-vpls', 'ipv4-labeled-unicast', 'ipv6-labeled-unicast']
    Negotiated     : ['l2vpn-evpn', 'ipv4-unicast', 'ipv6-unicast', 'ipv4-vpn-unicast', 'ipv6-vpn-unicast', 'ipv4-vpn-multicast', 'l2vpn-vpls', 'ipv4-labeled-unicast', 'ipv6-labeled-unicast']
  Capabilities:
    Addpath sent                  : None
    Addpath received              : None
    Addpath negotiated            : None
    Extended nexthop sent         : ['ipv4-unicast', 'ipv4-vpn-unicast', 'ipv4-vpn-multicast', 'ipv4-labeled-unicast']
    Extended nexthop received     : ['ipv4-unicast', 'ipv4-labeled-unicast', 'ipv4-vpn-multicast', 'ipv4-vpn-unicast']
    Extended nexthop negotiated   : ['ipv4-unicast', 'ipv4-labeled-unicast', 'ipv4-vpn-multicast', 'ipv4-vpn-unicast']
    Capabilities:
      Feature                      Sent            Received        Negotiated
      Route refresh                True            True            True
      4 byte AS                    True            True            True
      Graceful restart             False           False           False
      Link local only              False           False           False
  Prefix Limit:
  End of RIB:
    Address family                 Sent                                Received
    IPv4 unicast                   Thu Apr 18 04:50:59 GMT +0000 2024  Thu Apr 18 04:50:59 GMT +0000 2024
    IPv4 labeled-unicast           Thu Apr 18 04:50:59 GMT +0000 2024  Thu Apr 18 04:50:59 GMT +0000 2024
    IPv6 unicast                   Thu Apr 18 04:50:59 GMT +0000 2024  Thu Apr 18 04:50:59 GMT +0000 2024
    IPv6 labeled-unicast           Thu Apr 18 04:50:59 GMT +0000 2024  Thu Apr 18 04:50:59 GMT +0000 2024
    IPv4 VPN-unicast               Thu Apr 18 04:50:59 GMT +0000 2024  Thu Apr 18 04:50:59 GMT +0000 2024
    IPv6 VPN-unicast               Thu Apr 18 04:50:59 GMT +0000 2024  Thu Apr 18 04:50:59 GMT +0000 2024
    IPv4 VPN-multicast             Thu Apr 18 04:50:59 GMT +0000 2024  Thu Apr 18 04:50:59 GMT +0000 2024
    L2VPN VPLS                     Thu Apr 18 04:50:59 GMT +0000 2024  Thu Apr 18 04:50:59 GMT +0000 2024
    L2VPN EVPN                     Thu Apr 18 04:50:59 GMT +0000 2024  Thu Apr 18 04:50:59 GMT +0000 2024
  Message stats:
    Session stats:
      Direction   Open         Update       Keepalive    Notify       Route refresh
      Input       0            0            72           0            0
      Output      0            0            71           0            0
    Total stats:
      Input       0            0            72           0            0
      Output      0            0            71           0            0
    Route stats:
      Address family                 Received     Sent         Prefix limit Idle timeout
      IPv4 unicast                   0            0            0            0
      IPv4 labeled-unicast           0            0            0            0
      IPv6 unicast                   0            0            0            0
      IPv6 labeled-unicast           0            0            0            0
      IPv4 VPN-unicast               0            0            0            0
      IPv6 VPN-unicast               0            0            0            0
      IPv4 VPN-multicast             0            0            0            0
      L2VPN VPLS                     0            0            0            0
      L2VPN EVPN                     0            0            0            0
<...>

Example 3: BGP Peer Statistics for a specific peer

supervisor@rtbrick: op> show bgp peer statistics peer address fe80::781a:c6ff:fec0:1
Instance: default
  Peer                           AFI     SAFI               PfxRcvd    PfxSent
  spine1                         ipv4    unicast            0          0
                                 ipv4    labeled-unicast    0          0
                                 ipv6    unicast            1          4
                                 ipv6    labeled-unicast    1          4
                                 ipv4    vpn-unicast        0          0
                                 ipv6    vpn-unicast        0          0
                                 ipv4    multicast          0          0
                                 ipv4    vpn-multicast      0          0
                                 l2vpn   evpn               3          6

BGP RIB-in

This command displays the received routes.

Syntax:

show bgp rib-in <option>

Option Description

-

Without any option, the command displays information on the received BGP routing table on all instances in a summary table format.

<afi>

BGP routing table summary for the given address family (AFI), all sub-address families and all instances. Supported AFI values are 'ipv4', 'ipv6' and l2vpn.

<afi> <safi>

BGP routing table summary for the given address family (AFI) and sub-address family (SAFI), and all instances. Supported SAFI values are evpn, 'labeled-unicast', 'unicast', 'vpn-multicast', 'vpn-unicast', and evpn-vpws.

<afi> <safi> detail

Detailed list view of the BGP routing table for the given address family (AFI) and sub-address family (SAFI), and all instances.

<afi> <safi> <prefix>

BGP routing table entry for the given prefix and all instances.

<afi> <safi> instance <instance-name>

BGP routing table summary for the given AFI, SAFI, and instance.

<afi> <safi> instance <instance-name> detail

Detailed list view of BGP routing table for the given AFI, SAFI, and instance.

<afi> <safi> instance <instance-name> <prefix>

BGP routing table entry for the given prefix and instance.

<afi> <safi> peer <name> / peer address <ip>

Peer name or address

Example 1: Summary view of the BGP rib-in where you can find received information for the EVPN VPWS instances like evpn-vpws-vrf1, evpn-vpws-vrf2, and evpn-vpws-vrf3.

supervisor@rtbrick: op> show bgp rib-in
Instance: default, AFI: ipv6, SAFI: unicast
 Hostname: Local, Peer IP: ::, Source IP: None, Received routes: 3
    Prefix                                        Next Hop                            MED        Local Preference  AS Path    Status
    192:1::3/128                                                                      0          100               -          Valid
    192:1::5/128                                                                      0          100               -          Valid
    192:1::6/128                                                                      0          100               -          Valid
 Hostname: spine1, Peer IP: fe80::781a:c6ff:fec0:1, Source IP: fe80::7857:d6ff:fec0:0, Received routes: 1
    Prefix                                        Next Hop                            MED        Local Preference  AS Path    Status
    192:1::1/128                                  fe80::781a:c6ff:fec0:1              0          -                 4200000000 Valid
Instance: default, AFI: ipv6, SAFI: labeled-unicast
 Hostname: Local, Peer IP: ::, Source IP: None, Received routes: 3
    Prefix                                        Next Hop                            MED        Local Preference  AS Path    Status
    192:1::3/128                                                                      0          100               -          Valid
    192:1::5/128                                                                      0          100               -          Valid
    192:1::6/128                                                                      0          100               -          Valid
 Hostname: spine1, Peer IP: fe80::781a:c6ff:fec0:1, Source IP: fe80::7857:d6ff:fec0:0, Received routes: 1
    Prefix                                        Next Hop                            MED        Local Preference  AS Path    Status
    192:1::1/128                                  fe80::781a:c6ff:fec0:1              0          -                 4200000000 Valid
Instance: evpn-vpws-vrf1, AFI: l2vpn, SAFI: evpn-vpws
 Hostname: Local, Peer IP: 0.0.0.0, Source IP: None, Received routes: 1
    Prefix                                        Next Hop                            MED        Local Preference  AS Path    Status
    00.00.00.00.00.00.00.00.00.00:100/112                                             0          100               -          Valid
Instance: evpn-vpws-vrf2, AFI: l2vpn, SAFI: evpn-vpws
 Hostname: Local, Peer IP: 0.0.0.0, Source IP: None, Received routes: 1
    Prefix                                        Next Hop                            MED        Local Preference  AS Path    Status
    00.00.00.00.00.00.00.00.00.00:110/112                                             0          100               -          Valid
Instance: evpn-vpws-vrf3, AFI: l2vpn, SAFI: evpn-vpws
 Hostname: Local, Peer IP: 0.0.0.0, Source IP: None, Received routes: 1
    Prefix                                        Next Hop                            MED        Local Preference  AS Path    Status
    00.00.00.00.00.00.00.00.00.00:200/112                                             0          100               -          Valid
Instance: default, AFI: l2vpn, SAFI: evpn
 Hostname: spine1, Peer IP: fe80::781a:c6ff:fec0:1, Source IP: fe80::7857:d6ff:fec0:0, Received routes: 3
    Prefix                                        Next Hop                            MED        Local Preference  AS Path    Status
    00.00.00.00.00.00.00.00.00.00:101/112         192:1::1                            0          -                 4200000000 Valid
    00.00.00.00.00.00.00.00.00.00:111/112         192:1::1                            0          -                 4200000000 Valid
    00.00.00.00.00.00.00.00.00.00:201/112         192:1::1                            0          -                 4200000000 Valid

Example 2: Summary view of the BGP rib-in where you can find received information for address family l2vpn vpws.

supervisor@rtbrick: op> show bgp rib-in l2vpn evpn
Instance: default, AFI: l2vpn, SAFI: evpn
 Hostname: spine1, Peer IP: fe80::9a19:2cff:fe99:4701, Source IP: fe80::9a19:2cff:fe36:3e03, Received routes: 3
    Prefix                                        Next Hop                            MED        Local Preference  AS Path    Status
    00.00.00.00.00.00.00.00.00.00:101/112         192:1::1                            0          -                 4200000000, 4200000003 Valid
    00.00.00.00.00.00.00.00.00.00:111/112         192:1::1                            0          -                 4200000000, 4200000003 Valid
    00.00.00.00.00.00.00.00.00.00:201/112         192:1::1                            0          -                 4200000000, 4200000003 Valid

BGP FIB

The 'show bgp fib' commands display the BGP forwarding table.

Syntax:

show bgp fib <option>

Option Description

-

Without any option, the commands display the BGP forwarding table for all address families and all instances in a summary table format.

<afi>

BGP forwarding table summary for the given address family (AFI), all sub-address families and all instances. Supported AFI values are l2vpn, 'ipv4' and 'ipv6'.

<afi> <safi>

BGP forwarding table summary for the given address family (AFI) and sub-address family (SAFI), and all instances. Supported SAFI values are 'unicast', 'labeled-unicast', 'vpn-multicast', 'vpn-unicast', and evpn-vpws.

<afi> <safi> detail

Detailed list view of the BGP forwarding table for the given address family (AFI) and sub-address family (SAFI), and all instances.

<afi> <safi> <prefix>

BGP forwarding table entry for the given prefix and all instances.

<afi> <safi> instance <instance-name>

BGP forwarding table summary for the given AFI, SAFI, and instance.

<afi> <safi> instance <instance-name> detail

Detailed list view of BGP forwarding table for the given AFI, SAFI, and instance.

<afi> <safi> instance <instance-name> <prefix>

BGP forwarding table entry for the given prefix and instance.

supervisor@rtbrick: op> show bgp fib
Instance: default, AFI: ipv6, SAFI: unicast
  Prefix                                        Preference      Out Label            Next Hop
  192:1::1/128                                  20              -                    fe80::781a:c6ff:fec0:1
Instance: default, AFI: ipv6, SAFI: labeled-unicast
  Prefix                                        Preference      Out Label            Next Hop
  192:1::1/128                                  20              -                    fe80::781a:c6ff:fec0:1
Instance: evpn-vpws-vrf1, AFI: l2vpn, SAFI: evpn-vpws
  Prefix                                        Preference      Out Label            Next Hop
  00.00.00.00.00.00.00.00.00.00:101/112         20              20004,bos:1          192:1::1
Instance: evpn-vpws-vrf2, AFI: l2vpn, SAFI: evpn-vpws
  Prefix                                        Preference      Out Label            Next Hop
  00.00.00.00.00.00.00.00.00.00:111/112         20              20005,bos:1          192:1::1
Instance: evpn-vpws-vrf3, AFI: l2vpn, SAFI: evpn-vpws
  Prefix                                        Preference      Out Label            Next Hop
  00.00.00.00.00.00.00.00.00.00:201/112         20              20006,bos:1          192:1::1

BGP RIB-out

This command displays the routes that were advertised to peers.

Syntax:

show bgp rib-out <option>

Option Description

-

Without any option, the command displays advertised BGP routes for all instances.

<afi>

BGP routing table summary for the given address family (AFI), all sub-address families and all instances. Supported AFI values are l2vpn, 'ipv4' and 'ipv6'.

<afi> <safi>

BGP routing table summary for the given address family (AFI) and sub-address family (SAFI), and all instances. Supported SAFI values are evpn, 'unicast', 'labeled-unicast', 'multicast', and 'vpn-unicast'.

<afi> <safi> detail

Detailed list view of the BGP routing table for the given address family (AFI) and sub-address family (SAFI), and all instances.

<afi> <safi> <prefix>

BGP routing table entry for the given prefix and all instances.

<afi> <safi> instance <instance-name>

BGP routing table summary for the given AFI, SAFI, and instance.

<afi> <safi> instance <instance-name> detail

Detailed list view of BGP routing table for the given AFI, SAFI, and instance.

<afi> <safi> instance <instance-name> <prefix>

BGP routing table entry for the given prefix and instance.

<afi> <safi> peer <name> / peer address <ip>

Peer name or address

Example 1: Summary view of the routes advertised to a peer

supervisor@rtbrick: op> show bgp rib-out
Instance: default, AFI: ipv6, SAFI: unicast
  Peer-group: spine, Sent routes: 4
    Prefix                                        MED             Local Preference  Origin          Next Hop        AS Path
    192:1::1/128                                  0               -                 Incomplete      -               4200000003, 4200000000
    192:1::3/128                                  0               -                 Incomplete      -               4200000003
    192:1::5/128                                  0               -                 Incomplete      -               4200000003
    192:1::6/128                                  0               -                 Incomplete      -               4200000003
Instance: default, AFI: ipv6, SAFI: labeled-unicast
  Peer-group: spine, Sent routes: 4
    Prefix                                        MED             Local Preference  Origin          Next Hop        AS Path
    192:1::1/128                                  0               -                 Incomplete      -               4200000003, 4200000000
    192:1::3/128                                  0               -                 Incomplete      -               4200000003
    192:1::5/128                                  0               -                 Incomplete      -               4200000003
    192:1::6/128                                  0               -                 Incomplete      -               4200000003
#Instance: default, AFI: l2vpn, SAFI: evpn
#  Peer-group: spine, Sent routes: 6
    Prefix                                        MED             Local Preference  Origin          Next Hop        AS Path
    00.00.00.00.00.00.00.00.00.00:100/112         0               -                 Incomplete      192:1::3        4200000003
    00.00.00.00.00.00.00.00.00.00:101/112         0               -                 Incomplete      192:1::3        4200000003, 4200000000
    00.00.00.00.00.00.00.00.00.00:110/112         0               -                 Incomplete      192:1::3        4200000003
    00.00.00.00.00.00.00.00.00.00:111/112         0               -                 Incomplete      192:1::3        4200000003, 4200000000
    00.00.00.00.00.00.00.00.00.00:200/112         0               -                 Incomplete      192:1::3        4200000003
    00.00.00.00.00.00.00.00.00.00:201/112         0               -                 Incomplete      192:1::3        4200000003, 4200000000

BGP L2VPN

This command displays the BGP L2VPN information.

Syntax:

show bgp l2vpn <option>

Option Description

pseudowire

Displays pseudowire information for all instances.

pseudowire instance <name>

Displays pseudowire information for the specified instance.

Example: Display L2VPN pseudowire information for instance evpn-vpws-vrf1

supervisor@rtbrick: op> show bgp l2vpn pseudowire instance evpn-vpws-vrf1
   Instance: evpn-vpws-vrf1 AFI: l2vpn, SAFI: evpn-vpws
   Route Distinguisher: 192.168.6.10:65006
   Number of local interfaces: 1
    Interface name  Prefix                                     Status         Local SID   Remote SID   Pop Label            Push Label
    ifl-0/0/3/0  00.00.00.00.00.00.00.00.00.00:100/112      up             100         101          label:20004,bos:1    label:20004,bos:1