[arch-general] Installing by remote control -- network trouble
-----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
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 4/2/2013 8:31 PM, David Benfell wrote:
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.
Oh, how absolutely embarrassing. Whoever heard of a network device
named enp3s2? Really. Here's the service file, complete with all the
commented out stuff I also tried:
[Unit]
Description=Wireless Static IP Connectivity
Wants=network.target
Before=network.target
BindsTo=sys-subsystem-net-devices-enp3s2.device
After=sys-subsystem-net-devices-enp3s2.device
[Service]
Type=oneshot
TimeoutSec=0
Restart=always
RestartSec=30
RemainAfterExit=yes
ExecStart=/sbin/ip link set dev enp3s2 up
ExecStart=-/sbin/ip addr add 193.34.144.104/25 dev enp3s2
#ExecStart=/sbin/dhcpcd -q -b
ExecStart=-/sbin/ip addr add 91.205.174.230/27 dev enp3s2
ExecStart=-/sbin/ip addr add 91.205.174.231/27 dev enp3s2
ExecStart=-/sbin/ip addr add 91.205.174.232/27 dev enp3s2
ExecStart=-/sbin/ip addr add 91.205.174.233/27 dev enp3s2
ExecStart=-/sbin/ip addr add 91.205.174.234/27 dev enp3s2
ExecStart=-/sbin/ip addr add 91.205.174.235/27 dev enp3s2
ExecStart=-/sbin/ip addr add 91.205.174.236/27 dev enp3s2
ExecStart=-/sbin/ip addr add 91.205.174.237/27 dev enp3s2
ExecStart=-/sbin/ip addr add 91.205.174.238/27 dev enp3s2
ExecStart=-/sbin/ip addr add 91.205.174.239/27 dev enp3s2
#ExecStart=/sbin/ip link set dev enp3s2 up
ExecStart=/sbin/ip route add default via 193.34.144.1
ExecStop=/sbin/ip addr flush dev enp3s2
#ExecStop=/sbin/dhcpcd -x
ExecStop=/sbin/ip link set dev enp3s2 down
[Install]
WantedBy=multi-user.target
- --
David Benfell
On 2013-04-03 07:19, David Benfell wrote:
Oh, how absolutely embarrassing. Whoever heard of a network device named enp3s2? Really. Here's the service file, complete with all the commented out stuff I also tried:
See here for the reason: https://mailman.archlinux.org/pipermail/arch-dev-public/2013-January/024231.... Chris
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 04/03/2013 07:24 AM, Chris Down wrote:
On 2013-04-03 07:19, David Benfell wrote:
Oh, how absolutely embarrassing. Whoever heard of a network device named enp3s2? Really. Here's the service file, complete with all the commented out stuff I also tried:
See here for the reason: https://mailman.archlinux.org/pipermail/arch-dev-public/2013-January/024231....
So hopefully they'll *tell* me before taking down my server and rearranging its innards. 'Cause it would seem, under those circumstances, that when it reboots, the name may have changed again. That does shed some light. Thanks! -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBAgAGBQJRXSK9AAoJELJhbl/uPb4SIoMQALu4glLbRNPDE1ltp1h0jgmX vlIfKuuRe0wqQVAZMxXpv3EmCJZnLKmL0/4PKIdu7O5XQA84td2ZwvwfYJ63222D NxG/5AkYS2PIES6MNF4dkZDYyY1eDVPoPIsWg/MmSXNmTBCdsSnc8R/cfVCJiREU ycGk3GRgNSCdvgd+mxeEhQQWda+g1xGQXamHOnklHEnhcWPUN6wdPs/m0knM8/5h xx1s1oTRU+lBvzDOJrK15ZF2vnFxQdrurT99BnQzWKIqpBn6RVce1hYiMgGcpA8/ 8c6vw9AHz8ny9IhOC/tPXSKMvA2wGSMuvmyWAvexfopwGe1wV/5BhmzjOc5fAIP0 +JB8dFDDUJNBVNJsiJCtElHMu+ohvgxPdjq/NrT0r6R2O4JJIkY1MKDeNlr1D3Yt xhH+YeCngA55Pw5zwCgaUMB2x96OHdoVZeqYek7mzsp+v7/w1//lmCP7jaK1gNaS juPZC6Ce2M/bOMWb/5czh4Ck0/VX1zraaLPmAfcI16FKfYIaYRJzY67rLE1NPAe5 nEgH0XpIz2BSyqSRQ7A8yMJC2pBpQXECCVOdDd5utRdSH9nCHFt9cgDxZ0IX9n4u PRZtNU7uct0OLWCgJ6NHtpIauB1kulFLTtqz9ftxGlg1RVnHOT2WzneqFcmP3wPG T7yfQ7HHCEVuZa5ZN6cz =Chhf -----END PGP SIGNATURE-----
participants (2)
-
Chris Down
-
David Benfell