halo........ i had downloaded iproute2, iproute2-051007.tar.gz from
http://developer.osdl.org/dev/iproute2/download/
I did tried to follow the instruction of compiling from this link:
http://www.policyrouting.org/iproute2.doc.html
But , when i typed "ip addr" or "ip addr list" there is a error message said that the ip command not found shown in terminal :
[root@hb2b-130 kokchin]# ip addr
bash: ip: command not found
Below are the message shown when i folllowed the 8 steps compilation instruction of above link :
[kokchin@hb2b-130 iproute2-051007]$ ls -l /etc/iproute2
total 24
-rw-r--r-- 1 root root 59 Aug 11 02:05 ematch_map
-rw-r--r-- 1 root root 299 Apr 21 2004 rt_dsfield
-rw-r--r-- 1 root root 296 Apr 21 2004 rt_protos
-rw-r--r-- 1 root root 113 Apr 21 2004 rt_realms
-rw-r--r-- 1 root root 98 Apr 21 2004 rt_scopes
-rw-r--r-- 1 root root 91 Apr 21 2004 rt_tables
[kokchin@hb2b-130 iproute2-051007]$ cp ./etc/iproute2/* /etc/iproute2/
cp: cannot create regular file `/etc/iproute2/ematch_map': Permission denied
cp: cannot create regular file `/etc/iproute2/rt_dsfield': Permission denied
cp: cannot create regular file `/etc/iproute2/rt_protos': Permission denied
cp: cannot create regular file `/etc/iproute2/rt_realms': Permission denied
cp: cannot create regular file `/etc/iproute2/rt_scopes': Permission denied
cp: cannot create regular file `/etc/iproute2/rt_tables': Permission denied
[kokchin@hb2b-130 iproute2-051007]$ su
Password:
[root@hb2b-130 iproute2-051007]# cp ./etc/iproute2/* /etc/iproute2/
cp: overwrite `/etc/iproute2/ematch_map'?
cp: overwrite `/etc/iproute2/rt_dsfield'?
cp: overwrite `/etc/iproute2/rt_protos'?
cp: overwrite `/etc/iproute2/rt_realms'?
cp: overwrite `/etc/iproute2/rt_scopes'?
cp: overwrite `/etc/iproute2/rt_tables'?
[root@hb2b-130 iproute2-051007]# cd ip
[root@hb2b-130 ip]# cp ifcfg ip routef routel rtacct rtmon rtpr /sbin
cp: overwrite `/sbin/ifcfg'?
cp: overwrite `/sbin/ip'?
cp: overwrite `/sbin/routef'?
cp: overwrite `/sbin/routel'?
cp: cannot stat `rtacct': No such file or directory
cp: overwrite `/sbin/rtmon'?
cp: overwrite `/sbin/rtpr'?
[root@hb2b-130 ip]# cd ../tc
[root@hb2b-130 tc]# cp tc /sbin
cp: overwrite `/sbin/tc'?
[root@hb2b-130 tc]# ip addr
bash: ip: command not found
Did anyone have any ideas about this problem?? Your ideas are much appreciated by dropping here.