Neale Ranns | 533bf08 | 2020-10-08 08:10:34 +0000 | [diff] [blame] | 1 | |
| 2 | create packet-generator interface pg0 |
| 3 | create packet-generator interface pg1 |
| 4 | |
| 5 | set int ip address pg0 192.168.0.1/24 |
| 6 | |
| 7 | set int state pg0 up |
| 8 | set int state pg1 up |
| 9 | set int mac address pg1 00:00:00:00:00:11 |
| 10 | create sub-interface pg1 12 dot1ad 32 inner-dot1q 33 |
| 11 | set int state pg1.12 up |
| 12 | set int l2 tag-rewrite pg1.12 pop 2 |
| 13 | |
| 14 | set ip neighbor pg0 192.168.0.2 1:2:3:4:5:6 static |
| 15 | |
| 16 | create gre tunnel dst 192.168.0.2 src 192.168.0.1 |
| 17 | set int state gre0 up |
| 18 | set int ip addr gre0 1.1.1.1/30 |
| 19 | |
| 20 | mpls table 0 |
| 21 | mpls tunnel add l2-only via 1.1.1.2 gre0 out-labels 33 |
| 22 | set int state mpls-tunnel0 up |
| 23 | set int mpls gre0 enable |
| 24 | |
| 25 | set int l2 xconnect pg1.12 mpls-tunnel0 |
| 26 | set int l2 xconnect mpls-tunnel0 pg1.12 |
| 27 | |
| 28 | mpls local-label add eos 33 via l2-input-on mpls-tunnel0 |
| 29 | |
| 30 | trace add pg-input 100 |
| 31 | |
| 32 | packet-generator new { |
| 33 | name g2v |
| 34 | limit 1 |
| 35 | node ip4-input |
| 36 | interface pg0 |
| 37 | data { |
| 38 | hex 0x4500002000000000fe2f3b5bc0a80002c0a800010000884700021140000000000011005056b77c83010203040506 |
| 39 | } |
| 40 | } |
| 41 | |
| 42 | packet-generator new { |
| 43 | name v2g |
| 44 | limit 1 |
| 45 | node ethernet-input |
Neale Ranns | 0e12131 | 2020-10-08 14:02:35 +0000 | [diff] [blame^] | 46 | interface pg1 |
Neale Ranns | 533bf08 | 2020-10-08 08:10:34 +0000 | [diff] [blame] | 47 | data { |
| 48 | hex 0x000000000011005056b77c8388a80020810000210102030405060708 |
| 49 | } |
| 50 | } |
| 51 | |
| 52 | pack en g2v |
| 53 | sh trace |