blob: d05ce89e6b824fbb3374b80ee120aa7f036359de [file] [log] [blame]
Ed Warnickecb9cada2015-12-08 15:45:58 -07001
2
3comment { test ipv4 port/vlan/qinq rewrites by generating arps }
4
5set int state tuntap-0 down
6
7set int ip address GigabitEthernet2/2/0 1.2.5.4/24
8
9cre sub GigabitEthernet2/2/0 1 dot1q 6 exact-match
10set int ip address GigabitEthernet2/2/0.1 1.2.6.4/24
11
12cre sub GigabitEthernet2/2/0 2 dot1ad 7 inner-dot1q 8 exact-match
13set int ip address GigabitEthernet2/2/0.2 1.2.7.4/24
14
15set int state GigabitEthernet2/1/0 up
16set int state GigabitEthernet2/2/0 up
17set int state GigabitEthernet2/2/0.1 up
18set int state GigabitEthernet2/2/0.2 up
19
20trace add pg-input 2
21
22cle er
23cle int
24cle run
25
26packet-generator new {
27 name toport
28 limit 2
Ed Warnickecb9cada2015-12-08 15:45:58 -070029 node ethernet-input
30 interface GigabitEthernet2/1/0
31 data {
32 IP4: 0050.56b7.7c83 -> 0050.56b7.296d
33 GRE: 8.0.0.1 -> 1.2.5.6 mpls_unicast
34 }
35}
36
37packet-generator new {
38 name tovlan
39 limit 2
Ed Warnickecb9cada2015-12-08 15:45:58 -070040 node ethernet-input
41 interface GigabitEthernet2/1/0
42 data {
43 IP4: 0050.56b7.7c83 -> 0050.56b7.296d
44 GRE: 8.0.0.1 -> 1.2.6.6 mpls_unicast
45 }
46}
47
48packet-generator new {
49 name toqinq
50 limit 2
Ed Warnickecb9cada2015-12-08 15:45:58 -070051 node ethernet-input
52 interface GigabitEthernet2/1/0
53 data {
54 IP4: 0050.56b7.7c83 -> 0050.56b7.296d
55 GRE: 8.0.0.1 -> 1.2.7.6 mpls_unicast
56 }
57}
58
59