[OpenIndiana-discuss] Cannot delete an ADDROBJ in ipadm?

Joshua M. Clulow josh at sysmgr.org
Fri Dec 1 20:01:16 UTC 2023


On Fri, 1 Dec 2023 at 09:54, Udo Grabowski (IMK) <udo.grabowski at kit.edu> wrote:
> On 30/11/2023 14:33, Philip Kime wrote:
> > I was trying to switch from fixed IP to DHCP and finally managed to get it to work but in the process, I created a dhcp addr on the interface with ipadm and now I can't get rid of it:
> >
> > root at park:~# ipadm
> > ADDROBJ           TYPE     STATE        ADDR
> > lo0/v4            static   ok           127.0.0.1/8
> > rge0/_a           dhcp     ok           192.168.0.50/24
> > lo0/v6            static   ok           ::1/128
> > rge0/?            static   ok           fe80::baae:edff:fedb:1e5c%rge0/10
> > rge0/?            addrconf ok           2a02:1210:14dd:3100:baae:edff:fedb:1e5c/64
> > rge0/addr         dhcp     disabled     ?
> > root at park:~# ipadm delete-addr rge0/addr
> > ipadm: could not delete address: Object not found
> > root at park:~#
> >
> > The underlined can't be removed any way I've tried. Does anyone know how to delete it? Network is working fine with DHCP using the /_a ADDROBJ but I want to clean this up.
> > On Hipster 2023.05
> > ...
>
> You can try to fix /etc/ipadm/ipadm.conf in your favourite editor.
> But be careful, ipadm is very picky on the format of that file,
> apparent inconsistencies and oddities are intended, don't "fix"
> them ...

As it says in the file:

    # DO NOT EDIT OR PARSE THIS FILE!
    #
    # Use the ipadm(8) command to change the contents of this file.

Any time you are feeling like editing that file it's an OS bug.
Please make sure one is filed, or it won't get fixed.


Cheers.

-- 
Joshua M. Clulow
http://blog.sysmgr.org



More information about the openindiana-discuss mailing list