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 |
| 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 | |
| 38 | packet-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 | |
| 50 | packet-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 | |