Hi Neale,

Thanks for the reply.
A physical interface could have multiple Vlan interfaces and I want traffic
originating from Vlan interface to have user defined Mac address rather
than parent's Mac address.

In Linux we have this privilege to associate Mac addresses to Vlan
interfaces using ifconfig.
In Linux, we use vconfig to create Vlan interface and then we could
leverage ifconfig to configure our own Mac address on the Vlan interface.

Could we have something similar in VPP?

Best Regards,
Omer

On Wed, Nov 29, 2017 at 6:44 PM, Neale Ranns (nranns) <nra...@cisco.com>
wrote:

> Hi Omer,
>
>
>
> You can set the MAC address of a ‘host’ interface when it is created:
>
>   create host-interface name <ifname> [hw-addr <mac-addr>]
>
>
>
> you can also change it after creation:
>
>   set interface mac address <interface> <mac-address>
>
>
>
> but you cannot set the MAC address of a VLAN interface. A VLAN interface
> will always have the same MAC address as its parent/physical interface.
>
>
>
> Regards,
>
> Neale
>
>
>
>
>
> *From: *<vpp-dev-boun...@lists.fd.io> on behalf of Omer Majeed <
> omer.maj...@rwth-aachen.de>
> *Date: *Wednesday, 29 November 2017 at 11:45
> *To: *"vpp-dev@lists.fd.io" <vpp-dev@lists.fd.io>
> *Subject: *[vpp-dev] Fwd: :: Setting Mac address on Vlan interface
>
>
>
> Hi,
>
>
>
> I am trying to form an ecmp between Vlan interfaces. Traffic coming with
> IP 1.1.1.5 would go through Vlan interfaces host-tap0.1 and host-tap1.1
> forming ecmp.
>
>
>
> ip route add 1.1.1.5/32 table 3 via 1.1.1.5 host-tap0.1
> ip route add 1.1.1.5/32 table 3 via 1.1.1.5 host-tap1.1
>
>
> set ip arp host-tap0.1 1.1.1.5 02:00:00:00:00:02
>
> set ip arp host-tap1.1 1.1.1.5 02:00:00:00:00:02
>
>
>
> ip route add 1.1.1.5/32 table 5 via 1.1.1.5 host-tap2.1
>
> ip route add 1.1.1.5/32 table 5 via 1.1.1.5 host-tap3.1
>
>
>
> set ip arp host-tap2.1 1.1.1.5 02:00:00:00:00:01
>
> set ip arp host-tap3.1 1.1.1.5 02:00:00:00:00:01
>
>
>
> However traffic flows having Source Mac addresses as that of respective
> Vlan interfaces. Is there any way I could set Vlan interfaces with my own
> desired Mac Addresses, so that the traffic has user defined Mac addresses
> as Source Mac addresses.
>
>
>
> Thanks.
>
> Best Regards,
>
> Omer Majeed
>
>
>
>
_______________________________________________
vpp-dev mailing list
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev

Reply via email to