summaryrefslogtreecommitdiffstats
path: root/docs/reference/cmdreference/show/show.rst
blob: 492477defd546aee5a0731a47fe4a546c065ea2f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
.. _interface:

.. toctree::

.. note:: For a complete list of CLI Debug commands refer to the Debug CLI section of the `Source Code Documents <https://docs.fd.io/vpp/18.07/clicmd.html>`_ .

Show Bridge-Domain
===================

`Show Bridge-Domain <../interface/hardware.html#show-bridge-domain>`_

Show Interface
================

`Show Interface <../interface/basic.html#show-interface>`_

Show IP Arp
============

Summary/Usage
---------------

show ip arp

Description
------------

Display all the IPv4 ARP entries.

Example Usage
--------------
Example of how to display the IPv4 ARP table:

.. code-block:: console

   vpp# **show ip arp**
       Time      FIB        IP4       Flags      Ethernet              Interface
       346.3028   0       6.1.1.3            de:ad:be:ef:ba:be   GigabitEthernet2/0/0
      3077.4271   0       6.1.1.4       S    de:ad:be:ef:ff:ff   GigabitEthernet2/0/0
      2998.6409   1       6.2.2.3            de:ad:be:ef:00:01   GigabitEthernet2/0/0
    Proxy arps enabled for:
    Fib_index 0   6.0.0.1 - 6.0.0.11


Declaration and Implementation
-------------------------------

**Declaration:** show_ip4_arp_command (src/vnet/ethernet/arp.c line 1465)

**Implementation:** show_ip4_arp

Show IP Fib
=============

Summary/Usage
---------------

show ip fib [summary] [table <*table-id*>] [index <*fib-id*>] [<*ip4-addr*>[/<*mask*>]] [mtrie] [detail]

Description
------------

This command displays the IPv4 FIB Tables (VRF Tables) and the route entries for each table.

.. note::
	This command will run for a long time when the FIB tables are comprised of millions of entries. For those senarios, consider displaying a single table or summary mode.

Example Usage
--------------
Example of how to display all the IPv4 FIB tables:

.. code-block:: console

    vpp# **show ip fib**

    ipv4-VRF:0, fib_index 0, flow hash: src dst sport dport proto
    0.0.0.0/0
      unicast-ip4-chain
      [@0]: dpo-load-balance: [index:0 buckets:1 uRPF:0 to:[0:0]]
      [0] [@0]: dpo-drop ip6
    0.0.0.0/32
      unicast-ip4-chain
      [@0]: dpo-load-balance: [index:1 buckets:1 uRPF:1 to:[0:0]]
      [0] [@0]: dpo-drop ip6
    6.0.1.2/32
      unicast-ip4-chain
      [@0]: dpo-load-balance: [index:30 buckets:1 uRPF:29 to:[0:0]]
      [0] [@3]: arp-ipv4: via 6.0.0.1 af_packet0
    7.0.0.1/32
      unicast-ip4-chain
      [@0]: dpo-load-balance: [index:31 buckets:4 uRPF:30 to:[0:0]]
      [0] [@3]: arp-ipv4: via 6.0.0.2 af_packet0
      [1] [@3]: arp-ipv4: via 6.0.0.2 af_packet0
      [2] [@3]: arp-ipv4: via 6.0.0.2 af_packet0
      [3] [@3]: arp-ipv4: via 6.0.0.1 af_packet0
    224.0.0.0/8
      unicast-ip4-chain
      [@0]: dpo-load-balance: [index:3 buckets:1 uRPF:3 to:[0:0]]
      [0] [@0]: dpo-drop ip6
    240.0.0.0/8
      unicast-ip4-chain
      [@0]: dpo-load-balance: [index:2 buckets:1 uRPF:2 to:[0:0]]
      [0] [@0]: dpo-drop ip6
    255.255.255.255/32
      unicast-ip4-chain
      [@0]: dpo-load-balance: [index:4 buckets:1 uRPF:4 to:[0:0]]
      [0] [@0]: dpo-drop ip6
    ipv4-VRF:7, fib_index 1, flow hash: src dst sport dport proto
    0.0.0.0/0
      unicast-ip4-chain
      [@0]: dpo-load-balance: [index:12 buckets:1 uRPF:11 to:[0:0]]
      [0] [@0]: dpo-drop ip6
    0.0.0.0/32
      unicast-ip4-chain
      [@0]: dpo-load-balance: [index:13 buckets:1 uRPF:12 to:[0:0]]
      [0] [@0]: dpo-drop ip6
    172.16.1.0/24
      unicast-ip4-chain
      [@0]: dpo-load-balance: [index:17 buckets:1 uRPF:16 to:[0:0]]
      [0] [@4]: ipv4-glean: af_packet0
    172.16.1.1/32
      unicast-ip4-chain
      [@0]: dpo-load-balance: [index:18 buckets:1 uRPF:17 to:[1:84]]
      [0] [@2]: dpo-receive: 172.16.1.1 on af_packet0
    172.16.1.2/32
      unicast-ip4-chain
      [@0]: dpo-load-balance: [index:21 buckets:1 uRPF:20 to:[0:0]]
      [0] [@5]: ipv4 via 172.16.1.2 af_packet0: IP4: 02:fe:9e:70:7a:2b -> 26:a5:f6:9c:3a:36
    172.16.2.0/24
      unicast-ip4-chain
      [@0]: dpo-load-balance: [index:19 buckets:1 uRPF:18 to:[0:0]]
      [0] [@4]: ipv4-glean: af_packet1
    172.16.2.1/32
      unicast-ip4-chain
      [@0]: dpo-load-balance: [index:20 buckets:1 uRPF:19 to:[0:0]]
      [0] [@2]: dpo-receive: 172.16.2.1 on af_packet1
    224.0.0.0/8
      unicast-ip4-chain
      [@0]: dpo-load-balance: [index:15 buckets:1 uRPF:14 to:[0:0]]
      [0] [@0]: dpo-drop ip6
    240.0.0.0/8
      unicast-ip4-chain
      [@0]: dpo-load-balance: [index:14 buckets:1 uRPF:13 to:[0:0]]
      [0] [@0]: dpo-drop ip6
    255.255.255.255/32
      unicast-ip4-chain
      [@0]: dpo-load-balance: [index:16 buckets:1 uRPF:15 to:[0:0]]
      [0] [@0]: dpo-drop ip6

Example of how to display a single IPv4 FIB table:

.. code-block:: console

    vpp# **show ip fib table 7**

    ipv4-VRF:7, fib_index 1, flow hash: src dst sport dport proto
    0.0.0.0/0
      unicast-ip4-chain
      [@0]: dpo-load-balance: [index:12 buckets:1 uRPF:11 to:[0:0]]
      [0] [@0]: dpo-drop ip6
    0.0.0.0/32
      unicast-ip4-chain
      [@0]: dpo-load-balance: [index:13 buckets:1 uRPF:12 to:[0:0]]
      [0] [@0]: dpo-drop ip6
    172.16.1.0/24
      unicast-ip4-chain
      [@0]: dpo-load-balance: [index:17 buckets:1 uRPF:16 to:[0:0]]
      [0] [@4]: ipv4-glean: af_packet0
    172.16.1.1/32
      unicast-ip4-chain
      [@0]: dpo-load-balance: [index:18 buckets:1 uRPF:17 to:[1:84]]
      [0] [@2]: dpo-receive: 172.16.1.1 on af_packet0
    172.16.1.2/32
      unicast-ip4-chain
      [@0]: dpo-load-balance: [index:21 buckets:1 uRPF:20 to:[0:0]]
      [0] [@5]: ipv4 via 172.16.1.2 af_packet0: IP4: 02:fe:9e:70:7a:2b -*> 26:a5:f6:9c:3a:36
    172.16.2.0/24
      unicast-ip4-chain
      [@0]: dpo-load-balance: [index:19 buckets:1 uRPF:18 to:[0:0]]
      [0] [@4]: ipv4-glean: af_packet1
    172.16.2.1/32
      unicast-ip4-chain
      [@0]: dpo-load-balance: [index:20 buckets:1 uRPF:19 to:[0:0]]
      [0] [@2]: dpo-receive: 172.16.2.1 on af_packet1
    224.0.0.0/8
      unicast-ip4-chain
      [@0]: dpo-load-balance: [index:15 buckets:1 uRPF:14 to:[0:0]]
      [0] [@0]: dpo-drop ip6
    240.0.0.0/8
      unicast-ip4-chain
      [@0]: dpo-load-balance: [index:14 buckets:1 uRPF:13 to:[0:0]]
      [0] [@0]: dpo-drop ip6
    255.255.255.255/32
      unicast-ip4-chain
      [@0]: dpo-load-balance: [index:16 buckets:1 uRPF:15 to:[0:0]]
      [0] [@0]: dpo-drop ip6

Example of how to display a summary of all IPv4 FIB tables:

.. code-block:: console

    vpp# **show ip fib summary**

    ipv4-VRF:0, fib_index 0, flow hash: src dst sport dport proto
        Prefix length         Count
                       0               1
                       8               2
                      32               4
    ipv4-VRF:7, fib_index 1, flow hash: src dst sport dport proto
        Prefix length         Count
                       0               1
                       8               2
                      24               2
                      32               4

Declaration and Implementation
-------------------------------

**Declaration:** ip4_show_fib_command (src/vnet/fib/ip4_fib.c line 873)

**Implementation:** ip4_show_fib

Show L2fib
============

Summary/Usage
------------------

show l2fib [all] | [bd_id <*nn*> | bd_index <*nn*>] [learn | add] | [raw]

Description
------------

This command displays the MAC Address entries of the L2 FIB table. Output can be filtered to just get the number of MAC Addresses or display each MAC Address for all bridge domains or just a single bridge domain.

Example Usage
--------------
Example of how to display the number of MAC Address entries in the L2 FIB table:


.. code-block:: console

    vpp# **show l2fib**

    3 l2fib entries

    Example of how to display all the MAC Address entries in the L2 FIB table:

    vpp# **show l2fib all**

        Mac Address     BD Idx           Interface           Index  static  filter  bvi  refresh  timestamp
     52:54:00:53:18:33    1      GigabitEthernet0/8/0.200      3       0       0     0      0         0
     52:54:00:53:18:55    1      GigabitEthernet0/8/0.200      3       1       0     0      0         0
     52:54:00:53:18:77    1                 N/A                -1      1       1     0      0         0
    3 l2fib entries

Declaration and Implementation
-------------------------------

**Declaration:** show_l2fib_cli (src/vnet/l2/l2_fib.c line 311)

**Implementation:** show_l2fib

Show Trace
===========

Summary/Usage
--------------

show trace buffer [max COUNT]

Declaration and Implementation
------------------------------

**Declaration:** show_trace_cli (src/vlib/trace.c line 347)

**Implementation:** cli_show_trace_buffer

Show Vhost-User
================

`Show Vhost-User <../vhost/vhostuser.html#show-vhost-user>`_