You are not logged in.
Pages: 1
Hello there. I've just installed and configured a copy of Arch Linux on my VPS. It has an static IP address of "xx.44.46.240" and connects through a gateway at "xx.24.11.254". As it's said in https://wiki.archlinux.org/index.php/Systemd-networkd I created a .network file containing:
[Match]
Name=ens192
[Network]
Address=xx.44.46.240/32
Gateway=xx.24.11.254
DNS=8.8.8.8then I enabled and restarted the "systemd-networkd" service, but when I tried to ping a public IP afterwards "Network unreachable" was shown. Here it's the output of "# systemctl status systemd-networkd":
ens192: Gained carrier
ens192: Could not set route: network is unreachableI did some search on forums online and I found this solution to get the connectivity temporarily:
# ip route add xx.24.11.254/32 dev ens192
# ip route add 0.0.0.0/0 via xx.24.11.254So what's wrong with the service configs? How could I get it fixed?
Last edited by COLDFUSION (2018-10-13 08:57:24)
So close no matter how far
Offline
Typo in the Gateway.
Offline
The file is good It's just here in the post (I mistakenly deleted the dot when I was replacing part A with xx).
So close no matter how far
Offline
The file is good It's just here in the post (I mistakenly deleted the dot when I was replacing part A with xx).
Configure static routes
Specify static routes in a systemd network unit's [Route] section. In this example, we create a unit file, 10-static.network, and define in it a static route to the 172.16.0.0/24 subnet:
10-static.network
[Route]
Gateway=192.168.122.1
Destination=172.16.0.0/24Offline
So bad censoring. I guess we can't trust anything posted. Good luck.
Offline
Pages: 1