blob: 1cb699409b1d1feb57b5e8aedf57432cd701591d [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
Damjan Marion3153f002022-05-14 00:14:02 +020026packet-generator new { \
27 name toport \
28 limit 2 \
29 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 } \
Ed Warnickecb9cada2015-12-08 15:45:58 -070035}
36
Damjan Marion3153f002022-05-14 00:14:02 +020037packet-generator new { \
38 name tovlan \
39 limit 2 \
40 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 } \
Ed Warnickecb9cada2015-12-08 15:45:58 -070046}
47
Damjan Marion3153f002022-05-14 00:14:02 +020048packet-generator new { \
49 name toqinq \
50 limit 2 \
51 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 } \
Ed Warnickecb9cada2015-12-08 15:45:58 -070057}
58
59