Skip to contentSkip to conversation

macvlan on host, macvtap guest, routing via host gives error

Qemu-devel Nikunj Master 1 participant 1 message Dec 31, 2013

lore
Share & tools
lore
#0 lore raw

Hello,

I have a setup on CentOS 6.5

Host configuration:
macvlan0-> 10.0.0.2/24
ppp0 -> connected to the internet

Guest configuration
macvtap0-> 10.0.0.4/24
gateway -> 10.0.0.2

Other host on same network
eth0 -> 10.0.0.3/24
gateway -> 10.0.0.2

Ping results
from 10.0.0.2 to 10.0.0.4 and vice versa : OK from 10.0.0.2 to 10.0.0.3 and vice versa : OK from 10.0.0.3 to 10.0.0.4 and vice versa : OK from 10.0.0.2 to out-network : OK
from 10.0.0.3 to out-network : OK
from 10.0.0.4 to out-network : OK

http result
within the network : OK
from 10.0.0.2 to out-network : OK
from 10.0.0.3 to out-network : OK
from 10.0.0.4 to out-network : FAILED

I ran the following command
echo 255 > /proc/sys/net/netfilter/nf_conntrack_log_invalid and got the below error:
kernel:nf_ct_tcp: invalid packet ignored

Please help me solve the problem. I have spent so many sleepless nights after this.

Thank you.