Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 1 | |
| 2 | set int ip address GigabitEthernet2/1/0 1.2.3.4/24 |
| 3 | set int state GigabitEthernet2/1/0 up |
| 4 | set int state tuntap-0 down |
| 5 | |
| 6 | |
| 7 | cre sub GigabitEthernet2/1/0 1 dot1q 1 |
| 8 | cre sub GigabitEthernet2/1/0 2 dot1q 2 |
| 9 | cre sub GigabitEthernet2/1/0 3 dot1q 3 |
| 10 | cre sub GigabitEthernet2/2/0 1 dot1q 1 |
| 11 | cre sub GigabitEthernet2/2/0 100 dot1q 100 |
| 12 | |
| 13 | |
| 14 | set int l2 tag-rewrite GigabitEthernet2/1/0.1 pop 1 |
| 15 | set int l2 tag-rewrite GigabitEthernet2/1/0.2 pop 1 |
| 16 | |
| 17 | |
| 18 | l2tp session add client 11::1 our 22::2 l2-interface GigabitEthernet2/1/0.1 |
| 19 | l2tp session add client 11::1 our 22::3 l2-interface GigabitEthernet2/1/0.2 local-session-id 2 l2-sublayer-present |
| 20 | |
| 21 | ip route 11::1/128 via GigabitEthernet2/2/0 |
| 22 | set ip6 neighbor GigabitEthernet2/2/0 11::1 00:02:04:06:08:0a |
| 23 | |
| 24 | enable ip6 interface GigabitEthernet2/2/0 |
| 25 | |
| 26 | set int ip6 l2tpv3 GigabitEthernet2/2/0 |
| 27 | |
| 28 | set int state GigabitEthernet2/1/0 up |
| 29 | set int state GigabitEthernet2/1/0.1 up |
| 30 | set int state GigabitEthernet2/1/0.2 up |
| 31 | set int state GigabitEthernet2/1/0.3 up |
| 32 | set int state GigabitEthernet2/2/0 up |
| 33 | |
| 34 | |
| 35 | trace add pg-input 2 |
| 36 | |
| 37 | clear error |
| 38 | clear run |
| 39 | clear int |
| 40 | |
| 41 | packet-generator new { |
| 42 | name decap |
| 43 | limit 10 |
| 44 | size 200-200 |
| 45 | no-recycle |
| 46 | node ethernet-input |
| 47 | interface GigabitEthernet2/2/0 |
| 48 | data { |
| 49 | IP6: 00:50:00:00:00:01 -> 00:50:56:b7:29:7a |
| 50 | L2TP: 11::1 -> 22::2 |
| 51 | L2TP: session_id 1 cookie 0xffffffffffffffff |
| 52 | IP4: 00:55:55:55:00:01 -> 00:dd:dd:dd:00:01 |
| 53 | UDP: 1.2.3.4 -> 5.6.7.8 |
| 54 | incrementing 8 |
| 55 | } |
| 56 | } |
| 57 | |
| 58 | packet-generator new { |
| 59 | name decap_bad_sid |
| 60 | limit 30 |
| 61 | size 200-200 |
| 62 | no-recycle |
| 63 | node ethernet-input |
| 64 | interface GigabitEthernet2/2/0 |
| 65 | data { |
| 66 | IP6: 00:50:00:00:00:01 -> 00:50:56:b7:29:7a |
| 67 | L2TP: 11::1 -> 22::2 |
| 68 | L2TP: session_id 0x999 cookie 0xffffffffffffffff |
| 69 | IP4: 00:55:55:55:00:01 -> 00:dd:dd:dd:00:01 |
| 70 | UDP: 1.2.3.4 -> 5.6.7.8 |
| 71 | incrementing 8 |
| 72 | } |
| 73 | } |
| 74 | |
| 75 | packet-generator new { |
| 76 | name decap_bad_cookie |
| 77 | limit 50 |
| 78 | size 200-200 |
| 79 | no-recycle |
| 80 | node ethernet-input |
| 81 | interface GigabitEthernet2/2/0 |
| 82 | data { |
| 83 | IP6: 00:50:00:00:00:01 -> 00:50:56:b7:29:7a |
| 84 | L2TP: 11::1 -> 22::2 |
| 85 | L2TP: session_id 1 cookie 0x3333ffffffffffff |
| 86 | IP4: 00:55:55:55:00:01 -> 00:dd:dd:dd:00:01 |
| 87 | UDP: 1.2.3.4 -> 5.6.7.8 |
| 88 | incrementing 8 |
| 89 | } |
| 90 | } |
| 91 | |
| 92 | packet-generator new { |
| 93 | name encap |
| 94 | limit 100 |
| 95 | no-recycle |
| 96 | node ethernet-input |
| 97 | interface GigabitEthernet2/1/0 |
| 98 | data { |
| 99 | IP4: 0000.5555.0002 -> 00:00:dd:dd:00:02 vlan 1 |
| 100 | UDP: 1.2.3.4 -> 5.6.7.8 |
| 101 | incrementing 8 |
| 102 | } |
| 103 | } |
| 104 | |
| 105 | packet-generator new { |
| 106 | name decap_sublayer |
| 107 | limit 300 |
| 108 | size 200-200 |
| 109 | no-recycle |
| 110 | node ethernet-input |
| 111 | interface GigabitEthernet2/2/0 |
| 112 | data { |
| 113 | IP6: 00:50:00:00:00:01 -> 00:50:56:b7:29:7a |
| 114 | L2TP: 11::1 -> 22::3 |
| 115 | L2TP: session_id 2 cookie 0xffffffffffffffff l2_sublayer 0 |
| 116 | IP4: 00:55:55:55:00:01 -> 00:dd:dd:dd:00:01 |
| 117 | UDP: 1.2.3.4 -> 5.6.7.8 |
| 118 | incrementing 8 |
| 119 | } |
| 120 | } |
| 121 | |
| 122 | packet-generator new { |
| 123 | name encap_sublayer |
| 124 | limit 700 |
| 125 | no-recycle |
| 126 | node ethernet-input |
| 127 | interface GigabitEthernet2/1/0 |
| 128 | data { |
| 129 | IP4: 0000.5555.0002 -> 00:00:dd:dd:00:02 vlan 2 |
| 130 | UDP: 1.2.3.4 -> 5.6.7.8 |
| 131 | incrementing 8 |
| 132 | } |
| 133 | } |
| 134 | |