blob: d41b9dbf7fc25c530e9e52c1f032556c364c3336 [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
29 no-recycle
30 node ethernet-input
31 interface GigabitEthernet2/1/0
32 data {
33 IP4: 0050.56b7.7c83 -> 0050.56b7.296d
34 GRE: 8.0.0.1 -> 1.2.5.6 mpls_unicast
35 }
36}
37
38packet-generator new {
39 name tovlan
40 limit 2
41 no-recycle
42 node ethernet-input
43 interface GigabitEthernet2/1/0
44 data {
45 IP4: 0050.56b7.7c83 -> 0050.56b7.296d
46 GRE: 8.0.0.1 -> 1.2.6.6 mpls_unicast
47 }
48}
49
50packet-generator new {
51 name toqinq
52 limit 2
53 no-recycle
54 node ethernet-input
55 interface GigabitEthernet2/1/0
56 data {
57 IP4: 0050.56b7.7c83 -> 0050.56b7.296d
58 GRE: 8.0.0.1 -> 1.2.7.6 mpls_unicast
59 }
60}
61
62