You are not logged in.
Hello guys, I'm a newbie here and just install Arch Linux.
Here's the problems:
1. When I `ping google.com` it'll come out "Temporary failure in name resolution"
I already edit my /etc/resolv.conf with adding "nameserver: 8.8.8.8" inside but it's not working.
2. When pinging 8.8.8.8 it comes out "Network is unreachable"
3. So also when I using pacman it'll come out "Could not resolve host: address"
I'm not sure where's the problem, thanks for helping.
Last edited by Artimira (2022-05-16 15:47:43)
Offline
How do you manage your network?
Inofficial first vice president of the Rust Evangelism Strike Force
Offline
Start by telling us how you set up networking. Ethernet, WiFi, resolver, network manager, dhcp.
Offline
And ftr, I'm not sure whether "nameserver: 8.8.8.8" is accepted syntax, but it's certainly ill-formed (no colon there)
Offline
I use iwctl to connect my wifi
$ iwctl
NetworkConfigurationEnabled: disabled
StateDirectory: /var/lib/iwd
Version: 1.24
[iwd]#
here's my "ip a"
$ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default q len 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp2s0f0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWNgroupdefault qlen1000
link/ether 88:a4:c2:3f:38:c1 brd ff:ff:ff:ff:ff:ff
4.wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether e0:0a:f6:54:e4:61: brd ff:ff:ff:ff:ff:ff
inet6 fe80::e20a:f6ff:fe54:e461/64 scope link
valid_lft forever preferred_lft forever
If you need anything else I'll try to show it. Thanks!
Offline
You've a carrier but no lease.
https://wiki.archlinux.org/title/Iwd#En … figuration or use dhcpcd/dhclient etc.
Offline
Looks like you didn't set up an IP, or any way to get one. IWD, by default, just makes the connection, similar to plugging in a cable. See the IWD wiki page.
Offline
You've a carrier but no lease.
https://wiki.archlinux.org/title/Iwd#En … figuration or use dhcpcd/dhclient etc.
I followed the link to setup files and there's a new question.
When I ping it, it comes out
$ ping google.com
ping: google.com Name or service not known
$ ping 8.8.8.8
From 192.168.1.10 icmp_seq=1 Destination Host Unreachable
Offline
The article describes different options. It would help if you could tell us what you did.
Offline
please post (fresh) outputs of
$ ip address
$ ip route
$ ip -6 route
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Online
The article describes different options. It would help if you could tell us what you did.
I'm sorry, but what do you mean different options? I might not notice about it.
And here's the ip things:
$ ip address
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default q len 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp2s0f0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN groupdefault qlen1000
link/ether 88:a4:c2:3f:38:c1 brd ff:ff:ff:ff:ff:ff
4. wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether e0:0a:f6:54:e4:61: brd ff:ff:ff:ff:ff:ff
inet 192.168.1.10/24 brd 192.168.1.255 scope global noprefixroute wlan0
valid_lft forever preferred_lft forever
inet6 fe80::e20a:f6ff:fe54:e461/64 scope link
valid_lft forever preferred_lft forever
$ ip route
default via 192.168.1.1 dev wlan0 proto static metric 304
192.168.1.0/24 dev wlan0 proto static scope link src 192.168.1.10
$ ip -6 route
::1 dev lo proto kernel metric 256 pref medium
fe80::/64 dev wlan0 proto kernel metric 256 pref medium
Offline
I'm sorry, but what do you mean different options?
from your ip a/r output I guess you copy-and-failed the static server config example?
Don't (because that's 99.99% not the correct values) and post an updated
ip a; ip r
Also (after removing the static server config and restarting iwd/rebooting)
sudo nmap --script broadcast-dhcp-discover
Offline
I don't have nmap and dhcp command, do I need to reinstall the os?
Offline
You can download the nmap package and usb-walk it onto the system (or download and install them w/ the install iso)
However, first provide the requested output after removing the static IP config (if you have added such, which you would please confirm or deny)
Offline
You can download the nmap package and usb-walk it onto the system (or download and install them w/ the install iso)
However, first provide the requested output after removing the static IP config (if you have added such, which you would please confirm or deny)
Specifically, then only option you should add to the configuration in post #1 is the EnableNetworkConfiguration setting. Nothing else.
When that works (e.g. ping 8.8.8.8), then you can continue with configuring the DNS resolver.
Last edited by progandy (2022-05-16 14:12:53)
| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |
Offline
After I delete the IPv4 in /var/lib/iwd/network.psk, the connection works fine now.
Also I added EnableNetworkConfiguration setting.
Thanks for everyone's replies, seems I still have lots of work to learn.
Offline