Hi,
I am using a GRE tunnel to connect two VMs, VM-A and VM-B. VM-B is
connected to other networks as well.
I want the packets terminating at the GRE tunnel on VM-B, to do an L3
lookup, and to get forwarded based on the result of the L3 lookup.
To do this, i changed the destination MAC at the ingress (on VM-A) to match
the MAC address of one of the ports on VM-B. This way when the packets
emerge from the GRE tunnel, they already have a dest MAC that matches one
of its port MACs. I assumed that because of this the kernel will
automatically do an L3 lookup and will forward the packet out to the right
place. However, this isnt happening, and am wondering why.
I see that i am able to ping the interface if it resides on VM-B. I can
however, not get the VM-B to L3 route that packet out. I want the packet to
be looked up in the L3 kernel table and get forwarded out. Is there
anything that i am missing here.
My configs:
*The packet arrives on a GRE tunnel (port 4) and i hence add a rule which
says that anything arriving on port 4, should undergo normal (L2 and L3)
processing. However, since the dest MAC matches one of the port's MACs, i
expect the packet to undergo L3 processing.*
root@:/home/ubuntu# ovs-ofctl show OFSWITCH
OFPT_FEATURES_REPLY (xid=0x2): dpid:000006451ad21ced
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(eth0): addr:06:45:1a:d2:1c:ed
config: 0
state: 0
speed: 0 Mbps now, 0 Mbps max
4(gre0): addr:06:48:6f:be:b0:f5
config: 0
state: 0
speed: 0 Mbps now, 0 Mbps max
LOCAL(OFSWITCH): addr:06:45:1a:d2:1c:ed
config: 0
state: 0
speed: 0 Mbps now, 0 Mbps max
OFPT_GET_CONFIG_REPLY (xid=0x4): frags=normal miss_send_len=0
root@:/home/ubuntu#
root@:/home/ubuntu# ovs-ofctl dump-flows OFSWITCH
NXST_FLOW reply (xid=0x4):
cookie=0x0, duration=147000.263s, table=0, n_packets=196105,
n_bytes=117995996, idle_age=0, hard_age=65534, priority=0 actions=NORMAL
cookie=0x0, duration=1185.832s, table=0, n_packets=62, n_bytes=6076,
idle_age=971, priority=501,in_port=4 actions=NORMAL
Thanks, Abhishek
_______________________________________________
discuss mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/discuss