<div>Hi, I know that neutron port's mac address was generated by neutron.conf and default value is "fa:16:3e" which from <span style="line-height: 1.5;">base_mac configuration. I don't know how the tap device's mac address generates and why tap device mac address was "fe:16:3e:xxx". I think that tap device mac address was generated by libvirt. </span></div><div><span style="line-height: 1.5;"><br></span></div><div><span style="line-height: 1.5;">Thx</span></div><div><span style="line-height: 1.5;">changzhi</span></div><div><includetail><div> </div><div> </div><div style="font:Verdana normal 14px;color:#000;"><div style="FONT-SIZE: 12px;FONT-FAMILY: Arial Narrow;padding:2px 0 2px 0;">------------------ Original ------------------</div><div style="FONT-SIZE: 12px;background:#efefef;padding:8px;"><div id="menu_sender"><b>From: </b> "Radek Smigielski"<radek.smigielski@ymail.com>;</div><div><b>Date: </b> Thu, Jun 11, 2015 07:26 PM</div><div><b>To: </b> "OpenStack Development Mailing List (not for usage questions)"<openstack-dev@lists.openstack.org>; <wbr></div><div></div><div><b>Subject: </b> Re: [openstack-dev] How does instance's tap device macaddress      generate?</div></div><div> </div>> On Thursday, 11 June 2015, 12:00:46, Neil Jerram <Neil.Jerram@metaswitch.com> wrote:<br>> > On 11/06/15 10:47, changzhi wrote:<br>>>  Hi, all.<br>>>  I create a vm and it's neutron port's mac address is<br>>>  "fa:16:3e:3f:02:ff". I see "fa:16:3e:3f:02:ff" inside <br>> vm when I run<br>>>  "ifconfig eth0". Why does vm's tap device's mac address <br>> is<br>>>  "fe:16:3e:3f:02:ff"? Why different between neutron port's mac <br>> address<br>>>  and tap device's mac address? Does libvirt create instance tap device<br>>>  and its mac address is generated randomly?<br>>> <br>>>  Thx<br>>>  zhi<br>> <br>> There are two MAC addresses, one at each end of the link between the <br>> host and the VM.<br>> <br>> -------------------+<br>>   Host              |           +-------------------+<br>>                     |           |             VM    |<br>>      tap12345-CD ------------------- eth0           |<br>>   fa:16:3e:56:71:42 |           | fa:16:3e:3f:02:ff |<br>>                     |           |                   |<br>>                     |           +-------------------+<br>> -------------------+<br>> <br>> I believe that both of these addresses are randomly generated, although <br>> I'm not sure exactly which components do that.<br>> <br>> Does that help at all?<br>> <br>> Thanks,<br>>     Neil<br><br><br><br>In neutron.conf you've got base_mac option and "fa:16:3e" is the default value.<br><br># Base MAC address. The first 3 octets will remain unchanged. If the<br># 4h octet is not 00, it will also be used. The others will be<br># randomly generated.<br># 3 octet<br># base_mac = fa:16:3e:00:00:00<br># 4 octet<br># base_mac = fa:16:3e:4f:00:00<br><br><br><br><br><br>Cheers,<br>Radosław Śmigielski<br><br>__________________________________________________________________________<br>OpenStack Development Mailing List (not for usage questions)<br>Unsubscribe: OpenStack-dev-request@lists.openstack.org?subject:unsubscribe<br>http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev<br></div><!--<![endif]--></includetail></div><div class="vimiumReset vimiumHUD" style="right: 150px; display: none;"></div>