[ovs-discuss] LISP tunneling - port type=lisp, how to get the port number to configure the flows?

Diego Montero dmontero at ac.upc.edu
Thu May 15 18:08:59 UTC 2014


Hi Lori,

Thanks for your answer. The problem, as you mentioned, was the kernel module. 
I installed the kernel module from OVS and now I am able to see the port 
number (type=lisp).

$ovs-ofctl show br0
OFPT_FEATURES_REPLY (xid=0x2): dpid:0000d8d385637d15
n_tables:254, n_buffers:256
capabilities: FLOW_STATS TABLE_STATS PORT_STATS QUEUE_STATS ARP_MATCH_IP
actions: OUTPUT SET_VLAN_VID SET_VLAN_PCP STRIP_VLAN SET_DL_SRC SET_DL_DST 
SET_NW_SRC SET_NW_DST SET_NW_TOS SET_TP_SRC SET_TP_DST ENQUEUE
 1(vnet0): addr:fe:54:00:1c:6e:b2
     config:     0
     state:      0
     current:    10MB-FD COPPER
     speed: 10 Mbps now, 0 Mbps max
 3(lisp0): addr:ba:57:0d:1d:c4:a4
     config:     0
     state:      0
     speed: 0 Mbps now, 0 Mbps max
 LOCAL(br0): addr:d8:d3:85:63:7d:15
     config:     PORT_DOWN
     state:      LINK_DOWN
     speed: 0 Mbps now, 0 Mbps max
OFPT_GET_CONFIG_REPLY (xid=0x4): frags=normal miss_send_len=0

Regards,
Diego Montero.


On Thursday, May 15, 2014 02:25:21 PM Lori Jakab wrote:
> Hi Diego,
> 
> On 5/15/14, 8:48 AM, Diego Montero wrote:
> > Hi,
> > 
> > I'm trying to configure a LISP tunnel between two ovs (each in a different
> > host), but I found some troubles obtaining the port number once I add a
> > port type=lisp.
> > According to the README-lisp, first I add the lisp port without problems
> > (also the other required ports).
> > 
> > $ ovs-vsctl add-port br0 lisp0 -- set Interface lisp0 type=lisp
> > options:remote_ip=flow options:key=flow
> > 
> > $ ovs-vsctl show
> > dc921bc7-88f5-42e8-baeb-b397fe321fa2
> > 
> >      Bridge "br0"
> >      
> >          Port "br0"
> >          
> >              Interface "br0"
> >              
> >                  type: internal
> >          
> >          Port "eth2"
> >          
> >              Interface "eth2"
> >          
> >          Port "lisp0"
> >          
> >              Interface "lisp0"
> >              
> >                  type: lisp
> >                  options: {key=flow, remote_ip=flow}
> >          
> >          Port "tap0"
> >          
> >              Interface "tap0"
> >      
> >      ovs_version: "2.1.2"
> > 
> > Now, I need to identify the port number that is assigned to 'lisp0' to
> > configure the flows. I used ovs-ofctl show br0 to obtain this information:
> > 
> > $ ovs-ofctl show br0
> > OFPT_FEATURES_REPLY (xid=0x2): dpid:00001cc1de073834
> > n_tables:254, n_buffers:256
> > capabilities: FLOW_STATS TABLE_STATS PORT_STATS QUEUE_STATS ARP_MATCH_IP
> > actions: OUTPUT SET_VLAN_VID SET_VLAN_PCP STRIP_VLAN SET_DL_SRC SET_DL_DST
> > SET_NW_SRC SET_NW_DST SET_NW_TOS SET_TP_SRC SET_TP_DST ENQUEUE
> > 
> >   1(eth2): addr:1c:c1:de:07:38:34
> >   
> >       config:     0
> >       state:      0
> >       current:    1GB-FD COPPER AUTO_NEG
> >       advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD 1GB-FD AUTO_NEG
> >       supported:  10MB-HD 10MB-FD 100MB-HD 100MB-FD 1GB-FD COPPER AUTO_NEG
> >       speed: 1000 Mbps now, 1000 Mbps max
> >   
> >   LOCAL(br0): addr:1c:c1:de:07:38:34
> >   
> >       config:     0
> >       state:      0
> >       speed: 0 Mbps now, 0 Mbps max
> > 
> > OFPT_GET_CONFIG_REPLY (xid=0x4): frags=normal miss_send_len=0
> > 
> > It shows that eth2 is in port 1 but there is no info regarding lisp0.
> > I hope anyone can provide me some clues.
> 
> If the lisp0 vport doesn't show up in the ovs-ofctl show br0 output it
> means that it wasn't configured successfully.  You should take a look at
> the output of 'dmesg' or '/var/log/messages' to see if there is some
> error logged.
> 
> Which kernel module are you using? LISP is not part of the upstream
> Linux openvswitch kernel module, so you need the out-of-tree kernel
> module that comes with the OVS distribution.
> 
> HTH,
> -Lori
> 
> > Many Thanks.
> > 
> > Regards,
> > Diego Montero.
> > _______________________________________________
> > discuss mailing list
> > discuss at openvswitch.org
> > http://openvswitch.org/mailman/listinfo/discuss



More information about the discuss mailing list