[ovs-discuss] Router setup output:LOCAL problem

Tugrul Erdogan h.tugrul.erdogan at gmail.com
Wed Sep 28 12:44:15 UTC 2016


Hi all,

I am working on routing packages by operation system routing mechanism
on openvswitch bridges (10.4.4.5 -> 10.3.4.6). My topology contains
two ovs bridge (external and internal bridge) and between that ovs
bridges a namespace which has two ovs bridge ports. I want to route
packages which are comes from external ovs bridge to ovs internal
bridge ( the path contains namespace external and internal ports too).

I can see that the packeges comes ovs-brint and matches with
"output:LOCAL" flow rule but I can not nor see that packages at
operation system neighter see the "in_port=LOCAL" flow rule matches.
What can be the problem?

The configuration below (I try to output the packages to LOCAL to
operation system routing processing at ovs-brext and after that
routing processing re-direct same package to output port on
ovs-brext):


[~]# ovs-ofctl show ovs-brext
OFPT_FEATURES_REPLY (xid=0x2): dpid:000000900b2410ca
n_tables:254, n_buffers:256
capabilities: FLOW_STATS TABLE_STATS PORT_STATS QUEUE_STATS ARP_MATCH_IP
actions: output enqueue set_vlan_vid set_vlan_pcp strip_vlan
mod_dl_src mod_dl_dst mod_nw_src mod_nw_dst mod_nw_tos mod_tp_src
mod_tp_dst
 1(v-peer2): addr:00:00:00:00:00:00
     config:     PORT_DOWN
     state:      LINK_DOWN
     speed: 0 Mbps now, 0 Mbps max
 2(v-peer1): addr:00:00:00:00:00:00
     config:     PORT_DOWN
     state:      LINK_DOWN
     speed: 0 Mbps now, 0 Mbps max
 3(enp9s0f0): addr:00:90:0b:24:10:ca
     config:     0
     state:      0
     current:    10GB-FD FIBER
     advertised: 10GB-FD FIBER
     supported:  10GB-FD FIBER
     speed: 10000 Mbps now, 10000 Mbps max
 LOCAL(ovs-brext): addr:00:90:0b:24:10:ca
     config:     0
     state:      0
     speed: 0 Mbps now, 0 Mbps max
OFPT_GET_CONFIG_REPLY (xid=0x4): frags=normal miss_send_len=0



[~]# ovs-ofctl show ovs-brint
OFPT_FEATURES_REPLY (xid=0x2): dpid:000000900b2410cb
n_tables:254, n_buffers:256
capabilities: FLOW_STATS TABLE_STATS PORT_STATS QUEUE_STATS ARP_MATCH_IP
actions: output enqueue set_vlan_vid set_vlan_pcp strip_vlan
mod_dl_src mod_dl_dst mod_nw_src mod_nw_dst mod_nw_tos mod_tp_src
mod_tp_dst
 1(rv-peer2): addr:00:00:00:00:00:00
     config:     PORT_DOWN
     state:      LINK_DOWN
     speed: 0 Mbps now, 0 Mbps max
 2(rv-peer1): addr:00:00:00:00:00:00
     config:     PORT_DOWN
     state:      LINK_DOWN
     speed: 0 Mbps now, 0 Mbps max
 3(enp9s0f1): addr:00:90:0b:24:10:cb
     config:     0
     state:      0
     current:    10GB-FD FIBER
     advertised: 10GB-FD FIBER
     supported:  10GB-FD FIBER
     speed: 10000 Mbps now, 10000 Mbps max
 LOCAL(ovs-brint): addr:00:90:0b:24:10:cb
     config:     0
     state:      0
     speed: 0 Mbps now, 0 Mbps max
OFPT_GET_CONFIG_REPLY (xid=0x4): frags=normal miss_send_len=0



[~]# ovs-ofctl dump-flows ovs-brext
NXST_FLOW reply (xid=0x4):
 cookie=0x0, duration=260.230s, table=0, n_packets=260, n_bytes=25480,
idle_age=0, ip,in_port=3,nw_dst=10.3.4.6 actions=output:2
 cookie=0x0, duration=82763.504s, table=0, n_packets=437774868,
n_bytes=26267249426, idle_age=7, hard_age=65534, priority=0
actions=NORMAL


[~]# ovs-ofctl dump-flows ovs-brint
NXST_FLOW reply (xid=0x4):
 cookie=0x0, duration=241.808s, table=0, n_packets=242, n_bytes=23716,
idle_age=0, ip,in_port=2,nw_dst=10.3.4.6 actions=LOCAL
 cookie=0x0, duration=235.897s, table=0, n_packets=0, n_bytes=0,
idle_age=235, ip,in_port=LOCAL,nw_dst=10.3.4.6 actions=output:3
 cookie=0x0, duration=82761.087s, table=0, n_packets=126281614,
n_bytes=7577057394, idle_age=242, hard_age=65534, priority=0
actions=NORMAL



Thanks for your helps,
Best regards,
Tugrul



More information about the discuss mailing list