RE: Still requires ifdown eth0 / ifup eth0 (DHCP) » sample1.txt
1 |
root@mityT1-dev:/lib/systemd/system# more networking.service |
---|---|
2 |
|
3 |
[Unit] |
4 |
Description=Networking |
5 |
Before=getty@tty1.service display-manager.service app.service |
6 |
After=dev-tty1.device |
7 |
|
8 |
[Service] |
9 |
ExecStart=-/etc/init.d/networking start |
10 |
|
11 |
Type=oneshot |
12 |
|
13 |
[Install] |
14 |
WantedBy=multi-user.target |
15 |
root@mityT1-dev:/lib/systemd/system# |
16 |
|
17 |
|
18 |
|
19 |
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8) |
20 |
|
21 |
# The loopback interface |
22 |
auto lo |
23 |
iface lo inet loopback |
24 |
|
25 |
# Wireless interfaces |
26 |
iface wlan0 inet dhcp |
27 |
wireless_mode managed |
28 |
wireless_essid any |
29 |
wpa-driver wext |
30 |
wpa-conf /etc/wpa_supplicant.conf |
31 |
|
32 |
iface atml0 inet dhcp |
33 |
|
34 |
# Wired or wireless interfaces |
35 |
auto eth0 |
36 |
iface eth0 inet dhcp |
37 |
hostname mityT1-dev # set to my host name |
38 |
|
39 |
iface eth1 inet dhcp |
40 |
|
41 |
# Ethernet/RNDIS gadget (g_ether) |
42 |
# ... or on host side, usbnet and random hwaddr |
43 |
iface usb0 inet static |
44 |
address 192.168.7.2 |
45 |
netmask 255.255.255.0 |
46 |
network 192.168.7.0 |
47 |
gateway 192.168.7.1 |
48 |
|
49 |
# Bluetooth networking |
50 |
iface bnep0 inet dhcp |