Setting up an ad-hoc network using ubuntu 16.04

Hoping you will be working on ubuntu we shall give you step by step procedure about how to set up an ad-hoc network.

Functionalities:

  • one person in the group creates ad-hoc network
  • other members in the group join the network
  • look the IP address assignment (manual vs auto)
  • check if its reachable using ping
  • do concurrent data transfer
  • look at throughput
  • person who created the network will disconnect from the network
  • can the remaining members talk
1
Turn off wifi by deselecting enable wifi in the network settings
2
Click on edit connections, then select add to create new network (select wifi)
3
In the wifi tab give your network a name :ssid(adhoc) and select mode as Ad-hoc
4
Bind the mac address with the device, finally your wifi tab should look something like this.

The band is the bandwidth which can be opted for the ad-hoc network, it’s better to keep it automatic, as most of the computers wont support 5GHz bandwidth.next move to wi-fi security tab.

5
you can either skip this, or give a security password, when you select WEP 128-bit passphrase option, you can only use 5 or 13 alphabet password, or else other systems wont be able to connect to your ad-hoc network.
6
Move to ipv4 tab and here select shared to other computers, this will help other systems which will connect to your ad-hoc network to get an ip automatically by looking at your systems ip. You can also select manual and give it an ip but even other users who will later connect to your network will have to specify their ip manually(of course with the same ip range)
7
You’ll be able to see the created network in edit connections.
8
Now enable wifi and you should be able to see the adhoc network which you created.
9
now select connect to hidden network and connect to the ad-hoc network which you created
10
select your network
11
Fire up the terminal (cntrl+alt+t) and check ip (ifconfig) to see the ip address assigned to your system. If you’ve done the configuration manually you can see the ip set by yourself.
12
When other members are trying to connect to your network make sure they edit the connections and select security as WEP 128-bit passphrase, else you they wont be able to connect to your network. Also if you’ve given manual ip(ex:10.10.10.1) make sure other members also give manual ip in the same range(ex:10.10.10.2 etc). If you’ve used shared ip make sure others have also used shared ip in the edit connections option.

DHCP wont work for the following network because there wont be any dhcp server running in your network.

Leave a comment