Search Mailing List Archives

Limit search to: Subject & Body Subject Author
Sort by: Reverse Sort
Limit to: All This Week Last Week This Month Last Month
Select Date Range     through    

[mininet-discuss] mac address

Bob Lantz rlantz at
Wed Oct 19 12:52:02 PDT 2011

If you want to use OpenFlow, then using the Linux networking stack to assign a MAC or IP address to a switch port is unnecessary and undesirable.

To "assign" a MAC or IP address to the switch, 

1. Use OpenFlow to install a rule to forward packets to whatever "switch" MAC or IP address you like to the controller. 

2. When you want the "switch" to send packets, simply create them with whatever source MAC and source IP you like.

To summarize: this is an important design aspect of OpenFlow which needs to be understood.


p.s. To perhaps clarify this issue, I think we may wish to change Mininet to raise an error if you attempt to assign an IP or MAC address to a switch.

On Oct 19, 2011, at 9:36 AM, scolfield wrote:

> Hi,
> I created a python script to configure one topology network...
> and why can I set the mac address that I need?? For example,
> such as:
> sw = net.addSwitch( 'switch', ip='', mac='01:36:42:00:00:01')
> I'm using Mininet class for this purpose... anybody have any idea, what is wrong?
> That mac address that I want to set, don't set correctly,.. 
> set another mac address every time..
> _______________________________________________
> mininet-discuss mailing list
> mininet-discuss at

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the mininet-discuss mailing list