summaryrefslogtreecommitdiffstats
path: root/vnet/etc/scripts/l2fib_xc
blob: 35d7342b3f78ce765aad09748becab46c95cfce3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
set int ip address GigabitEthernet2/1/0 1.2.3.4/24
set int state GigabitEthernet2/1/0 up 

set int state GigabitEthernet2/2/0 up
cre sub GigabitEthernet2/2/0 1 dot1q 9 
set int state GigabitEthernet2/2/0.1 up
set int state tuntap-0 down

set int acl input GigabitEthernet2/1/0
set int acl output GigabitEthernet2/1/0
set int acl input GigabitEthernet2/2/0.1 
set int acl output GigabitEthernet2/2/0.1

set int l2 xc GigabitEthernet2/1/0   GigabitEthernet2/2/0.1
set int l2 xc GigabitEthernet2/2/0.1 GigabitEthernet2/1/0

clear error
clear run
clear int

packet-generator new {
  name xc
  limit 11
  no-recycle
  node ethernet-input 
  interface GigabitEthernet2/1/0
  size 98-98
  data { hex 0x00010203040500020406080a080045006402b46b96000100096978676265000500bf436973636f20494f5320536f6674776172652c2040160011000000010101cc000400000000001a00100000000100000000ffffffff }
}
esent in current Linux l2tpv3 * tunnels. It is not present in IOS XR l2tpv3 tunnels. * The Linux implementation is almost certainly wrong. */ /* *INDENT-OFF* */ typedef CLIB_PACKED (struct { u32 session_id; u64 cookie; u32 l2_specific_sublayer; /* set to 0 (if present) */ }) l2tpv3_header_t; /* *INDENT-ON* */ #endif /* __included_l2tp_packet_h__ */ /* * fd.io coding-style-patch-verification: ON * * Local Variables: * eval: (c-set-style "gnu") * End: */