.. index:: pair: group; Changing MAC address and sending .. _doxid-group__basic-mac__change__tx: Changing MAC address and sending ================================ .. toctree:: :hidden: Check that MAC address can be changed and it affects source MAC address of sent packets. Scenarios: X3-SYS17, X3-SYS19. #. If **if_down** is ``TRUE`` and ``IPv6`` is checked, enable **keep_addr_on_down** setting for the IUT interface to avoid IPv6 address disappearance after brinding it down. #. Create a CSAP on Tester to capture packets sent from IUT. #. Establish connection between a pair of UDP sockets on IUT and Tester. #. Send some data from IUT socket to peer, receive and check it. #. Check packets captured by CSAP on Tester, their source MAC address should be **iut_lladdr**. #. If **if_down** is ``TRUE``, set the IUT interface down. #. Change MAC address to **iut_alien_mac** on the IUT interface. Check that the new address is reported for the interface after that. #. If **if_down** is ``TRUE``, set the IUT interface up again. #. Send some data from IUT socket to peer, receive and check it. #. Check packets captured by CSAP on Tester, their source MAC address should be **iut_alien_mac**. Dmitry Izbitsky `Dmitry.Izbitsky@oktetlabs.ru `__ .. rubric:: Parameters: .. list-table:: :widths: 20 80 * - env - Testing environment: * :ref:`env.peer2peer ` * :ref:`env.peer2peer_ipv6 ` * - if_down - If ``TRUE``, set the interface down before changing MAC address on it.