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

Udo Grabowski (IMK) udo.grabowski at kit.edu
Fri Dec 1 17:54:27 UTC 2023


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 ...

Then reboot.
-- 
Dr.Udo Grabowski   Inst.f.Meteorology & Climate Research IMK-ASF-SAT
http://www.imk-asf.kit.edu/english/sat.php
KIT - Karlsruhe Institute of Technology           http://www.kit.edu
Postfach 3640,76021 Karlsruhe,Germany T:(+49)721 608-26026 F:-926026



More information about the openindiana-discuss mailing list