/srv/irclogs.ubuntu.com/2021/02/24/#netplan.txt

slyonHey cyphermox! We've recently been wondering about the status of https://snapcraft.io/netplan as we got some bug reports about it (e.g. https://pad.lv/1896354). Do you have any plans for that snap, or would you mind unpublishing it from the store to avoid people using the old version?09:30
BeRootsHello.12:33
BeRootsI tried to use netplan instead of networkd to configure a adhoc network between 2 ubuntu machines. I follow the third example from https://raspberrypi.stackexchange.com/questions/94047/how-to-setup-an-unprotected-ad-hoc-ibss-network-and-if-possible-with-wpa-encry/94048#94048 (the "Only with suitable (RSN-IBSS capable) USB dongle" bullet point).12:33
BeRootsSo, I added a netplan config file named /etc/netplan/40-wlan1.yaml like this:12:33
BeRoots```network:12:33
BeRoots  version: 212:33
BeRoots  renderer: networkd12:33
BeRoots  wifis:12:33
BeRoots    wlan1:12:33
BeRoots      access-points:12:33
BeRoots        "My adhoc":12:33
BeRoots          mode: adhoc12:33
BeRoots          password: "s3kr1t"```12:33
BeRootsI added and apply an /etc/wpa_supplicant/wpa_supplicant-wlan1.conf like this:12:42
BeRoots```ctrl_interface=DIR=/run/wpa_supplicant GROUP=netdev12:42
BeRootsupdate_config=112:42
BeRootsp2p_disabled=112:42
BeRootscountry=DE12:42
BeRootsnetwork={12:42
BeRoots    ssid="My adhoc"12:42
BeRoots    key_mgmt=WPA-PSK12:42
BeRoots    proto=RSN12:42
BeRoots    psk="s3kr1t"12:42
BeRoots    mode=112:42
BeRoots    frequency=241212:42
BeRoots}```12:42
BeRootsMy problem is I'm not sure if I have to add this wpa_supplicant fille too.12:42
BeRootsI tested with netplan+wpa_supplicant files and with only the netplan file but I don't have an ipv4 address at all12:43
BeRoots`ip a` return:12:52
BeRoots4: wlan1: <NO-CARRIER,BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state DORMANT group default qlen 100012:53
BeRoots  link/ether ab:54:b4:ba 46:55 brd ff:ff:ff:ff:ff:ff12:53
BeRoots  inet6 fe78:d237:45ff:fee2:918/64 scope link12:53
BeRoots    valid_lft forever preferred_lft forever12:53
BeRootsIf someone have an idea why I don't have my IPv4 ? What's the problem with my configuration?12:54
cyphermoxslyon: sure, I'll go unpublish it12:58
cyphermoxslyon: tbf, if you think about it you'll notice why that never took off... kinda chicken and egg thing12:59
cyphermoxBeRoots:  NO-CARRIER, it's not finding the wireless config most likely13:00
cyphermoxBeRoots: you shouldn't have to add a wpa-supplicant file, it should be generated for you13:00
slyonthanks cyphermox. This is a chicken-egg situation indeed, but we also have netplan as part of the core snap and want to avoid version conflicts with snaps installed on top of that13:09
slyonBeRoots: as mentioned above, netplan will generate the wpa_supplicant config for you, no need to specify it manually13:10
cyphermoxslyon: yup13:10
cyphermoxanyway, it's done13:10
BeRootsOk. I going to remove the wpa_supplicant file. Is it a good solution finded here: https://makerforce.io/setting-up-a-ad-hoc-network/ ? And if Yes, do I have to apply iw command too ?13:24
slyonBeRoots: hmm.. I did not use ad-hoc mode in a very long time. I usually use AP/hotspot mode instead. But this guide looks rather up-to-date, so you should give it a try, incl. applying the iw commands13:31
slyonAnd you probably also need to statically assign an IP address to your device, using the "addresses: []" setting in your netplan config.13:34
slyonunless there is a DHCP server running on one of the other devices?13:34
BeRootsslyon. Ok. Thanks for the feedback. I going to test that....13:37
BeRootsNo I haven't any DHCP at this time. I have chosen an adhoc with 2 devices allowed in my case...13:37
slyonBeRoots: okay. what system are you using on the other devices (netplan as well)? Just make sure they are all on the same IP network, so they can communicate with each other13:38
BeRootsI have two ubuntu devices.13:39
slyonthat's good. Try to add "addresses: [192.168.0.1/24]" to one and "addresses: [192.168.0.2/24]" to the other13:40
=== akp55_ is now known as akp55__

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!