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

Philip Kime Philip at kime.org.uk
Sat Dec 2 16:35:32 UTC 2023


Bug report done:

https://www.illumos.org/issues/16094

PK

--
Dr Phil. Philip Kime
BA (Hons) Msc (Dist) PhD

> On 1 Dec 2023, at 21:01, Joshua M. Clulow via openindiana-discuss <openindiana-discuss at openindiana.org> wrote:
> 
> 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
> 
> _______________________________________________
> openindiana-discuss mailing list
> openindiana-discuss at openindiana.org
> https://openindiana.org/mailman/listinfo/openindiana-discuss

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 509 bytes
Desc: OpenPGP digital signature
URL: <http://openindiana.org/pipermail/openindiana-discuss/attachments/20231202/cc26bd2e/attachment.bin>


More information about the openindiana-discuss mailing list