On Tue, Jan 16, 2018 at 1:52 PM, [email protected] <[email protected]> wrote:
> Environment: CentOS 7.4 + openvswitch-2.8.1 + ovn-2.8.1 > > In the OVN Sandbox in the "First Steps" chapter of the official website > I follow it is no problem > I used ip netns to create multiple virtual hosts > The network created by ip netns can only be used on the > same network segment > Can not ping through the gateway and other network segments. > ````` ip netns commands ````` > ovs-vsctl add-br br-int > ip netns add vm1 > ovs-vsctl add-port br-int vm1 -- set interface vm1 type=internal > ip link set vm1 address 50:54:00:00:00:01 > ip netns exec vm1 ip address add 192.168.0.2/24 dev vm1 > ip netns exec vm1 ip route add default via 192.168.0.1 > ip link set vm1 netns vm1 > ip netns exec vm1 ip link set vm1 up > ovs-vsctl set Interface vm1 external_ids:iface-id=sw0-port1 > ````` > > ovn and ovs did not add or delete any rules > I do not know where the problem, there is an idea you can answer it > thank you > May be you shouldn't use sandbox if you want to create network namespaces. sandbox uses dummy datapath and I am not sure if it can handle this. I think you should start the ovn services on your system and try again. To start ovn services you can use ovn-ctl [1] script or use ovs packages. May be this [2] can help you. [1] - https://github.com/openvswitch/ovs/blob/master/ovn/utilities/ovn-ctl [2] - https://gist.github.com/russellb/4ab0a9641f12f8ac66fdd6822ee7789e Thanks Numan > ------------------------------ > [email protected] > > _______________________________________________ > discuss mailing list > [email protected] > https://mail.openvswitch.org/mailman/listinfo/ovs-discuss > >
_______________________________________________ discuss mailing list [email protected] https://mail.openvswitch.org/mailman/listinfo/ovs-discuss
