Reid,
Thanks for your quick reply! I already created br0 before issuing the ssh 
command. Also, of course I used a real IP address in terms of xx.xx.xx.xx for 
eth0's IP address rather than a literal string. The problem is that I can only 
access the remote host by ssh and I need someone else's help to bring it back. 
Any more idea?
Best,Jing

> From: [email protected]
> Date: Tue, 19 Feb 2013 17:14:31 -0800
> Subject: Re: [ovs-discuss] How to smoothly add eth0 to the OVS bridge?
> To: [email protected]
> CC: [email protected]
> 
> Moved conversation to discuss@ instead of bugs@ - haven't seen anything to
> indicate a bug so far.
> 
> Just to check, you aren't actually leaving "<eth0's ip address>" as a literal
> string, correct?  It should be 10.20.30.40 or some real IP.  I also notice 
> that
> you are missing the create bridge command, I assume that was done elsewhere.
> 
> If you have any other way to access the machine, I would use that to try and
> see what you have to do to regain connectivity.  You should have a bridge with
> ports (eth0 and br0), an ip on br0, and a single flow (with the NORMAL 
> action).
> 
>   -Reid
> 
> On Tue, Feb 19, 2013 at 5:01 PM, Jing Ai <[email protected]> wrote:
> > The script is located on the remote host. I ran it after ssh to the remote
> > host.
> >
> > Now I changed to your way, say from my own host, I issued the following
> > command:
> >
> > ssh root@<remote host> "ovs-vsctl add-port br0 eth0; ifconfig eth0 0;
> > ifconfig br0 <eth0's ip address>"
> >
> > However, I still lost connection to the remote host. Did I still do sth
> > wrong?
> >
> > Best,
> > Jing
> >
> >> From: [email protected]
> >> Date: Tue, 19 Feb 2013 14:57:43 -0800
> >> Subject: Re: [ovs-discuss] How to smoothly add eth0 to the OVS bridge?
> >> To: [email protected]
> >> CC: [email protected]
> >
> >>
> >> Is the script local or remote? You need to run the command atomically from
> >> the
> >> remote perspective. This means you need the ssh command to be a single
> >> one,
> >> likely along the lines of:
> >>
> >> ssh user@remote remote_script
> >>
> >> or
> >>
> >> ssh user@remote "command && command ; command"
> >>
> >> . A local script would not work unless it invoked all the commands on a
> >> single
> >> command line. Hope this helps.
> >>
> >> -Reid
> >>
> >> PS here's the FAQ note you're referencing:
> >> (If your only connection to the machine running OVS is through the
> >> IP address in question, then you would want to run all of these
> >> commands on a single command line, or put them into a script.)
> >>
> >>
> >> On Tue, Feb 19, 2013 at 2:15 PM, Jing Ai <[email protected]> wrote:
> >> > Hey,
> >> >
> >> > I've noticed that there is already a FAQ illustrating the steps to add
> >> > eth0
> >> > to the bridge, e.g., br0 as follows.
> >> >
> >> > ovs-vsctl add-br br0
> >> > ovs-vsctl add-port br0 eth0
> >> > ifconfig eth0 0.0.0.0
> >> > ifconfig br0 <eth0's IP address>
> >> >
> >> > Since I issued the above commands on a remote host via ssh, I also put
> >> > them
> >> > in a script as instructed. However, when I run such a script, I
> >> > immediately
> >> > lost the connection to the remote host. Any idea?
> >> >
> >> > Best,
> >> > Jing
> >> >
> >> >
> >> > _______________________________________________
> >> > discuss mailing list
> >> > [email protected]
> >> > http://openvswitch.org/mailman/listinfo/discuss
> >> >
                                          
_______________________________________________
discuss mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/discuss

Reply via email to