Hi Andrew,
here is the ouput for the command as you requested:
# ifup eth0:2 -v
Configuring interface eth0:2=eth0:2 (inet)
run-parts --verbose /etc/network/if-pre-up.d
run-parts: executing /etc/network/if-pre-up.d/ethtool
ip addr add XX.XXX.XX.XXX/255.255.255.0 broadcast XX.XXX.XX.XXX
dev eth0:2 label eth0:2
ip link set dev eth0:2 up
run-parts --verbose /etc/network/if-up.d
run-parts: executing /etc/network/if-up.d/clamav-freshclam-ifupdown
run-parts: executing /etc/network/if-up.d/ethernet-link
cat: /sys/class/net/eth0:2/operstate: No such file or directory
run-parts: executing /etc/network/if-up.d/ethtool
run-parts: executing /etc/network/if-up.d/mountnfs
run-parts: executing /etc/network/if-up.d/ntpdate
run-parts: executing /etc/network/if-up.d/openssh-server
run-parts: executing /etc/network/if-up.d/upstart
It looks like the problem comes at how the $STATE variable is set via
the /usr/local/bin/enforce-ethernet-link on line 18:
STATE=$(cat /sys/class/net/$I/operstate)
Manualy setting this variable resolves the output issue.
Thank you for assisting
On 05/02/2014 23:52, Andrew Shadura wrote:
Hello,
On Wed, 05 Feb 2014 15:00:19 +0200
"Herman Tolken - Hetzner (Pty) Ltd" <herman.tol...@hetzner.co.za> wrote:
When using ifup to bring interface eth0:2 up I get the following
output:
#: ifup eth0:2
cat: /sys/class/net/eth0:2/operstate: No such file or directory
Could you please run it with -v? I don't remember having checks like
that in ifupdown itself (there's one in the init script, however).
--
Herman Tolken
Systems Administrator
Hetzner (Pty) Ltd
National Contact Centre: 0861-0861-08
Fax: 0861-0861-09
International: +27 21 970 2000
Web: http://www.hetzner.co.za
Disclaimer: http://www.hetzner.co.za/email-disclaimer
Hetzner (Pty) Ltd - Winning awards since 2003
--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org