NICMx / Jool

SIIT and NAT64 for Linux
GNU General Public License v2.0
326 stars 66 forks source link

Is it support virtual port ? #215

Closed qin-nz closed 8 years ago

qin-nz commented 8 years ago

I am using ovs as a customer edge. I try to add a virtual port using

ovs-vsctl add-port br1 veth1
ovs-vsctl set-interface veth1 type=internal

After I make some flow entities, and config ipv6 address for it (both link-local and global). I can monitor ipv6 traffic (dst_ip is 64:ff9b::/96) on veth1 using tcpdump But I cannot get anything on the log (with -DDEBUG)

@Chenwh93

ydahhrk commented 8 years ago

I don't think so, but I might be misunderstanding something.

A bridge is a layer-2 device. Jool is a layer 3-4 mechanism.

Jool doesn't attach itself to an interface; it's more like it attaches itself to a namespace and only intercepts packets being forwarded through the IP stack. (We have proposals to do things differently, but I'm not sure some other paradigm will address your layer mixing.)

I think this is an approximation of what you're doing:

Diagram

Would you say your packets are being forwarded through (not just receiving or being dispatched from) the IP stack?

qin-nz commented 8 years ago

@ydahhrk Oh, thank you. ovs-vsctl add-port br1 veth1 will create a virtual port with a random mac address. I can monitor the ipv6 traffic but the eth_dst is not equals to the random mac address.

I will try to set eth_dst filed now and will close the issue after I try it out.