[LiSA-Users] vlan interfaces are generated with the same MAC addresses

chicany chicany at gmail.com
Sat Mar 2 08:16:03 EET 2013


Hi,

thank you for your response. I have a new update regarding my issue:

1.
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't really know when I made a mistake during my
tests.

2.
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'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?

3.
I noticed even the ping and traceroute commands are available in the enabIe
mode they are not working.  For instance:

QEMU2#ping 192.168.1.2
           ^
% Invalid input detected at '^' marker.

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
;)

Thank you.


2013/3/1 Radu Rendec <radu.rendec at mindbit.ro>

> **
> On Tue, 2013-02-26 at 20:29 +0100, chicany wrote:
>
> Hi!
>
> Sorry for the delayed answer. Please see my inline comments below.
>
>
>
>  seems that /etc/modprobe.d/lisa.conf doesn't exist. Anyway I'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.
>
>
> It's normal that /etc/modprobe.d/lisa.conf didn't exist by default and you
> needed to create it. However, it's strange that it didn'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's try to
> isolate the problem:
>
>    - stop the lisa service
>    - check that the module is not loaded anymore: lsmod | grep switch
>    - manually load the module, using a custom MAC address: modprobe
>    switch vif_mac=02:00:11:22:33:44
>    - start the lisa service
>
>
>  I also tried to create /etc/sysconfig/network-scripts/ifcfg-vlan30 and
> configure it as following but without success.
>
> DEVICE=vlan30
> HWADDR=02:00:11:22:33:44
> ONBOOT=yes
>
>
> I'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).
>
>
>  When I tried to change MAC address of vlan30 with command ifconfig vlan30
> hw ether 02:00:11:22:33:44 I got "SIOCSIFHWADDR: Operation not supported"
>
>
> Yes, that's because the MAC address change method is not implemented on
> the kernel side. But it would be a nice feature though and I'll consider it
> for implementation.
>
> Cheers,
>
> Radu
>
>
>
> _______________________________________________
> LiSA-Users mailing list
> LiSA-Users at lisa.mindbit.ro
> http://lisa.mindbit.ro/mailman/listinfo/lisa-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lisa.mindbit.ro/pipermail/lisa-users/attachments/20130302/f5389f39/attachment.html 


More information about the LiSA-Users mailing list