FD.io VPP
v17.04.2-2-ga8f93f8
Vector Packet Processing
|
Clear hardware interfaces statistics.
Declaration: clear_hw_interface_counters_command (src/vnet/interface_cli.c line 203)
Implementation: show_or_clear_hw_interfaces.
clear interface tag <intfc>.
Declaration: clear_tag_command (src/vnet/interface_cli.c line 1171)
Implementation: clear_tag.
Clear interfaces statistics.
Declaration: clear_interface_counters_command (src/vnet/interface_cli.c line 490)
Implementation: clear_interface_counters.
create sub-interfaces <nn>[-<nn>] [dot1q|dot1ad|default|untagged].
Create vlan subinterfaces
vpp# create sub-interfaces
To create a vlan subinterface 11 to process packets on 802.1q VLAN id 11, use:
vpp# create sub GigabitEthernet2/0/0 11
This shorthand is equivalent to:
vpp# create sub GigabitEthernet2/0/0 11 dot1q 11 exact-match
You can specify a subinterface number that is different from the vlan id:
vpp# create sub GigabitEthernet2/0/0 11 dot1q 100
You can create qinq and q-in-any interfaces:
vpp# create sub GigabitEthernet2/0/0 11 dot1q 100 inner-dot1q 200
vpp# create sub GigabitEthernet2/0/0 12 dot1q 100 inner-dot1q any
You can also create dot1ad interfaces:
vpp# create sub GigabitEthernet2/0/0 11 dot1ad 11
vpp# create sub GigabitEthernet2/0/0 12 dot1q 100 inner-dot1q 200
Subinterfaces can be configured as either exact-match or non-exact match.
Non-exact match is the CLI default. If exact-match is specified,
packets must have the same number of vlan tags as the configuration.
For non-exact-match, packets must at least that number of tags.
L3 (routed) interfaces must be configured as exact-match.
L2 interfaces are typically configured as non-exact-match.
For example, a packet with outer vlan 100 and inner 200 would match this interface:
vpp# create sub GigabitEthernet2/0/0 5 dot1q 100
but would not match this interface:
vpp# create sub GigabitEthernet2/0/0 5 dot1q 100 exact-match
There are two special subinterfaces that can be configured. Subinterface untagged has no vlan tags:
vpp# create sub GigabitEthernet2/0/0 5 untagged
The subinterface default matches any packet that does not match any other subinterface:
vpp# create sub GigabitEthernet2/0/0 7 default
Declaration: create_sub_interfaces_command (src/vnet/interface_cli.c line 781)
Implementation: create_sub_interfaces.
Interface commands.
Declaration: vnet_cli_interface_command (src/vnet/interface_cli.c line 427)
pcap drop trace on off max <nn> intfc <intfc> file <name> status.
Declaration: pcap_trace_command (src/vnet/interface_output.c line 1424)
Implementation: pcap_drop_trace_command_fn.
renumber interface <if-name> <new-dev-instance>.
Declaration: renumber_interface_command (src/vnet/interface_cli.c line 992)
Implementation: renumber_interface_command_fn.
Interface commands.
Declaration: vnet_cli_set_interface_command (src/vnet/interface_cli.c line 434)
set interface handoff <interface-name> workers <workers-list> [symmetrical|asymmetrical].
Declaration: set_interface_handoff_command (src/vnet/handoff.c line 354)
Implementation: set_interface_handoff_command_fn.
Set interface hardware class.
Declaration: set_hw_class_command (src/vnet/interface_cli.c line 942)
Implementation: set_hw_class.
set interface mac address <intfc> <mac-address>.
The 'set interface mac address ' command allows to set MAC address of given interface. In case of NIC interfaces the one has to support MAC address change. A side effect of MAC address change are changes of MAC addresses in FIB tables (ipv4 and ipv6).
vpp# set interface mac address GigabitEthernet0/8/0 aa:bb:cc:dd:ee:01
vpp# set interface mac address host-vpp0 aa:bb:cc:dd:ee:02
vpp# set interface mac address tap-0 aa:bb:cc:dd:ee:03
vpp# set interface mac address pg0 aa:bb:cc:dd:ee:04
Declaration: set_interface_mac_address_cmd (src/vnet/interface_cli.c line 1122)
Implementation: set_interface_mac_address.
set interface mtu <value> <intfc>.
Declaration: set_interface_mtu_cmd (src/vnet/interface_cli.c line 1074)
Implementation: mtu_cmd.
set interface promiscuous [on | off] <intfc>.
Declaration: set_interface_promiscuous_cmd (src/vnet/interface_cli.c line 1028)
Implementation: promiscuous_cmd.
Set interface state.
Interface admin up/down
vpp# set interface state
vpp# set interface state GigabitEthernet2/0/0 up
vpp# set interface state GigabitEthernet2/0/0 down
Declaration: set_state_command (src/vnet/interface_cli.c line 830)
Implementation: set_state.
set interface tag <intfc> <tag>.
Declaration: set_tag_command (src/vnet/interface_cli.c line 1147)
Implementation: set_tag.
set interface unnumbered [<intfc> use <intfc> | del <intfc>].
Declaration: set_unnumbered_command (src/vnet/interface_cli.c line 899)
Implementation: set_unnumbered.
show hardware-interfaces [brief|verbose|detail] [bond] [<if-name1> <if-name2> ...].
Displays various information about the state of the current terminal session.
vpp# show hardware
Name Link Hardware
GigabitEthernet2/0/0 up GigabitEthernet2/0/0
Ethernet address 00:50:56:b7:7c:83
Intel 82545em_copper
link up, media 1000T full-duplex, master,
0 unprocessed, 384 total buffers on rx queue 0 ring
237 buffers in driver rx cache
rx total packets 1816
rx total bytes 181084
rx good packets 1816
rx good bytes 181084
rx 65 127 byte packets 1586
rx 256 511 byte packets 230
tx total packets 346
tx total bytes 90224
tx good packets 346
tx good bytes 88840
tx 64 byte packets 1
tx 65 127 byte packets 115
tx 256 511 byte packets 230
Declaration: show_hw_interfaces_command (src/vnet/interface_cli.c line 195)
Implementation: show_or_clear_hw_interfaces.
show interface [address|addr|features|feat] [<if-name1> <if-name2> ...].
Declaration: show_sw_interfaces_command (src/vnet/interface_cli.c line 418)
Implementation: show_sw_interfaces.