FD.io VPP  v16.09
Vector Packet Processing
vnet/vnet/l2

set bridge-domain arp entry

Summary/usage

set bridge-domain arp entry <bd-id> <ip-addr> <mac-addr> [del].

Declaration and implementation

Declaration: bd_arp_entry_cli (vnet/vnet/l2/l2_bd.c:626)

Implementation: bd_arp_entry.

set bridge-domain arp term

Summary/usage

set bridge-domain arp term <bridge-domain-id> [disable].

Declaration and implementation

Declaration: bd_arp_term_cli (vnet/vnet/l2/l2_bd.c:488)

Implementation: bd_arp_term.

set bridge-domain flood

Summary/usage

set bridge-domain flood <bridge-domain-id> [disable].

Declaration and implementation

Declaration: bd_flood_cli (vnet/vnet/l2/l2_bd.c:381)

Implementation: bd_flood.

set bridge-domain forward

Summary/usage

set bridge-domain forward <bridge-domain-id> [disable].

Declaration and implementation

Declaration: bd_fwd_cli (vnet/vnet/l2/l2_bd.c:326)

Implementation: bd_fwd.

set bridge-domain learn

Summary/usage

set bridge-domain learn <bridge-domain-id> [disable].

Declaration and implementation

Declaration: bd_learn_cli (vnet/vnet/l2/l2_bd.c:272)

Implementation: bd_learn.

set bridge-domain uu-flood

Summary/usage

set bridge-domain uu-flood <bridge-domain-id> [disable].

Declaration and implementation

Declaration: bd_uu_flood_cli (vnet/vnet/l2/l2_bd.c:436)

Implementation: bd_uu_flood.

show bridge-domain

Summary/usage

show bridge-domain [bridge-domain-id [detail|int|arp]].

Declaration and implementation

Declaration: bd_show_cli (vnet/vnet/l2/l2_bd.c:813)

Implementation: bd_show.

set interface l2 classify

Summary/usage

set interface l2 classify intfc <int> [ip4-table <n>]n [ip6-table <n>] [other-table <n>].

Declaration and implementation

Declaration: int_l2_classify_cli (vnet/vnet/l2/l2_classify.c:546)

Implementation: int_l2_classify_command_fn.

set interface l2 efp-filter

Summary/usage

set interface l2 efp-filter <interface> [disable].

Declaration and implementation

Declaration: int_l2_efp_filter_cli (vnet/vnet/l2/l2_efp_filter.c:572)

Implementation: int_l2_efp_filter.

clear l2fib

Summary/usage

Clear l2fib mac forwarding entries.

Declaration and implementation

Declaration: clear_l2fib_cli (vnet/vnet/l2/l2_fib.c:243)

Implementation: clear_l2fib.

l2fib add

Summary/usage

Add l2fib mac forwarding entry <mac> <bd-id> filter | <intf> [static | bvi].

Declaration and implementation

Declaration: l2fib_add_cli (vnet/vnet/l2/l2_fib.c:368)

Implementation: l2fib_add.

l2fib del

Summary/usage

Delete l2fib mac forwarding entry <mac> <bd-id>.

Declaration and implementation

Declaration: l2fib_del_cli (vnet/vnet/l2/l2_fib.c:569)

Implementation: l2fib_del.

show l2fib

Summary/usage

show l2fib [verbose | bd_id <nn> | bd_index <nn> | raw].

Declaration and implementation

Declaration: show_l2fib_cli (vnet/vnet/l2/l2_fib.c:202)

Implementation: show_l2fib.

test l2fib

Summary/usage

test l2fib [del] mac <base-addr> count <nn>.

Declaration and implementation

Declaration: l2fib_test_command (vnet/vnet/l2/l2_fib.c:477)

Implementation: l2fib_test_command_fn.

set interface l2 flood

Summary/usage

set interface l2 flood <interface> [disable].

Declaration and implementation

Declaration: int_flood_cli (vnet/vnet/l2/l2_flood.c:542)

Implementation: int_flood.

set interface l2 forward

Summary/usage

set interface l2 forward <interface> [disable].

Declaration and implementation

Declaration: int_fwd_cli (vnet/vnet/l2/l2_fwd.c:458)

Implementation: int_fwd.

set interface l2 bridge

Summary/usage

set interface to L2 bridging mode in <bridge-domain ID> [bvi] [shg].

Description

Example usage
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 and implementation

Declaration: int_l2_bridge_cli (vnet/vnet/l2/l2_input.c:848)

Implementation: int_l2_bridge.

set interface l2 xconnect

Summary/usage

set interface l2 xconnect <interface> <peer interface>.

Description

L2 Cross-connect two interfaces

Example usage
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 and implementation

Declaration: int_l2_xc_cli (vnet/vnet/l2/l2_input.c:907)

Implementation: int_l2_xc.

show mode

Summary/usage

show mode [<if-name1> <if-name2> ...].

Description

Example usage
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 and implementation

Declaration: show_l2_mode (vnet/vnet/l2/l2_input.c:1049)

Implementation: show_int_mode.

set interface l2 learn

Summary/usage

set interface l2 learn <interface> [disable].

Declaration and implementation

Declaration: int_learn_cli (vnet/vnet/l2/l2_learn.c:500)

Implementation: int_learn.

set interface acl output

Summary/usage

set interface acl output <interface> [disable].

Declaration and implementation

Declaration: int_l2_outacl_cli (vnet/vnet/l2/l2_output_acl.c:344)

Implementation: int_l2_outacl.

show l2patch

Summary/usage

Show l2 interface cross-connect entries.

Declaration and implementation

Declaration: show_l2patch_cli (vnet/vnet/l2/l2_patch.c:425)

Implementation: show_l2patch.

test l2patch

Summary/usage

rx <intfc> tx <intfc> [del].

Declaration and implementation

Declaration: test_patch_command (vnet/vnet/l2/l2_patch.c:381)

Implementation: test_patch_command_fn.

l2 rewrite entry

Summary/usage

l2 rewrite entry [index <index>] [mask <hex-mask>] [value <hex-value>] [skip <n_bytes>] [del].

Declaration and implementation

Declaration: l2_rw_entry_cli (vnet/vnet/l2/l2_rw.c:441)

Implementation: l2_rw_entry_cli_fn.

set bridge-domain rewrite

Summary/usage

set bridge-domain rewrite <bridge-domain> [disable].

Declaration and implementation

Declaration: l2_rw_set_cli (vnet/vnet/l2/l2_rw.c:600)

Implementation: l2_rw_set_cli_fn.

set interface l2 rewrite

Summary/usage

set interface l2 rewrite <interface> [table <table index>] [miss-index <entry-index>].

Declaration and implementation

Declaration: l2_rw_interface_cli (vnet/vnet/l2/l2_rw.c:505)

Implementation: l2_rw_interface_cli_fn.

show l2 rewrite entries

Summary/usage

show l2 rewrite entries.

Declaration and implementation

Declaration: l2_rw_show_entries_cli (vnet/vnet/l2/l2_rw.c:558)

Implementation: l2_rw_show_entries_cli_fn.

show l2 rewrite interfaces

Summary/usage

show l2 rewrite interfaces.

Declaration and implementation

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

Summary/usage

set interface l2 tag-rewrite <interface> [disable | pop {1|2} | push {dot1q|dot1ad} <tag> <tag>].

Declaration and implementation

Declaration: int_l2_vtr_cli (vnet/vnet/l2/l2_vtr.c:536)

Implementation: int_l2_vtr.

set interface l2 xcrw

Summary/usage

set int l2 xcrw <interface> next <node-name>n [del] [tx-fib-id <id>] [ipv6] rw <hex-bytes>.

Declaration and implementation

Declaration: set_l2_xcrw_command (vnet/vnet/l2/l2_xcrw.c:479)

Implementation: set_l2_xcrw_command_fn.

show l2xcrw

Summary/usage

Display L2/L3 rewrite cross-connects.

Declaration and implementation

Declaration: show_l2xcrw_command (vnet/vnet/l2/l2_xcrw.c:559)

Implementation: show_l2xcrw_command_fn.