Thanks guys, you helped me a lot.

2016-04-26 17:23 GMT+02:00 Fischetti, Antonio <antonio.fische...@intel.com>:

> Hi Petr,
>
> below my replies inline.
>
>
>
> Regards,
>
> Antonio
>
>
>
> *From:* discuss [mailto:discuss-boun...@openvswitch.org] *On Behalf Of *Petr
> Horacek
> *Sent:* Tuesday, April 26, 2016 1:10 PM
> *To:* discuss@openvswitch.org ML <discuss@openvswitch.org>
> *Cc:* Edward Haas <edwa...@redhat.com>; Dan Kenigsberg <dan...@redhat.com>
> *Subject:* [ovs-discuss] IP on bridge / internal iface
>
>
>
> Hello,
>
> is there any difference between setting an IP on OVS bridge and setting in
> on its internal iface?
>
> *[Antonio F] In the 1st case you have 1 internal interface, in the 2nd
> case you’ll have 2. *
>
> *Beside this difference, if I understand your question, both cases are
> similar because *
>
> *you’re assigning an IP address to an internal interface.*
>
>
>
> ovs-vsctl add-br br0
>
> *[Antonio F] After this command a Port + an internal Interface with the
> same name will be *
>
> *automatically created. if you run ‘ovs-vsctl show’*
>
>     Bridge "br0"
>
>         Port "br0" ç
>
>             Interface "br0"     ç on this iface you assign an IP address
>
>                 type: internal
>
> ip addr add 192.168.1.10 dev br0
>
> *[Antonio F] You’re assigning an IP address to the ‘br0’ interface that
> was implicitly created.*
>
>
>
> vs.
>
> ovs-vsctl add-br br0 -- add-port br0 mgmt0 -- set Interface mgmt0
> type=internal
>
> *[Antonio F] With this command a ‘br0’ port + a ‘br0’ iface will be
> created anyway.*
>
> *Also you’re adding a 2nd port ‘mgmt0’ => as a default an interface with
> the same name will be created.*
>
> *You’re also specifying that it must be of type ‘internal’. *
>
> *As a result you will have a bridge like*
>
>     Bridge "br0"
>
>         Port "mgmt0"
>
>             Interface "mgmt0"   ç the next command will assign an IP
> address on this iface
>
>                 type: internal
>
>         Port "br0"
>
>             Interface "br0"
>
>                 type: internal
>
> ip addr add 192.168.1.10 dev mgmt0
>
> *[Antonio F] Now you’re assigning an IP address to the ‘mgmt0’ interface.*
>
>
>
> Thanks,
>
> Petr
>
_______________________________________________
discuss mailing list
discuss@openvswitch.org
http://openvswitch.org/mailman/listinfo/discuss

Reply via email to