<div dir="ltr"><div><div><div><div><div>Hi,<br><br></div>thank you for your response. I have a new update regarding my issue:<br><br>1. <br></div>Today I was able to change MAC address for VLAN interface. It works perfectly in both cases - when I load switch module with vif_mac parameter and also as when I add a line vif to /etc/modprobe.d/lisa.conf. Sorry for confusing you last time I don&#39;t really know when I made a mistake during my tests.<br>
<br>2. <br></div>Seems that the last two hexa numebers are changed for vlan interface. For example, when vif_mac is 02:00:11:22:33:42 the MAC adress of VLAN interface30  is e.g. 02:00:11:22:33:6A. I&#39;m ok with it but I have another question.  Cisco allows to change MAC address of particular interface under interface configuration. Would it be possible to implement this command at least for VLAN interfaces?<br>
<br>3.<br></div>I noticed even the ping and traceroute commands are available in the enabIe mode they are not working.  For instance:<br><br>QEMU2#ping 192.168.1.2<br>           ^<br>% Invalid input detected at &#39;^&#39; marker.<br>
<br>For this reason I must exit LiSA when everytime those commands are needed. Sorry, I should have brought this to a new topic but it is really annoying ;)<br><br></div>Thank you.<br></div><div class="gmail_extra"><br><br>
<div class="gmail_quote">2013/3/1 Radu Rendec <span dir="ltr">&lt;<a href="mailto:radu.rendec@mindbit.ro" target="_blank">radu.rendec@mindbit.ro</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<u></u>


  
  

<div>
On Tue, 2013-02-26 at 20:29 +0100, chicany wrote:<br>
<br>
Hi!<br>
<br>
Sorry for the delayed answer. Please see my inline comments below.<div class="im"><br>
<br>
<br>
<blockquote type="CITE">
    seems that /etc/modprobe.d/lisa.conf doesn&#39;t exist. Anyway I&#39;d tried to create and configure it with the line you provided  but MAC address kept to be the same -  even LiSA was restarted afterwards.<br>
    <br>
</blockquote>
<br></div>
It&#39;s normal that /etc/modprobe.d/lisa.conf didn&#39;t exist by default and you needed to create it. However, it&#39;s strange that it didn&#39;t solve the problem. The whole point of creating this file and restarting LiSA is to load the kernel module using the vif_mac parameter. But let&#39;s try to isolate the problem:
<ul>
    <li>stop the lisa service
    </li><li>check that the module is not loaded anymore: lsmod | grep switch
    </li><li>manually load the module, using a custom MAC address: modprobe switch vif_mac=02:00:11:22:33:44
    </li><li>start the lisa service
</li></ul><div class="im">
<br>
<blockquote type="CITE">
    I also tried to create <tt>/etc/sysconfig/network-scripts/ifcfg-vlan30 and configure it as following but without success.</tt><br>
    <br>
    <tt>DEVICE=vlan30</tt><br>
    <tt>HWADDR=02:00:11:22:33:44</tt><br>
    <tt>ONBOOT=yes</tt><br>
</blockquote>
<br></div>
I&#39;m not 100% sure, but I think HWADDR is used for identifying the interface by the current MAC, and there is another variable for specifying a new MAC address to be assigned. Anyway, this is not supported by the kernel part (see below).<div class="im">
<br>
<br>
<blockquote type="CITE">
    When I tried to change MAC address of vlan30 with command ifconfig vlan30 hw ether 02:00:11:22:33:44 I got &quot;SIOCSIFHWADDR: Operation not supported&quot;<br>
</blockquote>
<br></div>
Yes, that&#39;s because the MAC address change method is not implemented on the kernel side. But it would be a nice feature though and I&#39;ll consider it for implementation.<br>
<br>
Cheers,<br>
<br>
Radu<br>
<br>
<br>
</div>

<br>_______________________________________________<br>
LiSA-Users mailing list<br>
<a href="mailto:LiSA-Users@lisa.mindbit.ro">LiSA-Users@lisa.mindbit.ro</a><br>
<a href="http://lisa.mindbit.ro/mailman/listinfo/lisa-users" target="_blank">http://lisa.mindbit.ro/mailman/listinfo/lisa-users</a><br>
<br></blockquote></div><br></div>