Adhoc networks are usually created between two computers either wired or wirelessly.Such a network can be created without using a router.So here's how you do it in linux
Step 1: Go to the Terminal(Applications->Accessories->Terminal) and type the following.
Step 2 : If you are planning to setup a wireless adhoc network then you first need to know which interface of yours is wireless.For this in the terminal type iwconfig and the interface which does NOT say "No wireless extensions" is the interface you need to you.Otherwise just choose your wired interface.In this example let it be eth1
Step 3 : Now you need to stop network manager and bring eth1 down by typing sudo /etc/dbus-1/event.d/25NetworkManager stop and sudo ifconfig eth1 down
Step 4 : Now you need to setup eth1 to adhoc mode for this type sudo iwconfig eth1 mode ad-hoc
Step 5 : Now enter in the channel you want to use.for example 6.for this type sudo iwconfig eth1 channel 6
Step 6 : Now enter in the name of the adhoc wifi network you want to create/join by typing sudo iwconfig eth1 essid 'anynameyouwish'
Step 7 : Its always better you secure your adhoc network with a password(in this case 12345) therefore you can create one by typing sudo iwconfig eth1 key 12345
Step 8 : Now bring back eth1 by typing sudo ifconfig eth1 up
Step 9 : And give it an ip address(for example 192.168.0.1) by typing sudo ifconfig eth1 192.168.0.1
Step 10 : Thats it, your done!!
Note:If you are joining an existing adhoc network then follow same steps but give a different ip for the second pc.
|
0
comments
]
0 comments
Post a Comment