This article shows the procedure for configuring a cluster head in an ad hoc network to provide the Internet service and increase the coverage of an IEEE 802.11n network. Implementation of a network with embedded systems (Raspberry Pi) as nodes of the network is considered, and software such as BATMAN (Better Approach to Mobile Adhoc Networking) and ALFRED (Almighty Light Fact Remote Exchange Daemon) is used to perform the Connection of nodes and dissemination of information through the ad hoc network. The tests of connectivity and tests of traffic on the network are shown. In the discussion, we present the characteristics to be taken into account for future configurations.