[ovs-discuss] How to find GRE Tunnel ID in OVS ?

Ben Pfaff blp at ovn.org
Fri Dec 15 16:30:31 UTC 2017


Please don't drop the mailing list.

I don't understand.  It sounds like you want to extract the tunnel id
and then set the tunnel id to that value.  That doesn't make sense.
What do you actually want to do?

On Thu, Dec 14, 2017 at 08:49:56PM -0500, Vasu S wrote:
> Hi Ben,
> 
> I need to set the tunnel id to the actual id of the GRE tunnel present in
> the topology. That's I need to know a way to extract the tunnel id and set
> that value in the flow indicated earlier.
> 
> -regards
> 
> 
> On Dec 14, 2017 5:27 PM, "Ben Pfaff" <blp at ovn.org> wrote:
> 
> What's wrong with that flow?
> 
> On Thu, Dec 14, 2017 at 05:20:02PM -0500, Vasu S wrote:
> > Thanks Ben,
> >
> > I wanted to know where to find the value for this tun_id for an existing
> > GRE tunnel ?
> > I want to add a flow which looks like :
> >
> > sudo ovs-ofctl -O OpenFlow13 add-flow ovsprx1
> > table=0,in_port=4,dl_dst=52:54:00:78:59:82,dl_type=0x0800,
> nw_dst=10.0.35.12,actions=mod_dl_dst:52:54:00:6c:11:95,
> > set_tunnel:0x0,goto_table:10
> >
> > So, I need to know the tunnel id to set it.
> > Appreciate your help.
> >
> > On Thu, Dec 14, 2017 at 5:06 PM, Ben Pfaff <blp at ovn.org> wrote:
> >
> > > On Thu, Dec 14, 2017 at 04:54:48PM -0500, Vasu S wrote:
> > > > Does any one know any command to find out the GRE tunnel id in OVS.
> > > > I need this to configure flows on OF , but don't know how to extract
> the
> > > > tunnel id.
> > >
> > > OVS calls this the tun_id field.  See ovs-fields(7).
> > >


More information about the discuss mailing list