blob: 337805aa44c0aa98d53f3246d2be225d51540b06 [file] [log] [blame]
Ed Warnickecb9cada2015-12-08 15:45:58 -07001
2set int ip address GigabitEthernet2/1/0 1.2.3.4/24
3set int state GigabitEthernet2/1/0 up
4set int state tuntap-0 down
5
6
7cre sub GigabitEthernet2/1/0 1 dot1q 1
8cre sub GigabitEthernet2/1/0 2 dot1q 2
9cre sub GigabitEthernet2/1/0 3 dot1q 3
10cre sub GigabitEthernet2/2/0 1 dot1q 1
11cre sub GigabitEthernet2/2/0 100 dot1q 100
12
13
14set int l2 tag-rewrite GigabitEthernet2/1/0.1 pop 1
15set int l2 tag-rewrite GigabitEthernet2/1/0.2 pop 1
16
17
18l2tp session add client 11::1 our 22::2 l2-interface GigabitEthernet2/1/0.1
19l2tp session add client 11::1 our 22::3 l2-interface GigabitEthernet2/1/0.2 local-session-id 2 l2-sublayer-present
20
21ip route 11::1/128 via GigabitEthernet2/2/0
22set ip6 neighbor GigabitEthernet2/2/0 11::1 00:02:04:06:08:0a
23
24enable ip6 interface GigabitEthernet2/2/0
25
26set int ip6 l2tpv3 GigabitEthernet2/2/0
27
28set int state GigabitEthernet2/1/0 up
29set int state GigabitEthernet2/1/0.1 up
30set int state GigabitEthernet2/1/0.2 up
31set int state GigabitEthernet2/1/0.3 up
32set int state GigabitEthernet2/2/0 up
33
34
35trace add pg-input 2
36
37clear error
38clear run
39clear int
40
41packet-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
58packet-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
75packet-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
92packet-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
105packet-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
122packet-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