Vineet Garg
|
Re: Change MAC address of VLAN interface
|
Vineet Garg
02/09/2011 10:08 PM
post83062
|
Re: Change MAC address of VLAN interface
hi apurva
assuming io-net as ip stack, i dont think you can change the mac address of
vlan interface as it is just a pseudo-interface providing vlan capablity
over parent interface. however, if you have access to you have access to
your network driver, you can change it is register multiple logical
interfaces (with different mac addresses) to io-net while it can actually
transmit on the same physical port.
hope this helps.
regards
vineet
On Tue, Feb 8, 2011 at 12:48 PM, Apurva P <community-noreply@qnx.com> wrote:
> Hi,
>
> First of all please let me explain what is my requirement. Using single
> physical interface I want to create three network interfaces having
> different IP and MAC addresses.
>
> For that I created three VLAN interfaces (vlan0, vlan1 and vlan2) on
> physical interface (en0) using ifconfig.
>
> e.g.
> ifconfig vlan0 create
> ifconfig vlan0 vlan 2 vlanif en0
>
> Now, I can assign different IP address for all three VLAN interface using
> ifconfig but MAC address of all these interfaces is same as its
> parent's(en0) MAC address .
>
> To change MAC address I tried...
> # ifconfig vlan0 down
> # ifconfig vlan0 link new_mac_addr active
> # ifconfig vlan0 link old_mac_addr delete
> ...
>
> This works for en0 but it did not work for vlan interfaces.
>
> So please can anyone tell whether is it possible to change MAC address of
> VLAN interface? If yes please let me know how it can be done?
>
> Thank you very much
> Apurva
>
>
>
> _______________________________________________
>
> Technology
> http://community.qnx.com/sf/go/post82966
>
>
|
|
|