Search Mailing List Archives
[mininet-discuss] mac address
rlantz at cs.stanford.edu
Wed Oct 19 12:54:38 PDT 2011
p.p.s. Step 1 may not be necessary if the packets "to the switch" won't match any other rules and will be forwarded to the controller by default.
On Oct 19, 2011, at 12:52 PM, Bob Lantz wrote:
> 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:
>> 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='10.0.1.1', 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 lists.stanford.edu
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the mininet-discuss