[ovs-discuss] 回复: 回复: 回复: 回复: 回复: How to configure in-band control in OpenvSwitch?

Reid Price reid at nicira.com
Fri May 4 09:30:25 UTC 2012


Make sure you have removed the old IP addresses from ethX as well

On Thu, May 3, 2012 at 1:37 AM, 星言 墨虚 <beyond1680 at yahoo.cn> wrote:

> I have assigned IP address to br0, and let OpenvSwitch to connect
> controller. I can find the ARP Request packet and ARP Reply packet between
> OpenvSwitch and NOX by wireshark. But there are only ARP packets between
> them and controller still cannot recognize OpenvSwitch.
>
> Is there anything wrong with my congfigure?
>
> Thanks.
>
> -- Tony
>
>    ------------------------------
>  *发件人:* Justin Pettit <jpettit at nicira.com>
> *收件人:* 星言 墨虚 <beyond1680 at yahoo.cn>
> *抄送:* ovs-discuss <discuss at openvswitch.org>
> *发送日期:* 2012年5月3日, 星期四, 下午 4:10
> *主题:* Re: 回复: 回复: 回复: [ovs-discuss] 回复: How to configure in-band control
> in OpenvSwitch?
>
> You must be using an older version of OVS if you don't have that command.
> In any case, if the bridge is there, you should be able to set an IP
> address on it.  You'll need to do more debugging or be more forthcoming
> with information about what you've done and what you're seeing.
>
> --Justin
>
>
> On May 3, 2012, at 12:58 AM, 星言 墨虚 wrote:
>
> > The picture is the screenshot by "ovs-dpctl show". And there isn't a
> command named "ovs-vsctl show", so I use "ovs-dpctl show".
> > And it looks right.
> >
> > Thanks.
> >
> > -- Tony
> >
> > 发件人: Justin Pettit <jpettit at nicira.com>
> > 收件人: 星言 墨虚 <beyond1680 at yahoo.cn>
> > 抄送: ovs-discuss <discuss at openvswitch.org>
> > 发送日期: 2012年5月3日, 星期四, 下午 3:47
> > 主题: Re: 回复: 回复: [ovs-discuss] 回复: How to configure in-band control in
> OpenvSwitch?
> >
> > Your configuration looks reasonable.  However, there should be no
> problem assigning an IP address to the bridge device, and it won't work
> properly if you assign addresses to interfaces that are members of the
> bridge.  What does "ovs-vsctl show" print out?
> >
> > --Justin
> >
> >
> > On May 3, 2012, at 12:35 AM, 星言 墨虚 wrote:
> >
> > > I can assign IP address to eth0 and eth1, but I cannot assign IP
> address to br0, because br0 was a virtual port that was create by
> openvswitch, and cannot be find in ifconfig.
> > > Another question, when I run openvswitch, eth1 of B cannot connect
> controller. But if I didn't run openvswitch, it can connect controller.
> > >
> > > I use kernel model of openvswitch like this.
> > >
> > > # /sbin/insmod datapath/linux-2.6/openvswitch_mod.ko
> > > # ovsdb-server /usr/local/etc/ovs-switchd.conf.db
> --remote=punix:/usr/local/var/run/openvswitch/db.sock
> --remote=db:Open_vSwitch,managers --detach
> > > # ovs-vswitchd unix:/usr/local/var/run/openvswitch/db.sock
> > >
> > > Thanks.
> > >
> > > -- Tony
> > >
> > > 发件人: Justin Pettit <jpettit at nicira.com>
> > > 收件人: 星言 墨虚 <beyond1680 at yahoo.cn>
> > > 抄送: Ben Pfaff <blp at nicira.com>; ovs-discuss <discuss at openvswitch.org>
> > > 发送日期: 2012年5月3日, 星期四, 下午 3:26
> > > 主题: Re: 回复: [ovs-discuss] 回复: How to configure in-band control in
> OpenvSwitch?
> > >
> > > You don't need to do it with OVS commands.  You can just use ifconfig,
> ip, dhclient...
> > >
> > > --Justin
> > >
> > >
> > > On May 3, 2012, at 12:21 AM, 星言 墨虚 wrote:
> > >
> > > > But I cannot find a command of ovs-vsctl could assign the IP address
> to bridge just like br0.
> > > > So how to add an IP address to br0?
> > > >
> > > > Thanks.
> > > >
> > > > -- Tony
> > > >
> > > > 发件人: Justin Pettit <jpettit at nicira.com>
> > > > 收件人: 星言 墨虚 <beyond1680 at yahoo.cn>
> > > > 抄送: Ben Pfaff <blp at nicira.com>; ovs-discuss <discuss at openvswitch.org>
>
> > > > 发送日期: 2012年5月3日, 星期四, 下午 2:23
> > > > 主题: Re: [ovs-discuss] 回复: How to configure in-band control in
> OpenvSwitch?
> > > >
> > > > Even B can't connect to the controller?  That should be pretty basic
> connectivity. Are the IP addresses on the devices attached to the bridge or
> the bridge itself? Based on your drawing it looks like they're on the
> devices, which won't work. What happens if you assign the IP addresses to
> the bridge?
> > > >
> > > > --Justin
> > > >
> > > >
> > > > On May 2, 2012, at 11:13 PM, 星言 墨虚 <beyond1680 at yahoo.cn> wrote:
> > > >
> > > >> Thanks, but I want to know how to add "hidden" rules to OpenvSwitch?
> > > >> For example,
> > > >>
> > > >> A(eth0) -------- (eth0)B(eth1) ------ (eth0)controller
> > > >>  10.0.0.1      10.0.0.2  11.0.0.1    11.0.0.2
> > > >>
> > > >> I create a network like this. A and B is openvswitch. I configure
> openvswitch using this command
> > > >> ovs-vsctl add-br br0
> > > >> ovs-vsctl add-port br0 eth0
> > > >> ovs-vsctl add-port br0 eth1
> > > >> ovs-vsctl set-controller br0 tcp:11.0.0.2:6633
> > > >>
> > > >> But, the openvswitches cannot connect to controller, what else
> should I do?
> > > >>
> > > >> -- Tony
> > > >> 发件人: Ben Pfaff <blp at nicira.com>
> > > >> 收件人: 星言 墨虚 <beyond1680 at yahoo.cn>
> > > >> 抄送: "discuss at openvswitch.org" <discuss at openvswitch.org>
> > > >> 发送日期: 2012年5月3日, 星期四, 上午 11:30
> > > >> 主题: Re: [ovs-discuss] How to configure in-band control in
> OpenvSwitch?
> > > >>
> > > >> On Thu, May 03, 2012 at 11:12:50AM +0800, 星言 墨虚 wrote:
> > > >> > I want to configure OpenvSwitch in-band control and I read
> > > >> > the Design Decisions In Open vSwitch which websit is
> > > >> >
> http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=blob;f=DESIGNBut
> > > >> > there are not details about how to enable in-band control in
> > > >> > OpenvSwitch.So, I want to know the steps to configure it.Thanks
> very
> > > >> > much.-- Tony
> > > >>
> > > >> You don't have to do anything to enable in-band control, because it
> is
> > > >> enabled by default.
> > > >>
> > > >>
> > > >> _______________________________________________
> > > >> discuss mailing list
> > > >> discuss at openvswitch.org
> > > >> http://openvswitch.org/mailman/listinfo/discuss
> > > >
> > > >
> > >
> > >
> > >
> >
> >
> >
> > <Screenshot.png>
>
>
>
>
> _______________________________________________
> discuss mailing list
> discuss at openvswitch.org
> http://openvswitch.org/mailman/listinfo/discuss
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20120504/f7d2bcb6/attachment.html>


More information about the discuss mailing list