* Questions about 'ip link set DEV_NAME name DEV_NEWNAME'
@ 2015-06-15 13:25 申晓欢
2015-06-15 15:52 ` Stephen Hemminger
0 siblings, 1 reply; 2+ messages in thread
From: 申晓欢 @ 2015-06-15 13:25 UTC (permalink / raw)
To: netdev
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!
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Questions about 'ip link set DEV_NAME name DEV_NEWNAME'
2015-06-15 13:25 Questions about 'ip link set DEV_NAME name DEV_NEWNAME' 申晓欢
@ 2015-06-15 15:52 ` Stephen Hemminger
0 siblings, 0 replies; 2+ messages in thread
From: Stephen Hemminger @ 2015-06-15 15:52 UTC (permalink / raw)
To: 申晓欢; +Cc: netdev
On Mon, 15 Jun 2015 21:25:30 +0800
申晓欢 <sxhlinux@163.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@vger.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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-06-15 15:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-15 13:25 Questions about 'ip link set DEV_NAME name DEV_NEWNAME' 申晓欢
2015-06-15 15:52 ` Stephen Hemminger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).