]>
Commit | Line | Data |
---|---|---|
966b7f10 JR |
1 | # To set-up a new interface do the following (for example eth0): |
2 | # | |
3 | # ln -s /lib/systemd/system/ifup@.service \ | |
4 | # /etc/systemd/system/network.target.wants/ifcfg@eth0.service | |
5 | # | |
4b45bf2a TP |
6 | [Unit] |
7 | Description=Start ifup for %I | |
8 | After=local-fs.target | |
9 | After=network.service | |
10 | Wants=network.service | |
11 | Before=network-post.service | |
12 | ||
966b7f10 JR |
13 | # If it's a vlan/bridge/macvlan slave put required masters like this: |
14 | # | |
15 | #Before=ifcfg@eth0.service | |
16 | ||
4b45bf2a TP |
17 | [Service] |
18 | ExecStart=/sbin/ifup %I | |
19 | ExecStop=/sbin/ifdown %I | |
20 | RemainAfterExit=true | |
21 | Type=oneshot |