summaryrefslogtreecommitdiffstats
path: root/src/vnet/vxlan-gpe/dir.dox
blob: c154733b21f4cbdd33abc3130ea2fea308a89a94 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/*
 *
 * Copyright (c) 2013 Cisco and/or its affiliates.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at:
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
/**
 @dir
 @brief VXLAN GPE 

 Based on IETF: draft-quinn-vxlan-gpe-03.txt

Abstract

   This draft describes extending Virtual eXtensible Local Area Network
   (VXLAN), via changes to the VXLAN header, with three new
   capabilities: support for multi-protocol encapsulation, operations,
   administration and management (OAM) signaling and explicit
   versioning.

 See file: vxlan-gpe-rfc.txt 
 
*/
or: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */ }
set int ip address GigabitEthernet2/1/0 1.2.3.4/24
set int state GigabitEthernet2/1/0 up 
set int state tuntap-0 down


cre sub GigabitEthernet2/1/0 1 dot1q 1 
cre sub GigabitEthernet2/1/0 2 dot1q 2 
cre sub GigabitEthernet2/1/0 3 dot1q 3
cre sub GigabitEthernet2/2/0 1 dot1q 1 
cre sub GigabitEthernet2/2/0 100 dot1q 100 


set int l2 tag-rewrite GigabitEthernet2/1/0.1 pop 1
set int l2 tag-rewrite GigabitEthernet2/1/0.2 pop 1


l2tp session add client 11::1 our 22::2 l2-interface GigabitEthernet2/1/0.1
l2tp session add client 11::1 our 22::3 l2-interface GigabitEthernet2/1/0.2 local-session-id 2 l2-sublayer-present

ip route 11::1/128 via GigabitEthernet2/2/0
set ip6 neighbor GigabitEthernet2/2/0 11::1 00:02:04:06:08:0a

enable ip6 interface GigabitEthernet2/2/0 

set int ip6 l2tpv3 GigabitEthernet2/2/0

set int state GigabitEthernet2/1/0 up
set int state GigabitEthernet2/1/0.1 up
set int state GigabitEthernet2/1/0.2 up
set int state GigabitEthernet2/1/0.3 up
set int state GigabitEthernet2/2/0 up


trace add pg-input 2

clear error
clear run
clear int

packet-generator new {
  name decap
  limit 10
  size 200-200
  no-recycle
  node ethernet-input
  interface GigabitEthernet2/2/0
  data {
      IP6: 00:50:00:00:00:01 -> 00:50:56:b7:29:7a 
      L2TP: 11::1 -> 22::2 
      L2TP: session_id 1 cookie 0xffffffffffffffff 
      IP4: 00:55:55:55:00:01 -> 00:dd:dd:dd:00:01
      UDP: 1.2.3.4 -> 5.6.7.8
      incrementing 8
  }
}

packet-generator new {
  name decap_bad_sid
  limit 30
  size 200-200
  no-recycle
  node ethernet-input
  interface GigabitEthernet2/2/0
  data {
      IP6: 00:50:00:00:00:01 -> 00:50:56:b7:29:7a 
      L2TP: 11::1 -> 22::2 
      L2TP: session_id 0x999 cookie 0xffffffffffffffff
      IP4: 00:55:55:55:00:01 -> 00:dd:dd:dd:00:01
      UDP: 1.2.3.4 -> 5.6.7.8
      incrementing 8
  }
}

packet-generator new {
  name decap_bad_cookie
  limit 50
  size 200-200
  no-recycle
  node ethernet-input
  interface GigabitEthernet2/2/0
  data {
      IP6: 00:50:00:00:00:01 -> 00:50:56:b7:29:7a 
      L2TP: 11::1 -> 22::2 
      L2TP: session_id 1 cookie 0x3333ffffffffffff
      IP4: 00:55:55:55:00:01 -> 00:dd:dd:dd:00:01
      UDP: 1.2.3.4 -> 5.6.7.8
      incrementing 8
  }
}

packet-generator new {
  name encap
  limit 100
  no-recycle
  node ethernet-input
  interface GigabitEthernet2/1/0
  data {
      IP4: 0000.5555.0002 -> 00:00:dd:dd:00:02 vlan 1
      UDP: 1.2.3.4 -> 5.6.7.8
      incrementing 8
  }
}

packet-generator new {
  name decap_sublayer
  limit 300
  size 200-200
  no-recycle
  node ethernet-input
  interface GigabitEthernet2/2/0
  data {
      IP6: 00:50:00:00:00:01 -> 00:50:56:b7:29:7a 
      L2TP: 11::1 -> 22::3
      L2TP: session_id 2 cookie 0xffffffffffffffff l2_sublayer 0
      IP4: 00:55:55:55:00:01 -> 00:dd:dd:dd:00:01
      UDP: 1.2.3.4 -> 5.6.7.8
      incrementing 8
  }
}

packet-generator new {
  name encap_sublayer
  limit 700
  no-recycle
  node ethernet-input
  interface GigabitEthernet2/1/0
  data {
      IP4: 0000.5555.0002 -> 00:00:dd:dd:00:02 vlan 2
      UDP: 1.2.3.4 -> 5.6.7.8
      incrementing 8
  }
}