SOLVED Re: Installing by remote control -- network trouble

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



-----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@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/

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-----


[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