From owner-freebsd-net@FreeBSD.ORG Sun May 4 10:37:36 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AB1FF37B401 for ; Sun, 4 May 2003 10:37:36 -0700 (PDT) Received: from mwinf0404.wanadoo.fr (smtp5.wanadoo.fr [193.252.22.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 87E0C43FBF for ; Sun, 4 May 2003 10:37:33 -0700 (PDT) (envelope-from vjardin@wanadoo.fr) Received: from venus.vincentjardin.net (AVelizy-102-1-6-28.abo.wanadoo.fr [193.253.220.28]) by mwinf0404.wanadoo.fr (SMTP Server) with ESMTP id D6EBE38000DC; Sun, 4 May 2003 19:37:30 +0200 (CEST) Content-Type: text/plain; charset="iso-8859-1" From: Vincent Jardin To: Mike Tancsa Date: Sun, 4 May 2003 19:37:27 +0200 User-Agent: KMail/1.4.3 References: <_MzYgD.A.O9P._h8s-@coal.sentex.ca> <09l7bv4bp8vvngc0j85tgqob0u3b0vl7pr@4ax.com> In-Reply-To: <09l7bv4bp8vvngc0j85tgqob0u3b0vl7pr@4ax.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200305041937.27631.vjardin@wanadoo.fr> cc: freebsd-net@freebsd.org Subject: Re: Howto rename an interface X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 May 2003 17:37:37 -0000 Le Samedi 3 Mai 2003 16:43, Mike Tancsa a =E9crit : > It sounds a bit messy to maintain. Perhaps it would be easier to just > write wrapper programs around those that you use if really need be. e.= g. a > local copy of netstat,ifconfig and route and have those executed first = in > your path. I thought about it. However many issues remain: - SNMP still uses the FreeBSD's interface name - the kernel logs - ... they are lot of softwares that need their own patch=20 Whereas all these softwares would work fine if the interface name does no= t=20 have a unit number. Thanks, Vincent PS: For example, with Linux, the name of an ipip or gre tunnel is free: # ip tunnel add FooBar mode ipip remote 192.168.0.251 local 192.168.0.15=20 # ifconfig FooBar FooBar Lien encap:IPIP Tunnel HWaddr =20 POINTOPOINT NOARP MTU:1480 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 lg file transmission:0=20 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) > > =09---Mike > > On Sat, 3 May 2003 15:47:34 +0200, in sentex.lists.freebsd.net you wrot= e: > >I would like to rename the network interfaces. More particularly, I wo= uld > > like to control the numbers in the name and to remove the constraints= =2E > > > >For example, what are the issues about renaming my 'vr0' interface to > > eth1-3 or DSL-WAN that does not have a ifunit within its name ? > > > >I think about the following issues, what am I forgetting ? > > - update all the sockaddr_dl > > - many drivers, in fact all of them, log with %s%d, ifname, ifunit > > - (add a message on the routing socket) > > > >Regards, > > Vincent > >_______________________________________________ > >freebsd-net@freebsd.org mailing list > >http://lists.freebsd.org/mailman/listinfo/freebsd-net > >To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" > > Mike Tancsa (mike@sentex.net) > http://www.sentex.net/mike