Weblog entry #32 for simonw
"ip addr list" is my friend.
Wanted to alias an address to my ethernet card.
ifconfig eth0:1 a.b.c.d netmask x.y.w.z
Came back later and a.b.c.d is still working.
ping a.b.c.d # worked.
arp -a # doesn't show anything as it is local.
/sbin/ifconfig # doesn't show anything!
ping a.b.c.d # from another box on the network worked.
arp -a # Shows I have the right PC
A quick glance at command history shows that I aliased "eth0:1" instead of "eth1:1", and since eth0 isn't configured, ifconfig doesn't show it.
ip addr list # Shows everything I need to understand what is happening.
Moral, avoid obselete commands. Another 5 minutes of my life wasted.
Comments on this Entry
# ip addr list ip: command not found apt-file search bin/ip iproute: bin/ip iproute: sbin/ip apt-cache show iproute ... Description: Professional tools to control the networking in Linux kernels This is `iproute', the professional set of tools to control the networking behavior in kernels 2.2.x and later. . At least, the options CONFIG_NETLINK and CONFIG_NETLINK_DEV (or CONFIG_RTNETLINK) must be compiled into the running kernel. . This package is also known as iproute2 upstream and in some documentation.
What tools are the experts using ? and how are they using them.
I sometimes have problems with ifconfig when configuring things temporarilly. (no sys-op just for the home network)
Moral, use debian tools to find out what the heck people are talking about. Another 5 minutes of my life wasted. (or maybe not if this tool is useful :) )
[ Parent | Reply to this comment ]