为什么设置不了化名啊??

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
518899
帖子: 35
注册时间: 2012-07-17 21:44

为什么设置不了化名啊??

#1

帖子 518899 » 2012-07-30 21:37

Numerical values can be specified either with decimal (no
prefix), octal (prefix '0') or hexadecimal (prefix '0x') base.
administrator@ubuntu:~$ ifconfig
eth0 Link encap:以太网 硬件地址 00:1f:d0:12:9b:be
inet6 地址: 2001:250:3000:4b19:21f:d0ff:fe12:9bbe/64 Scope:Global
inet6 地址: fe80::21f:d0ff:fe12:9bbe/64 Scope:Link
UP BROADCAST MULTICAST MTU:1500 跃点数:1
接收数据包:4502 错误:0 丢弃:0 过载:0 帧数:0
发送数据包:1310 错误:0 丢弃:0 过载:0 载波:0
碰撞:0 发送队列长度:1000
接收字节:2150414 (2.1 MB) 发送字节:146800 (146.8 KB)
中断:26 基本地址:0x4000

lo Link encap:本地环回
inet 地址:127.0.0.1 掩码:255.0.0.0
inet6 地址: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 跃点数:1
接收数据包:1084 错误:0 丢弃:0 过载:0 帧数:0
发送数据包:1084 错误:0 丢弃:0 过载:0 载波:0
碰撞:0 发送队列长度:0
接收字节:86424 (86.4 KB) 发送字节:86424 (86.4 KB)

administrator@ubuntu:~$ ethercat alias 0x4000
Failed to obtain number of masters: Failed to open master device /dev/EtherCAT0: Permission denied
administrator@ubuntu:~$ ethercat alias -a0x4000
'alias' takes exactly one argument!

ethercat alias [OPTIONS] <ALIAS>

Write alias addresses.

Arguments:
ALIAS must be an unsigned 16 bit number. Zero means
removing an alias address.

If multiple slaves are selected, the --force option
is required.

Command-specific options:
--alias -a <alias>
--position -p <pos> Slave selection. See the help of
the 'slaves' command.
--force -f Acknowledge writing aliases of
multiple slaves.

Numerical values can be specified either with decimal (no
prefix), octal (prefix '0') or hexadecimal (prefix '0x') base.
administrator@ubuntu:~$ ethercat config
Failed to obtain number of masters: Failed to open master device /dev/EtherCAT0: Permission denied
头像
cuihao
帖子: 4793
注册时间: 2008-07-24 11:33
来自: 郑州
联系:

Re: 为什么设置不了化名啊??

#2

帖子 cuihao » 2012-07-31 8:26

代码: 全选

sudo ethercat alias 0x4000
我认为需要sudo一下。
求人不如求它仨: 天蓝的Wiki 屎黄的Wiki 绿
Site: CUIHAO.TK    Twitter: @cuihaoleo
Machine: Athlon64 X2 5200+ / 2x2GB DDR2-800 / GeForce GTS 450
AD: ~まだ見ぬ誰かの笑顔のために~
回复