summaryrefslogtreecommitdiffstats
path: root/src/scripts/vnet/l2efpfilter
blob: 307b4436e81966cfc6d1d35ed7ed173fe2b98dd5 (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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
set int ip address GigabitEthernet2/1/0 1.2.3.4/24
set int state GigabitEthernet2/1/0 up 
set int state tuntap-0 down


cre sub GigabitEthernet2/1/0 1 dot1q 1 
cre sub GigabitEthernet2/1/0 2 dot1q 2 
cre sub GigabitEthernet2/1/0 3 dot1q 3
cre sub GigabitEthernet2/2/0 1 dot1q 1 
cre sub GigabitEthernet2/2/0 100 dot1q 100 

set int l2 bridge GigabitEthernet2/1/0 0
set int l2 bridge GigabitEthernet2/1/0.1 0
set int l2 bridge GigabitEthernet2/1/0.2 0
set int l2 bridge GigabitEthernet2/1/0.3 0
set int l2 bridge GigabitEthernet2/2/0 0
set int l2 bridge GigabitEthernet2/2/0.1 0
set int l2 bridge GigabitEthernet2/2/0.100 0

set int l2 tag-rewrite GigabitEthernet2/2/0.1 push dot1q 50
set int l2 tag-rewrite GigabitEthernet2/1/0.2 translate 1-1 dot1q 100
set int l2 tag-rewrite GigabitEthernet2/1/0.3 translate 1-1 dot1q 99 

set int l2 efp-filter GigabitEthernet2/2/0
set int l2 efp-filter GigabitEthernet2/2/0.1
set int l2 efp-filter GigabitEthernet2/2/0.100


l2fib add 00:00:00:00:00:11    0  GigabitEthernet2/2/0.1 static
l2fib add 00:00:00:00:00:22    0  GigabitEthernet2/2/0.100 static

set int state GigabitEthernet2/1/0 up
set int state GigabitEthernet2/1/0.1 up
set int state GigabitEthernet2/1/0.2 up
set int state GigabitEthernet2/1/0.3 up
set int state GigabitEthernet2/2/0 up
set int state GigabitEthernet2/2/0.1 up
set int state GigabitEthernet2/2/0.100 up


trace add pg-input 6

clear error
clear run
clear int

packet-generator new {
  name pre_vtr_fail
  limit 10
  no-recycle
  node ethernet-input
  interface GigabitEthernet2/1/0
  data {
      IP4: 0050.56b7.7c83 -> 00:00:00:00:00:11 vlan 1
      GRE: 8.0.0.1 -> 1.2.3.3 mpls_unicast 
  }
}

packet-generator new {
  name post_vtr_pass
  limit 20
  no-recycle
  node ethernet-input
  interface GigabitEthernet2/1/0
  data {
      IP4: 0050.56b7.7c83 -> 00:00:00:00:00:22 vlan 2
      GRE: 8.0.0.1 -> 1.2.3.3 mpls_unicast 
  }
}

packet-generator new {
  name post_vtr_fail
  limit 50
  no-recycle
  node ethernet-input
  interface GigabitEthernet2/1/0
  data {
      IP4: 0050.56b7.7c83 -> 00:00:00:00:00:22 vlan 3
      GRE: 8.0.0.1 -> 1.2.3.3 mpls_unicast 
  }
}