Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 1 | |
| 2 | |
| 3 | comment { test ipv4 port/vlan/qinq rewrites by generating arps } |
| 4 | |
| 5 | set int state tuntap-0 down |
| 6 | |
| 7 | set int ip address GigabitEthernet2/2/0 1.2.5.4/24 |
| 8 | |
| 9 | cre sub GigabitEthernet2/2/0 1 dot1q 6 exact-match |
| 10 | set int ip address GigabitEthernet2/2/0.1 1.2.6.4/24 |
| 11 | |
| 12 | cre sub GigabitEthernet2/2/0 2 dot1ad 7 inner-dot1q 8 exact-match |
| 13 | set int ip address GigabitEthernet2/2/0.2 1.2.7.4/24 |
| 14 | |
| 15 | set int state GigabitEthernet2/1/0 up |
| 16 | set int state GigabitEthernet2/2/0 up |
| 17 | set int state GigabitEthernet2/2/0.1 up |
| 18 | set int state GigabitEthernet2/2/0.2 up |
| 19 | |
| 20 | trace add pg-input 2 |
| 21 | |
| 22 | cle er |
| 23 | cle int |
| 24 | cle run |
| 25 | |
| 26 | packet-generator new { |
| 27 | name toport |
| 28 | limit 2 |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 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 | } |
| 35 | } |
| 36 | |
| 37 | packet-generator new { |
| 38 | name tovlan |
| 39 | limit 2 |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 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 | } |
| 46 | } |
| 47 | |
| 48 | packet-generator new { |
| 49 | name toqinq |
| 50 | limit 2 |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 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 | } |
| 57 | } |
| 58 | |
| 59 | |