[ovs-discuss] Ping not working - No ARP packets passing between bridge and interface

Mathias Strufe (DFKI) mathias.strufe at dfki.de
Thu Jan 25 18:24:33 UTC 2018


Dear all,

I try to setup OVS but fail ... as soon as I add the interface to the 
OVS bridge I can't ping anymore the interface of the OVS machine ...
and yes the interface doesn't have any IP anymore ... the Bridge has the 
IP ...
If I remove again the port from the bridge I can ping again ... so the 
connection is there ...

On ens 3 is the ODL controller  .... I'm using ubuntu 16.04 and 
4.4.0-112-generic kernel!
If I know try to ping from another machine (IP 192.168.120.10) to OVSbr2 
... I can see on tcpdump on the ens5 interface the arp request:


tcpdump: verbose output suppressed, use -v or -vv for full protocol 
decode
listening on ens5, link-type EN10MB (Ethernet), capture size 262144 
bytes
18:14:01.917154 ARP, Request who-has 192.168.120.14 tell 192.168.120.10, 
length 28
18:14:02.917072 ARP, Request who-has 192.168.120.14 tell 192.168.120.10, 
length 28
18:14:03.917082 ARP, Request who-has 192.168.120.14 tell 192.168.120.10, 
length 28
18:14:04.917172 ARP, Request who-has 192.168.120.14 tell 192.168.120.10, 
length 28



but on the tcpdump on OVSbr2

is absolutly nothing arriving !!!! :o
and therefore it seems I didnt get any ping echo ...


Please find below some outputs I'm using for troubleshooting ... may 
sombody have an idea!

May it is important? All machines are VMs inside Openstack ... so I use 
Openstack to build up a test network with 4 VMs to play a bit arround 
...



VM1
IP 192.168.120.10

VM2 (OVS)
IP 192.168.120.14
IP 192.168.130.3 (connection to ODL controller)
IP 192.168.110.3

VM3
IP 192.168.110.4

VM4 (OpenDaylight)
IP 192.168.130.11


Thanks a lot!
Mathias.


Ifconfig:
OVSbr1    Link encap:Ethernet  HWaddr 0e:3c:67:a3:53:46
           inet addr:192.168.110.3  Bcast:0.0.0.0  Mask:255.255.255.0
           inet6 addr: fe80::c3c:67ff:fea3:5346/64 Scope:Link
           UP BROADCAST RUNNING MULTICAST  MTU:1458  Metric:1
           RX packets:3 errors:0 dropped:1 overruns:0 frame:0
           TX packets:11 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:1
           RX bytes:808 (808.0 B)  TX bytes:774 (774.0 B)

OVSbr2    Link encap:Ethernet  HWaddr 56:7d:76:75:15:40
           inet addr:192.168.120.14  Bcast:0.0.0.0  Mask:255.255.255.0
           inet6 addr: fe80::547d:76ff:fe75:1540/64 Scope:Link
           UP BROADCAST RUNNING MULTICAST  MTU:1458  Metric:1
           RX packets:3 errors:0 dropped:1 overruns:0 frame:0
           TX packets:11 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:1
           RX bytes:841 (841.0 B)  TX bytes:774 (774.0 B)

ens3      Link encap:Ethernet  HWaddr fa:16:3e:6b:f4:c1
           inet addr:192.168.150.8  Bcast:192.168.150.255  
Mask:255.255.255.0
           inet6 addr: fe80::f816:3eff:fe6b:f4c1/64 Scope:Link
           UP BROADCAST RUNNING MULTICAST  MTU:1458  Metric:1
           RX packets:1107 errors:0 dropped:0 overruns:0 frame:0
           TX packets:1016 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:1000
           RX bytes:287041 (287.0 KB)  TX bytes:151599 (151.5 KB)

ens4      Link encap:Ethernet  HWaddr fa:16:3e:29:e3:e5
           UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1458  Metric:1
           RX packets:112 errors:0 dropped:0 overruns:0 frame:0
           TX packets:27 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:1000
           RX bytes:5992 (5.9 KB)  TX bytes:3171 (3.1 KB)

ens5      Link encap:Ethernet  HWaddr fa:16:3e:f5:68:21
           UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1458  Metric:1
           RX packets:191 errors:0 dropped:0 overruns:0 frame:0
           TX packets:40 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:1000
           RX bytes:11840 (11.8 KB)  TX bytes:4501 (4.5 KB)

ens6      Link encap:Ethernet  HWaddr fa:16:3e:93:ab:ba
           inet addr:192.168.130.5  Bcast:192.168.130.255  
Mask:255.255.255.0
           inet6 addr: fe80::f816:3eff:fe93:abba/64 Scope:Link
           UP BROADCAST RUNNING MULTICAST  MTU:1458  Metric:1
           RX packets:1505 errors:0 dropped:0 overruns:0 frame:0
           TX packets:1213 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:1000
           RX bytes:120604 (120.6 KB)  TX bytes:852967 (852.9 KB)

lo        Link encap:Local Loopback
           inet addr:127.0.0.1  Mask:255.0.0.0
           inet6 addr: ::1/128 Scope:Host
           UP LOOPBACK RUNNING  MTU:65536  Metric:1
           RX packets:162 errors:0 dropped:0 overruns:0 frame:0
           TX packets:162 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:1
           RX bytes:12552 (12.5 KB)  TX bytes:12552 (12.5 KB)

ovs-system Link encap:Ethernet  HWaddr 1a:32:d9:a5:20:2b
           BROADCAST MULTICAST  MTU:1500  Metric:1
           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:1
           RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)


================================

Route:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use 
Iface
0.0.0.0         192.168.150.1   0.0.0.0         UG    0      0        0 
ens3
10.99.0.0       192.168.150.1   255.255.240.0   UG    0      0        0 
ens3
169.254.169.254 192.168.150.1   255.255.255.255 UGH   0      0        0 
ens3
192.168.110.0   0.0.0.0         255.255.255.0   U     0      0        0 
OVSbr1
192.168.120.0   0.0.0.0         255.255.255.0   U     0      0        0 
OVSbr2
192.168.130.0   0.0.0.0         255.255.255.0   U     0      0        0 
ens6
192.168.150.0   0.0.0.0         255.255.255.0   U     0      0        0 
ens3

================================

iptable:
Chain PREROUTING (policy ACCEPT 2 packets, 192 bytes)
  pkts bytes target     prot opt in     out     source               
destination

Chain INPUT (policy ACCEPT 2 packets, 192 bytes)
  pkts bytes target     prot opt in     out     source               
destination

Chain OUTPUT (policy ACCEPT 10 packets, 902 bytes)
  pkts bytes target     prot opt in     out     source               
destination

Chain POSTROUTING (policy ACCEPT 10 packets, 902 bytes)
  pkts bytes target     prot opt in     out     source               
destination

================================

ip forward enabled?
1

================================

OVS Version
ovs-vsctl (Open vSwitch) 2.5.2
Compiled Oct 17 2017 16:38:57
DB Schema 7.12.1

================================

Database config:
9ea29965-e2bd-40b1-be10-4d3279374ba6
     Bridge "OVSbr2"
         Controller "tcp:192.168.130.11:6633"
             is_connected: true
         fail_mode: secure
         Port "ens5"
             Interface "ens5"
         Port "OVSbr2"
             Interface "OVSbr2"
                 type: internal
     Bridge "OVSbr1"
         Controller "tcp:192.168.130.11:6633"
             is_connected: true
         fail_mode: secure
         Port "OVSbr1"
             Interface "OVSbr1"
                 type: internal
         Port "ens4"
             Interface "ens4"
     ovs_version: "2.5.2"

================================

List Ports on OVSbr1
ens4

List Ports on OVSbr2
ens5

================================

List Ports statistics on OVSbr1
OFPST_PORT reply (xid=0x2): 2 ports
   port LOCAL: rx pkts=3, bytes=808, drop=1, errs=0, frame=0, over=0, 
crc=0
            tx pkts=11, bytes=774, drop=0, errs=0, coll=0
   port  1: rx pkts=113, bytes=6034, drop=0, errs=0, frame=0, over=0, 
crc=0
            tx pkts=27, bytes=3171, drop=0, errs=0, coll=0

List Ports statistics on OVSbr2
OFPST_PORT reply (xid=0x2): 2 ports
   port LOCAL: rx pkts=3, bytes=841, drop=1, errs=0, frame=0, over=0, 
crc=0
            tx pkts=11, bytes=774, drop=0, errs=0, coll=0
   port  1: rx pkts=191, bytes=11840, drop=0, errs=0, frame=0, over=0, 
crc=0
            tx pkts=40, bytes=4501, drop=0, errs=0, coll=0

================================

List Ports statistics on OVSbr1
OFPST_PORT_DESC reply (xid=0x2):
  1(ens4): addr:fa:16:3e:29:e3:e5
      config:     0
      state:      0
      speed: 0 Mbps now, 0 Mbps max
  LOCAL(OVSbr1): addr:0e:3c:67:a3:53:46
      config:     0
      state:      0
      speed: 0 Mbps now, 0 Mbps max

List Ports statistics on OVSbr2
OFPST_PORT_DESC reply (xid=0x2):
  1(ens5): addr:fa:16:3e:f5:68:21
      config:     0
      state:      0
      speed: 0 Mbps now, 0 Mbps max
  LOCAL(OVSbr2): addr:56:7d:76:75:15:40
      config:     0
      state:      0
      speed: 0 Mbps now, 0 Mbps max

================================

List Bridge info OVSbr1
_uuid               : a3673c0c-949e-4653-ba05-37c698dfce38
auto_attach         : []
controller          : [53a6a41e-34c1-423f-9871-031b9af03c25]
datapath_id         : "00000e3c67a35346"
datapath_type       : system
datapath_version    : "<unknown>"
external_ids        : {}
fail_mode           : secure
flood_vlans         : []
flow_tables         : {}
ipfix               : []
mcast_snooping_enable: false
mirrors             : []
name                : "OVSbr1"
netflow             : []
other_config        : {}
ports               : [70f3d8e7-595d-4dc1-8c12-b1ee1610ea1d, 
76425655-f79b-4a40-aa83-8b69266cda74]
protocols           : ["OpenFlow10", "OpenFlow11", "OpenFlow12", 
"OpenFlow13"]
rstp_enable         : false
rstp_status         : {}
sflow               : []
status              : {}
stp_enable          : false

List Bridge info OVSbr2
_uuid               : 75767d54-3675-4015-8046-aa92363f459f
auto_attach         : []
controller          : [2ec224f5-21cc-4888-971f-6b69f0c4833a]
datapath_id         : "0000567d76751540"
datapath_type       : system
datapath_version    : "<unknown>"
external_ids        : {}
fail_mode           : secure
flood_vlans         : []
flow_tables         : {}
ipfix               : []
mcast_snooping_enable: false
mirrors             : []
name                : "OVSbr2"
netflow             : []
other_config        : {}
ports               : [1606e315-ad8a-45e4-b5f7-c88b53766b52, 
2728d530-07dd-416c-85ed-a1843c213a77]
protocols           : ["OpenFlow10", "OpenFlow11", "OpenFlow12", 
"OpenFlow13"]
rstp_enable         : false
rstp_status         : {}
sflow               : []
status              : {}
stp_enable          : false

================================

Dump Flows OVSbr1:
NXST_FLOW reply (xid=0x4):
  cookie=0x2b00000000000046, duration=162.117s, table=0, n_packets=0, 
n_bytes=0, idle_age=162, priority=100,dl_type=0x88cc 
actions=CONTROLLER:65535
  cookie=0x2b000000000004c0, duration=158.114s, table=0, n_packets=97, 
n_bytes=4718, idle_age=0, priority=2,in_port=1 actions=CONTROLLER:65535
  cookie=0xa, duration=162.116s, table=0, n_packets=10, n_bytes=684, 
idle_age=152, priority=0 actions=CONTROLLER:65535

Dump Flows OVSbr2:
NXST_FLOW reply (xid=0x4):
  cookie=0x2b00000000000047, duration=162.046s, table=0, n_packets=0, 
n_bytes=0, idle_age=162, priority=100,dl_type=0x88cc 
actions=CONTROLLER:65535
  cookie=0x2b000000000004c6, duration=158.119s, table=0, n_packets=169, 
n_bytes=9175, idle_age=0, priority=2,in_port=1 actions=CONTROLLER:65535
  cookie=0x2b00000000000047, duration=162.046s, table=0, n_packets=8, 
n_bytes=656, idle_age=152, priority=0 actions=drop







More information about the discuss mailing list