aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/vrrp/setup.pg
blob: 9275fcc46c66221fcbdbd5737ddc613c1d862eb1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
comment { simple debug CLI setup script w/ packet generator test vector }
set term page off
loop create
set int ip address loop0 192.168.1.1/24
set int state loop0 up

comment { Packet generator script. Src MAC 00:de:ad:be:ef:01 }
comment { Dst mac 01:ba:db:ab:be:01 ethtype 0800 }
packet-generator new {
    name simple
    limit 1
    size 128-128
    interface loop0
    node vrrp
    data {
        hex 0x00deadbeef0001badbabbe010800 
        incrementing 30
    }
}
ge governing permissions and * limitations under the License. */ #ifndef included_vnet_l2_emulation_h #define included_vnet_l2_emulation_h #include <vlib/vlib.h> #include <vnet/vnet.h> /** * L2 Emulation is a feautre that is applied to L2 ports to 'extract' * IP packets from the L2 path and inject them into the L3 path (i.e. * into the appropriate ip[4|6]_input node). * L3 routes in the table_id for that interface should then be configured * as DVR routes, therefore the forwarded packet has the L2 header * preserved and togehter the L3 routed system behaves like an L2 bridge. */ extern void l2_emulation_enable (u32 sw_if_index); extern void l2_emulation_disable (u32 sw_if_index); #endif /* * fd.io coding-style-patch-verification: ON * * Local Variables: * eval: (c-set-style "gnu") * End: */