Re: 'RTNETLINK answers: File exists' error
Marco Gaiarin <[email protected]> Wed, 10 Mar 2021 18:02:42 +0000
| Newsgroups | org.kernel.vger.lartc |
|---|---|
| Message-ID | <[email protected]> |
Mandi! Grant Taylor
In chel di` si favelave...
> > RTNETLINK answers: File exists
> That means that the kernel thinks that the route / interface that you are,
> or the script on your behalf is, trying to create already exists.
Ok.
> > Probably i do something wrong in my script, but... how can i 'cleanup'
> > the mess without rebooting?
> In between script invocations, check to make sure that any VLAN interfaces
> you are messing with have been removed and that any Ethernet interfaces a=
re
> down.
> Doing that should remove any routes associated with them and remove the
> interfaces so that you / the script can start anew when creating them.
As usual typically happen not on a testbed system, but in production,
but every time i've tried to deconfigure manually the interface (with
'ifconfig IFNAME down' or 'ip link delete IFNAME' nothing changed, eg
interface get correctly deconfigured, but subsequent 'ifup IFNAME' lead
to 'RTNETLINK answers: File exists'.
--=20
dott. Marco Gaiarin GNUPG Key ID: 240A3D66
Associazione ``La Nostra Famiglia'' http://www.lanostrafamiglia.=
it/
Polo FVG - Via della Bont=E0, 7 - 33078 - San Vito al Tagliamento=
(PN)
marco.gaiarin(at)lanostrafamiglia.it t +39-0434-842711 f +39-0434-842=
797
Dona il 5 PER MILLE a LA NOSTRA FAMIGLIA!
http://www.lanostrafamiglia.it/index.php/it/sostienici/5x1000
(cf 00307430132, categoria ONLUS oppure RICERCA SANITARIA)