You are not logged in.

#1 2021-08-08 04:30:41

Orphix
Member
Registered: 2021-08-07
Posts: 11

Connected to network but no internet connection (IWD)

I am in the process of my first installation and I am currently trying to establish an internet connection over wireless. Right now I am connected to the network using iwd, but when I try to ping a website or download a package it is unable to establish a connection.

I am fairly certain that the error is in the fact that no IP is being assigned with DHCP, or however it works.

I found one article suggesting to enable DHCP within IWD by editing the config file /etc/iwd/main.conf but when I run the command "$ cat /etc/iwd/main.conf" I am returned with "cat: /etc/iwd/main.conf: No such file or directory"


Any help would be greatly appreciated! Thanks!

Offline

#2 2021-08-08 04:54:11

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Connected to network but no internet connection (IWD)

man page wrote:

If no main.conf is present, then default values are chosen. The presence of main.conf is not required.

https://man.archlinux.org/man/iwd.config.5


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2021-08-08 19:45:30

Orphix
Member
Registered: 2021-08-07
Posts: 11

Re: Connected to network but no internet connection (IWD)

Yes I understand that. As I understand, by default Network Configuration is disabled by iwd, so how would I go about generating the main.conf file and modifying the values?

Offline

#4 2021-08-08 20:42:14

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,383

Offline

#5 2021-08-08 23:03:10

Orphix
Member
Registered: 2021-08-07
Posts: 11

Re: Connected to network but no internet connection (IWD)

I might be incredibly stupid, but I don't see anything on that page that actually mentions how to create the main.conf file.

Offline

#6 2021-08-08 23:26:16

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Connected to network but no internet connection (IWD)

It's a text file. The man page I linked to specifies the format. The rest is gravy.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#7 2021-08-08 23:47:46

Orphix
Member
Registered: 2021-08-07
Posts: 11

Re: Connected to network but no internet connection (IWD)

OK so I created the file and added the text:

[General]
EnableNetworkConfiguration=true

And still no luck getting internet connection.
Additionally I noticed that throughout the page you linked true was used in two formats: true and True. does caps matter in this file?

Last edited by Orphix (2021-08-08 23:48:22)

Offline

#8 2021-08-08 23:49:20

Zod
Member
From: Hoosiertucky
Registered: 2019-03-10
Posts: 636

Re: Connected to network but no internet connection (IWD)

Did you reboot?

Offline

#9 2021-08-08 23:54:32

Orphix
Member
Registered: 2021-08-07
Posts: 11

Re: Connected to network but no internet connection (IWD)

Yes, Still nothing and I cannot for the life of me figure out why I have no connection

Last edited by Orphix (2021-08-09 01:12:20)

Offline

#10 2021-08-09 06:59:47

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,383

Re: Connected to network but no internet connection (IWD)

over wireless

https://wiki.archlinux.org/title/Iwd#Ne … figuration

Also post the outputs of "ip a", "lspci" and "lsusb" - if this is a broadcom chip, chances are you don't even have a driven NIC…

Offline

#11 2023-02-09 05:09:06

alekseij
Member
Registered: 2023-02-09
Posts: 2

Re: Connected to network but no internet connection (IWD)

I ran into this issue under practically the same conditions. Seemingly couldn't access Internet though connected to the network. But the fact is you probably can, I pinged 8.8.8.8 and got a response so I realized it was just a DNS misconfiguration.
So for anyone who has this issue too try this: make sure you haven't specified the NameResolvingService option in /etc/iwd/main.conf, and add this line to /etc/resolv.conf

nameserver 1.1.1.1

Of course 1.1.1.1 is any DNS server you want.

Offline

#12 2023-02-09 12:39:08

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: Connected to network but no internet connection (IWD)

Closing this old thread.

Offline

Board footer

Powered by FluxBB