On Sun, Apr 24, 2016 at 10:01 PM, Troy <jlzh...@jlzhang.cn> wrote: > Dear all, > > It's really a shame that I cannot complete my job. So I have to ask for > help here. > > I installed the OVN and run the northd and controller successfully. Also > ,I added the fail_mode(secure) in br-int. > Then, I followed the setup.sh of env1 of OVN-Tutorial.md. > > ovn-nbctl lswitch-add sw0 > ovn-nbctl lport-add sw0 sw0-port1 > ovn-nbctl lport-add sw0 sw0-port2 > > ovn-nbctl lport-set-addresses sw0-port1 fe:54:00:a6:6f:5a > ovn-nbctl lport-set-addresses sw0-port2 fe:54:00:88:27:ce > > ovn-nbctl lport-set-port-security sw0-port1 fe:54:00:a6:6f:5a > ovn-nbctl lport-set-port-security sw0-port2 fe:54:00:88:27:ce > > ovs-vsctl add-port br-int vnet0 -- set Interface vnet0 > external_ids:iface-id=sw0-port1 > ovs-vsctl add-port br-int vnet1 -- set Interface vnet1 > external_ids:iface-id=sw0-port2 > > In this test, I have two VMs, and the "vnet0" and "vnet1" is the dev in > host., the "fe:54:00:xx:xx:xx" are these dev's macaddress. But I find the > OVN didn't work. whatever I do, the two VMs always cannot communicate with > each other. > And i run " $ ovn-sbctl show", it didn't show anything. I guess in the > last step, I didn't add the set options in the OVS. > > At the same time, I run the ovs-ofctl show, it suggest:(different from the > tutorial book) > > root@troy-PC:~# ovs-ofctl show br-int > + ovs-ofctl show br-int > OFPT_FEATURES_REPLY (xid=0x2): dpid:00000e36a9dd1f40 > 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 > 4(vnet1): addr:fe:54:00:88:27:ce > config: 0 > state: 0 > current: 10MB-FD COPPER > speed: 10 Mbps now, 0 Mbps max > 5(vnet0): addr:fe:54:00:a6:6f:5a > config: 0 > state: 0 > current: 10MB-FD COPPER > speed: 10 Mbps now, 0 Mbps max > LOCAL(br-int): addr:0e:36:a9:dd:1f:40 > config: PORT_DOWN > state: LINK_DOWN > speed: 0 Mbps now, 0 Mbps max > OFPT_GET_CONFIG_REPLY (xid=0x4): frags=normal miss_send_len=0 > > I want to use the OVN to control the two VMs network(just like iptables to > control the connection behaviors). But in the guide book and examples, they > use it in sandbox and doesn't add any VMs, if possible, could you give me > some guidance about the OVN usage with VMs please? >
I don't know of any docs that show this in detail. The closest I'm aware of is documentation on the OpenStack integration, which sets up VMs with OVN. http://docs.openstack.org/developer/networking-ovn/testing.html http://docs.openstack.org/developer/networking-ovn/refarch.html -- Russell Bryant
_______________________________________________ discuss mailing list discuss@openvswitch.org http://openvswitch.org/mailman/listinfo/discuss