this has to be a bug...

Ben Scott dragonhawk at gmail.com
Sat Mar 25 14:52:01 EST 2006


On 3/25/06, Dave Johnson <dave-gnhlug at davej.org> wrote:
> Ya, a bug in net-tools, but you are using an invalid syntax.  Buggy
> software and sudo definately dont mix :(

  If your system supports it, you may want to look at iproute2 (the
ip(8) command).  The syntax is a lot more flexible, and a lot more
sane, than ifconfig(8).  And, apparently, it handles this error
better:

# ip addr show dev eth0
2: eth0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000
    link/ether 00:10:5a:20:55:f1 brd ff:ff:ff:ff:ff:ff
    inet 10.10.10.10/24 brd 10.10.10.255 scope global eth0
    inet6 fe80::210:5aff:fe20:55f1/64 scope link
       valid_lft forever preferred_lft forever
# ip addr del 192.168.10.1 dev eth0
RTNETLINK answers: Cannot assign requested address
#

-- Ben




More information about the gnhlug-discuss mailing list