[ovs-discuss] How to set the MAC address of bridge local port

Krishna Pratap singh.pratapkrishna at gmail.com
Thu Mar 5 19:19:40 UTC 2015


Thanks for checking. I will try to find out more about the ovs installed on
my system.

KP

On Thu, Mar 5, 2015 at 12:10 PM, Ben Pfaff <blp at nicira.com> wrote:

> On Wed, Mar 04, 2015 at 01:34:07PM -0500, Krishna Pratap wrote:
> > Im not sure what is wrong with ovs installed with my system yet. its
> weird
> > it would complain of non existence of bridge when we try to set its MAC
> > address because I explicitly create the bridge first. what about the "set
> > interface br0  mac=\"00:15:17:a0:29:80\"" command. isnt br0 local
> interface
> > treated as interface?
> >
> >
> >  here are the steps that I do and its output. any suggestions?
>
> I don't know.  I can't reproduce the problem here; similar steps work
> for me:
>
>     root at debian:~# ovs-vsctl set bridge br1
> other-config:hwaddr=\"00:15:17:a0:29:80\"
>     root at debian:~# ifconfig br1
>     br1       Link encap:Ethernet  HWaddr 00:15:17:a0:29:80
>               BROADCAST MULTICAST  MTU:1500  Metric:1
>               RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>               TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>               collisions:0 txqueuelen:0
>               RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
>
>     root at debian:~# ifconfig br1 up
>     root at debian:~# ovs-vsctl set bridge br1
> other-config:hwaddr=\"00:15:17:a0:29:81\"
>     root at debian:~# ifconfig br1
>     br1       Link encap:Ethernet  HWaddr 00:15:17:a0:29:81
>               inet6 addr: fe80::215:17ff:fea0:2980/64 Scope:Link
>               UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>               RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>               TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
>               collisions:0 txqueuelen:0
>               RX bytes:0 (0.0 B)  TX bytes:308 (308.0 B)
>
>     root at debian:~# ovs-ofctl dump-ports-desc br1
>     OFPST_PORT_DESC reply (xid=0x2):
>      LOCAL(br1): addr:00:15:17:a0:29:81
>          config:     0
>          state:      0
>          speed: 0 Mbps now, 0 Mbps max
>     root at debian:~#
>



-- 
Best Regards,
Krishna Pratap Singh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20150305/a4edc6c3/attachment-0002.html>


More information about the discuss mailing list