Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API for GRE (including ERSPAN) #1387

Closed
edwarnicke opened this issue Jun 12, 2019 · 4 comments
Closed

API for GRE (including ERSPAN) #1387

edwarnicke opened this issue Jun 12, 2019 · 4 comments

Comments

@edwarnicke
Copy link
Contributor

We need to support ERSPAN ( see #1386 for SPAN issue) as well as GRE tunneling for remote mechanisms for NSM.

https://github.com/FDio/vpp/blob/b7b929931a/src/vnet/gre/gre.api#L18

@edwarnicke
Copy link
Contributor Author

GRE CLI docs

@edwarnicke
Copy link
Contributor Author

@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?

@bganne
Copy link

bganne commented Jun 17, 2019

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

@rewenset rewenset mentioned this issue Aug 23, 2019
@ondrej-fabry
Copy link
Member

#1445 was merged into dev branch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants