Hi all,
Despite what is being told here:
https://wiki.archlinux.org/index.php/Sy ... et_network
And what is being explained here:
http://www.pontikis.net/blog/migration- ... -archlinux
I cannot seem to get a static IP to work.
System is a freshly installed (yesterday-evening) RPi, with only vim, irssi, clang, python and screen packages (and their deps).
Upon booting, the networking service is attempting to set itself up, and in the mean time I'm stuck in the year 1970. I already get the login prompt, but some time after that, if I don't log in or otherwise touch the keyboard, I get a nice error message:
$this->bbcode_second_pass_code('', '
Arch Linux 3.6.11-11-ARCH+ (tty1)
****** login: [TIME] Timed out waiting for device sys-subsystem-net-devices-multi-user.device.
[DEPEND] Dependency failed for Network Static IP for multi-user.
[OK] Reached Target Network.
Starting Network Time Service ...
[OK] Started Network Time Service.
[OK] Reached target Multi-User System.
[OK] Reached target Graphical Interface.
')
**** is censored....
Despite setting up a /etc/conf.d/network with:
$this->bbcode_second_pass_code('', '
address=192.168.1.160
netmask=24
broadcast=192.168.0.255
gateway=192.168.1.1
')
and a /etc/systemd/system/network@.service with
$this->bbcode_second_pass_code('', '
[Unit]
Description=Netowork Static IP for %i
Wants=network.target
Before=network.target
BindsTo=sys-subsystem-net-devices-%i.device
After=sys-subsystem-net-devices-%i.device
[Service]
Type=oneshot
RemainsAfterExit=yes
ExecStart=/sbin/ip link set dev %i up
ExecStart=/sbin/ip addr add 192.168.1.160/24 dev %i
ExecStart=/sbin/ip route add default via 192.168.1.1
ExecStart=/sbin/ip addr flush dev %i
ExecStart=/sbin/ip link set dev %i down
[Install]
WantedBy=multi-user.target
')
# systemctl enable network@
gives no further output and accepts this in the commandline
# systemctl status network@eth0.service gives the output
$this->bbcode_second_pass_code('', '
network@eth0.service - Network Static IP for eth0
Loaded: loaded (/etc/systemd/system/network@.service; enabled)
Active: active (exited) since Thu 1970-01-01 -1:00:07 CET: 43 years 5 months ago
Main PID: 137 (code=exited, status=0/SUCCESS)
CGroup: name=systemd:/system/network@.service/network@etho.service
')
Yet ifconfig keeps telling met that my IP is still not set to bla.bla.bla.160
In the mean time, "date" now knows it's no longer seconds from the epoch, it seems that the time deamon/service is run after networking...
Does anyone have a hint for me here? I'm kind of stuck on this probably very small issue. A fresh install didn't do the trick either...