You are not logged in.
Dear all ![]()
This is on a new install, where I have created /etc/systemd/network/20-wired.network and it contains
[Match]
Name=enp0s25
[Network]
Address=192.168.1.10/16
Gateway=192.168.0.1
DNS=192.168.0.1and doing
systemctl systemd-networkd
ip ashows I have got the IP, but I can't "ping google.com". I get "Network is unreachable".
Can anyone figure out what I am doing wrong?
Hugs
Sandra ![]()
Last edited by LittleSandra (2021-01-26 19:42:00)
Offline
You need to set up systemd-resolved as well.
https://wiki.archlinux.org/index.php/Sy … _and_setup
Offline
Does it work any better if you set
Address=192.168.0.10/16Offline
boot from archiso, copy your DNS server from /etc/resolv.conf
boot your newly installed system, you need to install netctl package
there is an example /etc/netctl/examples/ethernet-static,
copy it to /etc/netctl/enp0s25, you need the following lines
Interface=enp0s25
Connection=ethernet
IP=static
Address=('192.168.0.21/24' '192.168.7.21/24')
Gateway='192.168.0.1'
DNS=('164.9.44.117') <= specify your DNS server
then execute,
nectl enable enp0s25
netctl start enp0s25
Last edited by twobooks (2021-01-25 02:07:51)
Offline
Post the output of `ip a s` and `ip r s`, and `ping -c1 192.168.0.1`
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
That you have an ip is logical since you set it yourself, but when it does not communicate with your router/modem it still will fail.
The reason for that seems that your gateway and dns don't comply with the ip you did set. They are on complete different networks ranges (x168.0.x vs x168.1.x)
Offline
@archlin Look at the subnet. They are in the same range when using a /16. Not everything is a /24 network.
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
Your right overlooked that.
Offline
boot from archiso, copy your DNS server from /etc/resolv.conf
boot your newly installed system, you need to install netctl package
there is an example /etc/netctl/examples/ethernet-static,
copy it to /etc/netctl/enp0s25, you need the following lines
Interface=enp0s25
Connection=ethernet
IP=static
Address=('192.168.0.21/24' '192.168.7.21/24')
Gateway='192.168.0.1'
DNS=('164.9.44.117') <= specify your DNS serverthen execute,
nectl enable enp0s25
netctl start enp0s25
This worked for me
Thanks so much! ![]()
I don't understand however why I cant have
Address=('192.168.1.21/16')I would argue, that it just allows me to connect to ip addresses from 192.168.0.1 - 192.168.255.255. I guess that isn't the case, so if anyone can explain why, then I would be very interested in knowing ![]()
Hugs
Sandra ![]()
Offline
theoretically, Address=('192.168.1.21/16') is OK,
however for LAN at home Address=('192.168.0.21/24') is preferred because there are 254 addresses available and that is enough; for LAN in the office Address=('192.168.1.21/16') is still not recommended for security reason, you don't want the staffs in the marketing department to share information with the employees in the accounting department.
Offline