Installing by remote control -- network trouble

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi all,

I've almost got this. My dedicated server appears to be willing to
boot from the disk, but the network doesn't come up.

Here is the service file:

[root@munich ~]# cat /etc/systemd/system/network.service
[Unit]
Description=Wireless Static IP Connectivity
Wants=network.target
Before=network.target
BindsTo=sys-subsystem-net-devices-net0.device
After=sys-subsystem-net-devices-net0.device

[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/sbin/ip link set dev net0 up
ExecStart=/sbin/ip addr add 193.34.144.104/25 dev net0
ExecStart=/sbin/ip addr add 91.205.174.230/27 dev net0
ExecStart=/sbin/ip addr add 91.205.174.231/27 dev net0
ExecStart=/sbin/ip addr add 91.205.174.232/27 dev net0
ExecStart=/sbin/ip addr add 91.205.174.233/27 dev net0
ExecStart=/sbin/ip addr add 91.205.174.234/27 dev net0
ExecStart=/sbin/ip addr add 91.205.174.235/27 dev net0
ExecStart=/sbin/ip addr add 91.205.174.236/27 dev net0
ExecStart=/sbin/ip addr add 91.205.174.237/27 dev net0
ExecStart=/sbin/ip addr add 91.205.174.238/27 dev net0
ExecStart=/sbin/ip addr add 91.205.174.239/27 dev net0
ExecStart=/sbin/ip route add default via 193.34.144.1

ExecStop=/sbin/ip addr flush dev net0
ExecStop=/sbin/ip link set dev net0 down

[Install]
WantedBy=multi-user.target
[root@munich ~]#

It is based on the example at
https://wiki.archlinux.org/index.php/Network which I also used for my
home desktop, where it works fine. (Though the latter has only one IP
address not eleven of them.) The system log says that it is timing out:

Job sys-subsystem-net-devices-net0.device/start timed out.
Timed out waiting for device sys-subsystem-net-devices-net0.device.
Dependency failed for Wireless Static IP Connectivity.

I tried a few things, changing the service file to:

[root@munich ~]# cat /etc/systemd/system/network.service
[Unit]
Description=Wireless Static IP Connectivity
Wants=network.target
Before=network.target
BindsTo=sys-subsystem-net-devices-net0.device
After=sys-subsystem-net-devices-net0.device

[Service]
Type=oneshot
TimeoutSec=0
Restart=always
RestartSec=30
RemainAfterExit=yes
ExecStart=/sbin/ip link set dev net0 up
ExecStart=-/sbin/ip addr add 193.34.144.104/25 dev net0
ExecStart=-/sbin/ip addr add 91.205.174.230/27 dev net0
ExecStart=-/sbin/ip addr add 91.205.174.231/27 dev net0
ExecStart=-/sbin/ip addr add 91.205.174.232/27 dev net0
ExecStart=-/sbin/ip addr add 91.205.174.233/27 dev net0
ExecStart=-/sbin/ip addr add 91.205.174.234/27 dev net0
ExecStart=-/sbin/ip addr add 91.205.174.235/27 dev net0
ExecStart=-/sbin/ip addr add 91.205.174.236/27 dev net0
ExecStart=-/sbin/ip addr add 91.205.174.237/27 dev net0
ExecStart=-/sbin/ip addr add 91.205.174.238/27 dev net0
ExecStart=-/sbin/ip addr add 91.205.174.239/27 dev net0
ExecStart=/sbin/ip route add default via 193.34.144.1

ExecStop=/sbin/ip addr flush dev net0
ExecStop=/sbin/ip link set dev net0 down

[Install]
WantedBy=multi-user.target
[root@munich ~]#

No joy. What am I missing?

Thanks!
- -- 
David Benfell <benfell@xxxxxxxxxxxxxxxxx> <dbenfell@xxxxxxxxxxxx>
See https://parts-unknown.org/node/2 for GnuPG (the attachment you
don't understand) information.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (MingW32)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBAgAGBQJRW6KdAAoJELJhbl/uPb4SdTkP/jug6btO3lWlJ+KXz3UqzXIc
OYRb80337OZIWY44zo3KdBqtLEO3aG2W4qdJB5Z4LLYku4VgxFsevj9PKYtrQofh
G9mXuAFTqTUyjUnAkRvn0LwejAyv8+4ifn/ZdrGSuW0+TmLK05iZgY+ythfWKAyZ
S7lgxeRRhQu2ntHLjK+zWte3oVhhhXh0krvpxN0z7IAD6uXZU7ucajdLgujeU+6n
+ynlXf0R1/G94gaghGNtOATOgVXr5fs53KbFSLZJLQKjvZinff/b4VVBDG9wxLP7
qkG5G/MFwjEe3x06iuJ3dJJedXVAV7Oc4mO0rELQw8gENXkbdxcPlyDWAjCySK95
T/7RmspcizXJAqz/cDOlYx1aylg9StXmj9QTuHpWHFBBuHpo1ZxASacnMkD96QPZ
ozJawihpddHiDON0PBbLH11xPtamrW7x19gly1v96PXPHxJ4NSn0NX04BiuPwfFQ
2F6P3Z1TkijxNUU1ZIvIga5vDlilGYRDErKcTcL/n8XxgfOjH5KVhEXe9SkxKFJv
WZGprQzRFpCRMV0WBm+YTAC3PbhnPXnvVMWyrBDA7GchjxfMpzqNcvDJuAO1ol/W
AL1LygH82da355r417RkSXDZLydvc1UMST2Bd+4vi5he4p+W2n+kJSg+44fKW8u/
elmtkUZofRkYeqcfZyCQ
=Qrpj
-----END PGP SIGNATURE-----


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux