分页: 1 / 1

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

发表于 : 2012-07-30 21:37
518899
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

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

发表于 : 2012-07-31 8:26
cuihao

代码: 全选

sudo ethercat alias 0x4000
我认为需要sudo一下。