Scott Keeler | 70f28fc | 2018-10-23 15:16:46 -0400 | [diff] [blame] | 1 | .. _interface: |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 2 | |
| 3 | .. toctree:: |
| 4 | |
Scott Keeler | 70f28fc | 2018-10-23 15:16:46 -0400 | [diff] [blame] | 5 | Hardware-Interfaces Commands |
Scott Keeler | 6c89230 | 2018-10-26 09:12:15 -0400 | [diff] [blame] | 6 | ============================ |
Nathan Skrzypczak | 9ad39c0 | 2021-08-19 11:38:06 +0200 | [diff] [blame^] | 7 | This section contains those interface commands that are related to hardware-interfaces: |
Scott Keeler | 70f28fc | 2018-10-23 15:16:46 -0400 | [diff] [blame] | 8 | |
| 9 | |
| 10 | * `Show Bridge-Domain`_ |
| 11 | * `Show Hardware-Interfaces`_ |
| 12 | * `Clear Hardware-Interfaces`_ |
| 13 | |
| 14 | .. 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>`_ . |
| 15 | |
| 16 | Show Bridge-Domain |
| 17 | +++++++++++++++++++ |
| 18 | |
Scott Keeler | 6c89230 | 2018-10-26 09:12:15 -0400 | [diff] [blame] | 19 | Show a summary of all the bridge-domain instances or detailed view of a single bridge-domain. |
| 20 | Bridge-domains are created by adding an interface to a bridge using the **set interface l2 bridge** command. |
Scott Keeler | 70f28fc | 2018-10-23 15:16:46 -0400 | [diff] [blame] | 21 | |
Nathan Skrzypczak | 9ad39c0 | 2021-08-19 11:38:06 +0200 | [diff] [blame^] | 22 | |
| 23 | .. code-block:: console |
| 24 | |
| 25 | show bridge-domain [*bridge-domain-id* [detail|int|arp| *bd-tag* ]] |
| 26 | |
| 27 | |
Scott Keeler | 70f28fc | 2018-10-23 15:16:46 -0400 | [diff] [blame] | 28 | Example Usage |
Scott Keeler | 6c89230 | 2018-10-26 09:12:15 -0400 | [diff] [blame] | 29 | ------------- |
Scott Keeler | 70f28fc | 2018-10-23 15:16:46 -0400 | [diff] [blame] | 30 | .. code-block:: console |
| 31 | |
| 32 | Example of displaying all bridge-domains: |
| 33 | |
| 34 | vpp# show bridge-domain |
| 35 | |
| 36 | ID Index Learning U-Forwrd UU-Flood Flooding ARP-Term BVI-Intf |
| 37 | 0 0 off off off off off local0 |
| 38 | 200 1 on on on on off N/A |
| 39 | |
| 40 | Example of displaying details of a single bridge-domains: |
| 41 | |
| 42 | vpp# show bridge-domain 200 detail |
| 43 | |
| 44 | ID Index Learning U-Forwrd UU-Flood Flooding ARP-Term BVI-Intf |
| 45 | 200 1 on on on on off N/A |
| 46 | |
| 47 | Interface Index SHG BVI VLAN-Tag-Rewrite |
| 48 | GigabitEthernet0/8/0.200 3 0 - none |
| 49 | GigabitEthernet0/9/0.200 4 0 - none |
| 50 | |
| 51 | Declaration and Implementation |
Scott Keeler | 6c89230 | 2018-10-26 09:12:15 -0400 | [diff] [blame] | 52 | ------------------------------ |
Scott Keeler | 70f28fc | 2018-10-23 15:16:46 -0400 | [diff] [blame] | 53 | |
| 54 | **Declaration:** bd_show_cli (src/vnet/l2/l2_bd.c line 1151) |
| 55 | |
| 56 | **Implementation:** bd_show |
| 57 | |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 58 | Show Hardware-Interfaces |
Scott Keeler | 70f28fc | 2018-10-23 15:16:46 -0400 | [diff] [blame] | 59 | +++++++++++++++++++++++++ |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 60 | Display more detailed information about all or a list of given |
| 61 | interfaces. The verboseness of the output can be controlled by the |
| 62 | following optional parameters: |
| 63 | |
Scott Keeler | 70f28fc | 2018-10-23 15:16:46 -0400 | [diff] [blame] | 64 | - **brief**: Only show name, index and state (default for bonded |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 65 | interfaces). |
Scott Keeler | 70f28fc | 2018-10-23 15:16:46 -0400 | [diff] [blame] | 66 | - **verbose**: Also display additional attributes (default for all other |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 67 | interfaces). |
Scott Keeler | 70f28fc | 2018-10-23 15:16:46 -0400 | [diff] [blame] | 68 | - **detail**: Also display all remaining attributes and extended |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 69 | statistics. |
| 70 | |
Nathan Skrzypczak | 9ad39c0 | 2021-08-19 11:38:06 +0200 | [diff] [blame^] | 71 | .. note:: |
Scott Keeler | 70f28fc | 2018-10-23 15:16:46 -0400 | [diff] [blame] | 72 | To limit the output of the command to bonded interfaces and their |
| 73 | slave interfaces, use the '*bond*' optional parameter. |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 74 | |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 75 | |
| 76 | .. code-block:: shell |
| 77 | |
| 78 | show hardware-interfaces [brief|verbose|detail] [bond] [<interface> [<interface> [..]]] [<sw_idx> [<sw_idx> [..]]]. |
| 79 | |
Nathan Skrzypczak | 9ad39c0 | 2021-08-19 11:38:06 +0200 | [diff] [blame^] | 80 | |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 81 | Examples |
Scott Keeler | 6c89230 | 2018-10-26 09:12:15 -0400 | [diff] [blame] | 82 | -------- |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 83 | Example of how to display default data for all interfaces: |
| 84 | |
| 85 | .. code-block:: console |
| 86 | |
| 87 | vpp# show hardware-interfaces |
| 88 | Name Idx Link Hardware |
| 89 | GigabitEthernet7/0/0 1 up GigabitEthernet7/0/0 |
| 90 | Ethernet address ec:f4:bb:c0:bc:fc |
| 91 | Intel e1000 |
| 92 | carrier up full duplex speed 1000 mtu 9216 |
| 93 | rx queues 1, rx desc 1024, tx queues 3, tx desc 1024 |
| 94 | cpu socket 0 |
| 95 | GigabitEthernet7/0/1 2 up GigabitEthernet7/0/1 |
| 96 | Ethernet address ec:f4:bb:c0:bc:fd |
| 97 | Intel e1000 |
| 98 | carrier up full duplex speed 1000 mtu 9216 |
| 99 | rx queues 1, rx desc 1024, tx queues 3, tx desc 1024 |
| 100 | cpu socket 0 |
| 101 | VirtualEthernet0/0/0 3 up VirtualEthernet0/0/0 |
| 102 | Ethernet address 02:fe:a5:a9:8b:8e |
| 103 | VirtualEthernet0/0/1 4 up VirtualEthernet0/0/1 |
| 104 | Ethernet address 02:fe:c0:4e:3b:b0 |
| 105 | VirtualEthernet0/0/2 5 up VirtualEthernet0/0/2 |
| 106 | Ethernet address 02:fe:1f:73:92:81 |
| 107 | VirtualEthernet0/0/3 6 up VirtualEthernet0/0/3 |
| 108 | Ethernet address 02:fe:f2:25:c4:68 |
| 109 | local0 0 down local0 |
| 110 | local |
| 111 | |
Scott Keeler | 6c89230 | 2018-10-26 09:12:15 -0400 | [diff] [blame] | 112 | Example of how to display *verbose* data for an interface by name and software index |
| 113 | (where 2 is the software index): |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 114 | |
| 115 | .. code-block:: console |
| 116 | |
| 117 | vpp# show hardware-interfaces GigabitEthernet7/0/0 2 verbose |
| 118 | Name Idx Link Hardware |
| 119 | GigabitEthernet7/0/0 1 up GigabitEthernet7/0/0 |
| 120 | Ethernet address ec:f4:bb:c0:bc:fc |
| 121 | Intel e1000 |
| 122 | carrier up full duplex speed 1000 mtu 9216 |
| 123 | rx queues 1, rx desc 1024, tx queues 3, tx desc 1024 |
| 124 | cpu socket 0 |
| 125 | GigabitEthernet7/0/1 2 down GigabitEthernet7/0/1 |
| 126 | Ethernet address ec:f4:bb:c0:bc:fd |
| 127 | Intel e1000 |
| 128 | carrier up full duplex speed 1000 mtu 9216 |
| 129 | rx queues 1, rx desc 1024, tx queues 3, tx desc 1024 |
| 130 | cpu socket 0 |
| 131 | |
| 132 | Clear Hardware-Interfaces |
Scott Keeler | 6c89230 | 2018-10-26 09:12:15 -0400 | [diff] [blame] | 133 | +++++++++++++++++++++++++ |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 134 | |
| 135 | Clear the extended statistics for all or a list of given interfaces |
Scott Keeler | 70f28fc | 2018-10-23 15:16:46 -0400 | [diff] [blame] | 136 | (statistics associated with the **show hardware-interfaces** command). |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 137 | |
| 138 | |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 139 | .. code-block:: shell |
| 140 | |
| 141 | clear hardware-interfaces [<interface> [<interface> [..]]] [<sw_idx> [<sw_idx> [..]]]. |
Nathan Skrzypczak | 9ad39c0 | 2021-08-19 11:38:06 +0200 | [diff] [blame^] | 142 | |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 143 | |
| 144 | Examples |
| 145 | -------- |
| 146 | |
| 147 | Example of how to clear the extended statistics for all interfaces: |
| 148 | |
| 149 | |
| 150 | .. code-block:: console |
| 151 | |
| 152 | vpp# clear hardware-interfaces |
| 153 | |
Scott Keeler | 6c89230 | 2018-10-26 09:12:15 -0400 | [diff] [blame] | 154 | Example of how to clear the extended statistics for an interface by name and software index |
Nathan Skrzypczak | 9ad39c0 | 2021-08-19 11:38:06 +0200 | [diff] [blame^] | 155 | (where 2 is the software index): |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 156 | |
| 157 | .. code-block:: console |
| 158 | |
| 159 | vpp# clear hardware-interfaces GigabitEthernet7/0/0 2 |
| 160 | |
| 161 | |