You are not logged in.
Hi,
I've been trying to setup an adhoc network but can't seem to get things going. I suspect that my dhcpd.conf in wrong as I am not that experienced with DHCP... Here are the commands I use for setting up the interface. Any help gratefully received!
IFACE=wlan0
ip link set $IFACE up
iw $IFACE set type ibss
iw $IFACE ibss join MySSID 2432
ip link set up dev $IFACE
ip addr add 139.96.30.100/24 dev $IFACE
systemctl start dhcpd4@$IFACE.service
/etc/dhcpd.conf
option domain-name-servers 8.8.8.8;
option subnet-mask 255.255.255.0;
option routers 139.96.30.100;
subnet 139.96.30.0 netmask 255.255.255.0 {
range 139.96.30.150 139.96.30.250;
}
/etc/systemd/system/dhcpd4@.service
[Unit]
Description=IPv4 DHCP server on %I
Wants=network.target
After=network.target
[Service]
Type=forking
PIDFile=/run/dhcpd4.pid
ExecStart=/usr/bin/dhcpd -4 -q -pf /run/dhcpd4.pid %I
KillSignal=SIGINT
[Install]
WantedBy=multi-user.target
Offline
Any debugging ideas with this?
Offline
Ok I've created an adhoc network using create_ap
https://aur.archlinux.org/packages/create_ap/
And issuing the following command:
sudo create_ap -n wlan0 MyAccessPointName
However, I would really liked to have managed it using ip, iw, dhcp by following the instructions at:
https://wiki.archlinux.org/index.php/Ad-hoc_networking
But these don't seem to work...
Offline