Git Product home page Git Product logo

Comments (4)

edwarnicke avatar edwarnicke commented on September 23, 2024

GRE CLI docs

from vpp-agent.

edwarnicke avatar edwarnicke commented on September 23, 2024

@bganne am I understanding correctly that you can simply create a GRE interface of type erspan and then 'span' to that interface from another interface?

from vpp-agent.

bganne avatar bganne commented on September 23, 2024

Yes, that should work, eg.

comment { create a xconnect between 2 user ports we want to span }
create packet-generator interface pg0
create packet-generator interface pg1
set int state pg0 up
set int state pg1 up
set int l2 xconnect pg0 pg1
set int l2 xconnect pg1 pg0

comment { GRE underlay }
create packet-generator interface pg2
set int ip address pg2 10.0.1.100/24
set ip arp pg2 10.0.1.22 6:5:4:3:2:1 static
set int state pg2 up

comment { GRE ERSPAN }
create gre tunnel dst 10.0.1.22 src 10.0.1.100 erspan 621
set int state gre0 up

comment { span a user interface (both directions) }
set int span pg0 destination gre0

comment { generate user traffic }
packet-generator new {
  name 0-to-1
  limit 1
  node ethernet-input
  size 64-64
  interface pg0
  data {
    0x8881: 4:4:4:4:4:4 -> 5:5:5:5:5:5
    incrementing 100
  }
}
packet-generator new {
  name 1-to-0
  limit 1
  node ethernet-input
  size 64-64
  interface pg1
  data {
    0x8881: 5:5:5:5:5:5 -> 4:4:4:4:4:4
    incrementing 100
  }
}
packet-generator enable

from vpp-agent.

ondrej-fabry avatar ondrej-fabry commented on September 23, 2024

#1445 was merged into dev branch

from vpp-agent.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.