.. index:: pair: group; Changing MAC address and receiving .. _doxid-group__basic-mac__change__rx: Changing MAC address and receiving ================================== .. toctree:: :hidden: Check that MAC address can be changed and after that packets sent to the new address can be received. #. Enable or disable promiscuous mode on the IUT interface according to **promisc** parameter. #. Create UDP socket on IUT, bind it to **iut_addr**. #. Create a CSAP on IUT to capture UDP packets sent to **iut_addr**. #. Create a CSAP on Tester to send packets to **iut_addr**. #. Send a packet to **iut_lladdr** MAC address (currently set on the IUT interface) from the Tester CSAP. Check that IUT socket receives data and IUT CSAP captures the packet. #. Send a packet to **iut_alien_mac** MAC address from the Tester CSAP. Check that IUT socket does not receive data. Check that IUT CSAP captures the packet only when **promisc** is ``TRUE``. #. Change MAC address to **iut_alien_mac** on the IUT interface. Check that the new address is reported for the interface after that. #. Send a packet to **iut_lladdr** MAC address from the Tester CSAP. Check that IUT socket does not receive data. Check that IUT CSAP captures the packet only when **promisc** is ``TRUE``. #. Send a packet to **iut_alien_mac** MAC address (currently set on the IUT interface) from the Tester CSAP. Check that IUT socket receives data and IUT CSAP captures the packet. Dmitry Izbitsky `Dmitry.Izbitsky@oktetlabs.ru `__ .. rubric:: Parameters: .. list-table:: :widths: 20 80 * - env - Testing environment: * :ref:`env.peer2peer ` * :ref:`env.peer2peer_ipv6 ` * - promisc - If ``TRUE``, enable promiscuous mode on the IUT interface, otherwise disable it.