FD.io VPP
v16.09
Vector Packet Processing
|
set bridge-domain arp entry <bd-id> <ip-addr> <mac-addr> [del].
Declaration: bd_arp_entry_cli (vnet/vnet/l2/l2_bd.c:626)
Implementation: bd_arp_entry.
set bridge-domain arp term <bridge-domain-id> [disable].
Declaration: bd_arp_term_cli (vnet/vnet/l2/l2_bd.c:488)
Implementation: bd_arp_term.
set bridge-domain flood <bridge-domain-id> [disable].
Declaration: bd_flood_cli (vnet/vnet/l2/l2_bd.c:381)
Implementation: bd_flood.
set bridge-domain forward <bridge-domain-id> [disable].
Declaration: bd_fwd_cli (vnet/vnet/l2/l2_bd.c:326)
Implementation: bd_fwd.
set bridge-domain learn <bridge-domain-id> [disable].
Declaration: bd_learn_cli (vnet/vnet/l2/l2_bd.c:272)
Implementation: bd_learn.
set bridge-domain uu-flood <bridge-domain-id> [disable].
Declaration: bd_uu_flood_cli (vnet/vnet/l2/l2_bd.c:436)
Implementation: bd_uu_flood.
show bridge-domain [bridge-domain-id [detail|int|arp]].
Declaration: bd_show_cli (vnet/vnet/l2/l2_bd.c:813)
Implementation: bd_show.
set interface l2 classify intfc <int> [ip4-table <n>]n [ip6-table <n>] [other-table <n>].
Declaration: int_l2_classify_cli (vnet/vnet/l2/l2_classify.c:546)
Implementation: int_l2_classify_command_fn.
set interface l2 efp-filter <interface> [disable].
Declaration: int_l2_efp_filter_cli (vnet/vnet/l2/l2_efp_filter.c:572)
Implementation: int_l2_efp_filter.
Clear l2fib mac forwarding entries.
Declaration: clear_l2fib_cli (vnet/vnet/l2/l2_fib.c:243)
Implementation: clear_l2fib.
Add l2fib mac forwarding entry <mac> <bd-id> filter | <intf> [static | bvi].
Declaration: l2fib_add_cli (vnet/vnet/l2/l2_fib.c:368)
Implementation: l2fib_add.
Delete l2fib mac forwarding entry <mac> <bd-id>.
Declaration: l2fib_del_cli (vnet/vnet/l2/l2_fib.c:569)
Implementation: l2fib_del.
show l2fib [verbose | bd_id <nn> | bd_index <nn> | raw].
Declaration: show_l2fib_cli (vnet/vnet/l2/l2_fib.c:202)
Implementation: show_l2fib.
test l2fib [del] mac <base-addr> count <nn>.
Declaration: l2fib_test_command (vnet/vnet/l2/l2_fib.c:477)
Implementation: l2fib_test_command_fn.
set interface l2 flood <interface> [disable].
Declaration: int_flood_cli (vnet/vnet/l2/l2_flood.c:542)
Implementation: int_flood.
set interface l2 forward <interface> [disable].
Declaration: int_fwd_cli (vnet/vnet/l2/l2_fwd.c:458)
Implementation: int_fwd.
set interface to L2 bridging mode in <bridge-domain ID> [bvi] [shg].
vpp# set interface l2 bridge
Interfaces in a bridge-domain forward packets to other interfaces in the same bridge-domain based on destination mac address.
To add an interface to bridge-domain 5 use:
vpp# set interface l2 bridge GigabitEthernet2/0/0 5
A split-horizon group can also be specified. This defaults to 0 if not specified.
vpp# set interface l2 bridge GigabitEthernet2/0/0 5 1
Declaration: int_l2_bridge_cli (vnet/vnet/l2/l2_input.c:848)
Implementation: int_l2_bridge.
set interface l2 xconnect <interface> <peer interface>.
L2 Cross-connect two interfaces
vpp# set interface l2 xconnect
To cross-connect two interfaces, put both into L2 cross-connect mode. All packets received on one interface will be transmitted to the other.
vpp# set interface l2 xconnect GigabitEthernet2/0/0 GigabitEthernet2/0/1
vpp# set interface l2 xconnect GigabitEthernet2/0/1 GigabitEthernet2/0/0
Declaration: int_l2_xc_cli (vnet/vnet/l2/l2_input.c:907)
Implementation: int_l2_xc.
show mode [<if-name1> <if-name2> ...].
vpp# cmd
Interfaces can be set in either L3 (routed) mode or L2 (xconnect or bridged) mode.
Interfaces are in L3 mode by default. To return an interface to L3 mode, use:
vpp# set interface l3 GigabitEthernet2/0/0
Declaration: show_l2_mode (vnet/vnet/l2/l2_input.c:1049)
Implementation: show_int_mode.
set interface l2 learn <interface> [disable].
Declaration: int_learn_cli (vnet/vnet/l2/l2_learn.c:500)
Implementation: int_learn.
set interface acl output <interface> [disable].
Declaration: int_l2_outacl_cli (vnet/vnet/l2/l2_output_acl.c:344)
Implementation: int_l2_outacl.
Show l2 interface cross-connect entries.
Declaration: show_l2patch_cli (vnet/vnet/l2/l2_patch.c:425)
Implementation: show_l2patch.
rx <intfc> tx <intfc> [del].
Declaration: test_patch_command (vnet/vnet/l2/l2_patch.c:381)
Implementation: test_patch_command_fn.
l2 rewrite entry [index <index>] [mask <hex-mask>] [value <hex-value>] [skip <n_bytes>] [del].
Declaration: l2_rw_entry_cli (vnet/vnet/l2/l2_rw.c:441)
Implementation: l2_rw_entry_cli_fn.
set bridge-domain rewrite <bridge-domain> [disable].
Declaration: l2_rw_set_cli (vnet/vnet/l2/l2_rw.c:600)
Implementation: l2_rw_set_cli_fn.
set interface l2 rewrite <interface> [table <table index>] [miss-index <entry-index>].
Declaration: l2_rw_interface_cli (vnet/vnet/l2/l2_rw.c:505)
Implementation: l2_rw_interface_cli_fn.
show l2 rewrite entries.
Declaration: l2_rw_show_entries_cli (vnet/vnet/l2/l2_rw.c:558)
Implementation: l2_rw_show_entries_cli_fn.
show l2 rewrite interfaces.
Declaration: l2_rw_show_interfaces_cli (vnet/vnet/l2/l2_rw.c:532)
Implementation: l2_rw_show_interfaces_cli_fn.
set interface l2 tag-rewrite <interface> [disable | pop {1|2} | push {dot1q|dot1ad} <tag> <tag>].
Declaration: int_l2_vtr_cli (vnet/vnet/l2/l2_vtr.c:536)
Implementation: int_l2_vtr.
set int l2 xcrw <interface> next <node-name>n [del] [tx-fib-id <id>] [ipv6] rw <hex-bytes>.
Declaration: set_l2_xcrw_command (vnet/vnet/l2/l2_xcrw.c:479)
Implementation: set_l2_xcrw_command_fn.
Display L2/L3 rewrite cross-connects.
Declaration: show_l2xcrw_command (vnet/vnet/l2/l2_xcrw.c:559)
Implementation: show_l2xcrw_command_fn.