Ask Your Question
0

unable to start ad-hoc network (how to debug)

asked 2018-03-05 10:53:44 -0600

sandeep gravatar image

I am running fedora 27 on lenovo x1. I am trying to start a ad-hoc network using the xfce4 network manager. The network manager tries but fails and resorts back to the default wifi network. How can I debug the issue. I seem to have all the necessary dependencies.

edit retag flag offensive close merge delete

Comments

Are you trying to share your Ethernet connection or trying to join an ad-hoc network? After you try it, run sudo journalctl -r and see if there are any relevant messages.

ssieb gravatar imagessieb ( 2018-03-06 18:15:29 -0600 )edit

I was trying to share the wifi network. I finally got this working and pasted the recipe below.

sandeep gravatar imagesandeep ( 2018-03-07 09:05:21 -0600 )edit

2 Answers

Sort by ยป oldest newest most voted
0

answered 2018-03-07 09:04:26 -0600

sandeep gravatar image

I got this working by collating a couple of docs on networking and ad-hoc mode. On both the laptops, I executed the command sequence (of course with different static ip).

systemctl disable NetworkManager.service 
ip link set wlp4s0 down
iwconfig wlp4s0 mode ad-hoc
iwconfig wlp4s0 essid 'll2'
iwconfig wlp4s0 key 1234567890
iwconfig wlp4s0 channel 4
ip link set wlp4s0 up
ip addr add 169.254.34.2/16 dev wlp4s0
edit flag offensive delete link more
0

answered 2018-03-07 13:15:17 -0600

ssieb gravatar image

I don't know what the xfce4 network manager has, but the Gnome wireless control panel has an option to turn on a wifi hotspot. Now that I know what you were trying to do, I would suggest using nm-connection-editor as it has support for configuring the less common options.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2018-03-05 10:53:44 -0600

Seen: 82 times

Last updated: Mar 07 '18