melekin |
|
Темы:
3
Сообщения:
21
Участник с: 10 сентября 2012
|
доброго времени суток! Перешел на чистый systemd, не работает интернет cat /etc/conf.d/network interface=eth0 address=10.10.10.100 netmask=255.255.255.0 broadcast=10.10.10.1 gateway=10.10.10.1 [Unit] Description=Network Connectivity Wants=network.target Before=network.target [Service] Type=oneshot RemainAfterExit=yes EnvironmentFile=/etc/conf.d/network ExecStart=/sbin/ip link set dev ${interface} up ExecStart=/sbin/ip addr add ${address}/${netmask} broadcast ${broadcast} dev ${interface} ExecStart=/sbin/ip route add default via ${gateway} ExecStop=/sbin/ip addr flush dev ${interface} ExecStop=/sbin/ip link set dev ${interface} down [Install] WantedBy=multi-user.target network.service - Network Connectivity Loaded: loaded (/etc/systemd/system/network.service; disabled) Active: failed (Result: exit-code) since Sun, 09 Sep 2012 19:48:25 +0300; 33min ago Process: 30302 ExecStart=/sbin/ip route add default via ${gateway} (code=exited, status=2) Process: 30297 ExecStart=/sbin/ip addr add ${address}/${netmask} broadcast ${broadcast} dev ${interface} (code=exited, status=0/SUCCESS) Process: 30296 ExecStart=/sbin/ip link set dev ${interface} up (code=exited, status=0/SUCCESS) CGroup: name=systemd:/system/network.service |