[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 <benfell@parts-unknown.org> <dbenfell@saybrook.edu> 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-----
-----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 <benfell@parts-unknown.org> <dbenfell@saybrook.edu> 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/ iQIcBAEBAgAGBQJRXDpvAAoJELJhbl/uPb4SMjMP/0+1WooAzZ6IV6q+1dy/fLC3 V9vyj26hg5TY277KHQ/CwM9olrFthudUyzWuvRmVIX8kzzEfCPV0kvxOZxOu3rs6 Kbi7+LuqDbQgQxnxwwKjSpg22abNfTMUZfEhK2wB4tyqP0jxbVAPy9Dfb4bx44NF NlEyogOepuZJVT5asfd2EhndCW1UkNlD6+MB4h9pSVc2dsWeu5b0H1TFiyD6v3cA mPI785OPyVZHngeZ5BcueYh6NB0K6ieJQbBNZrTvTzIXpNl2s3eoYguZ2rcIhL47 6JS2EcUfPggiQOabqC4yUT3LU+qARuC29nFFmBI9v0Ei/lh0UoXcRvNLSqbXM+vP vndMOF4AK43dB8Vl6zKUYeqWcaHdy9/HY7qogNpLJtRYhnPIqbg5a42OamUjfRWf Un+NWU6cuFt24UNn1k68Leo0w3BvhumklISVpt+qaamCs2Xy5MW3jL7StXEWvpoJ PQefbaHkS4x69dV3zmjikDrocLP+E2SDWmz5NctS2MUkDPZzrPG7GHBMo+1AEwvA w6jMzZczfWw4kK8EikZ7SOJBcknevNhAMHLu2ScbPctc39jMaLfPURh+6LALUybt zHMH0E7rWji759qWsJ8AGRDZGspGb0wVBZugDOMlbG6FkA0BOKQuKZrfHg6sD7ug daARfeNoEEONQFHjtrxF =aoQL -----END PGP SIGNATURE-----
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