lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Mon, 15 Jun 2015 08:52:44 -0700
From:	Stephen Hemminger <stephen@...workplumber.org>
To:	申晓欢 <sxhlinux@....com>
Cc:	<netdev@...r.kernel.org>
Subject: Re: Questions about 'ip link set DEV_NAME name DEV_NEWNAME'

On Mon, 15 Jun 2015 21:25:30 +0800
申晓欢 <sxhlinux@....com> wrote:

> I'm using command 'ip link set ge0/0 name ge5/1' to rename interface name
> from ge0/0 to ge5/0. when command complete, command 'ifconfig' and 'cat
> /proc/net/dev ' both can output information of ge5/0,however command 'ls
> /sys/class/net/' output "ls: /sys/class/net/ge5/0: No such file or
> directory".
>      There is no udev in my device, until to now command 'ip link' is the
> only way to change interface name. 
>      Anyone know solution to my problem, please give me some advice, thanks!
> 
> 
> --
> To unsubscribe from this list: send the line "unsubscribe netdev" in
> the body of a message to majordomo@...r.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

Slashes are not allowed in network names on Linux because slash is
used as a file separator in sysfs. In normal Linux any attempt to
create or rename an interface to something with slash in it is rejected
with "Invalid argument"

I suspect you are using some vendor modified kernel (Juniper or Cisco?) which
allows slash in filenames because how else would you get ge0/0.
If so, contact them it is there problem.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ