You are not logged in.
Hello. I started to hate Ubuntu because they gave me continually gtk errors. So i have installed arch today. While i was installing, i could reach internet via ethernet cable. After reboot, ping started to give me error " ping: connect: Network is unreachable" while i still using ethernet cable.
Default gateway address; 192.168.2.1/24
ip link show:
2: enp12s0: <BROADCAST, MULTICAST, UP, LOWER_UP> mtu 1500 qdisc fq_codel state UP mode DEFAULT group default qlen 1000
link/ether 00:2b:.....:0d brd ff:.....ff3: wlp0s20f3 <BROADCAST, MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
link/ether a8:7e.....:75 brd ff:....:ffip address show (i have added static ip):
2: enp12s0 inet 192.168.2.160/24 brd 192.168.2.255 scope global enp12s0networkctl:
enp12s0 ether routable unmanaged
wlp0s20f3 wlan off unmanagednetworkctl status enp12s0:
State: routable (unmanaged)
Online state: unknown
Driver: r8169
Duplex: full
Port: tp
Address: 192.169.2.160
Activation policy: up
Required for Online: yes
enp12s0: Link UP, gained carrier, gained IPv6LL
Used commands;
networkctl up enp12s0
networkctl reconfigure enp12s0
networkctl reload enp12s0
There were no outputs.networkctl forcerenew enp12s0
Failed to force renew dynamic configuration of interface enp12s0: Interface enp12s0 is not managed by systemd-networkdip link set wlp0s20f3 up:
RTNETLINK answers: Operation not possible due to RF-killls -Al /etc/systemd/network/
total 0 (empty)~~~~~~~~~~~~
I have restarted systemd-networkd.service
Under /usr/lib/systemd/network , there are .network .example files and a .link file.
~~~~~~~~~~~~rfkill --output-all
0 wlan ideapad_wlan Wireless LAN blocked unblocked
1 bluetooth ideapad_bluetooth Bluetooth blocked unblocked
2 bluetooth hci0 Bluetooth blocked unblocked
3 wlan phy0 Wireless LAN blocked unblockeduname -r
5.13.8-arch1-1
~~~~~~~~~~~~~~~
I writed
rfkill unblock all ; rfkill --output-all
0 wlan ideapad_wlan Wireless LAN unblocked unblocked
1 bluetooth ideapad_bluetooth Bluetooth unblocked unblocked
2 bluetooth hci0 Bluetooth unblocked unblocked
3 wlan phy0 Wireless LAN unblocked unblockedip link set wlp0s20f3 up (This time code worked)
ip link show
3: wlp0s20f3 <NO-CARRIER, BROADCAST, MULTICAST, UP> mtu 1500 qdisc noqueue state DOWN mode DEFAULT .....
I restarted systemd-networkd.service with systemctl. Still same. I can ping my router. But can't 1.1.1.1 or 8.8.8.8
Rebooted, still same. I can't reach outside servers.
Note: Before these all, I finished my installing. And rebooted. I decided to download xorg and i realized i can't connect internet. There were loopback ints, ignored.
SOLUTION:
I have added two files into /etc/systemd/network
20-wired.network
[Match]
Name=enp12s0
[Network]
Address=192.168.2.160/24
Gateway=192.168.2.1
DNS=192.168.2.1
25-wireless.network
[Match]
Name=wlp0s20f3
[Network]
Address=192.168.2.161/24
Gateway=192.168.2.1
DNS=192.168.2.1
And i have connected to internet finally.
Last edited by hmet_ust (2021-08-06 20:30:32)
Offline
Please use code tags, not quote tags.
Most importantly:
ip r
Interface enp12s0 is not managed by systemd-networkd
i have added static ip
Why?
Since systemd-networkd isn't managing the interface, how do you (intend to) manage the network at all?
Offline
1. Can you ping other devices in your local network?
2. I think that you should add a config file when using systemd-netoworkd e.g. https://wiki.archlinux.org/title/System … n_examples
3. I would recommend using NetworkManager especially if you are plan on using a desktop environment, VPN's ...
Last edited by f-elixxx (2021-08-05 20:43:16)
Offline
Please use code tags, not quote tags.
Most importantly:ip r
Interface enp12s0 is not managed by systemd-networkd
i have added static ip
Why?
Since systemd-networkd isn't managing the interface, how do you (intend to) manage the network at all?
I will be more careful next time. Sorry. I have added a static ip for also my wireless device. I realized my computer can't receive ip and dns. So i have added static IPs via "ip address add" and DNS to resolv.conf
ip r:
192.168.2.0/24 dev enp12s0 proto kernel scope link src 192.168.2.160
192.168.2.0/24 dev wlp0s20f3 proto kernel scope link src 192.168.2.161 linkdown
1. Can you ping other devices in your local network?
2. I think that you should add a config file when using systemd-netoworkd e.g. https://wiki.archlinux.org/title/System … n_examples
3. I would recommend using NetworkManager especially if you are plan on using a desktop environment, VPN's ...
1. I can ping other devices in my network.
2. I looked it and i found it very complicated so i prefer to use NetworkManager.
3. I would like to use NetworkManager! But i can't reach internet so pacman doesn't work. Is there a way?
Thanks for advance.
Offline
You don't have a default route out of your local home network.
The question remains as to how (services, and their respective configuration) you set up your network.
Inofficial first vice president of the Rust Evangelism Strike Force
Offline
Thanks for your all advices. I have written some .network files into /etc/systemd/network and problem solved. Thanks again to you all.
Offline
3. I would like to use NetworkManager! But i can't reach internet so pacman doesn't work. Is there a way?
I know that the problem is resolved by know but for future reference just boot into the live usb drive again, mount the root partition to /mnt and do
arch-chroot /mnt
If you had an internet connection during the installation you should have one now as arch-chroot as it exposes the resolv.conf file to the changed root (see: https://man.archlinux.org/man/arch-chroot.8).
Offline