Re: interface rename ?



Komuch <komuch@xxxxxxxxxxxxxxxxxxxx> wrote:
Hi,

How can I rename interface in gentoo ?

I have many ppp interfaces (pppoe server) and I want to rename them
(e.g. ppp0 -> ppp0-hans or ppp0-10.1.1.10)

A while back I was able to use ifrename from the wireless_tools.27
package to do this. That is not a gentoo package per se, and may
or may not be included in gentoo.

Example:
~# <start pppd as usual>
~# ifconfig ppp0 down
~# ifrename -i ppp0 -n dsl0
dsl0
~# ifconfig dsl0 up
~# route add default dsl0

A new default route is necessary since the old default routing via ppp0
went away when the interface was taken down.

Thanks for any help.

Regards,

--
Clifford Kite
.