Thanks Didier Spaier for your quick reply.
However I not really understand what you mean since I just began with Linux OS
the output of the command "ifconfig -a | grep HWaddr" in my laptop was:
Code:
eth0 Link encap:Ethernet HWaddr 00:1d:92:51:af:27
wlan0 Link encap:Ethernet HWaddr 00:1c:bf:98:b1:60
wlan0:avahi Link encap:Ethernet HWaddr 00:1c:bf:98:b1:60
wmaster0 Link encap:UNSPEC HWaddr 00-1C-BF-98-B1-60-00-00-00-00-00-00-00-00-00-00
The reason I wish to change the name of "wlan0" to "eth1" is because I have to develop a program that need to differentiate between wired and wireless interfaces. Previously I worked in Ubuntu 7.10. It gave me "eth0" and "eth1" which has different index. In Ubuntu 8.04, it gave me "eth0" and "wlan0" which are the same index. Hence, I wonder is there a way for me to rename "wlan0" to "eth1" in Ubuntu 7.10.
How is the "ifrename" command works?
Any advices are welcomed.
Thanks.