When IPv6 address to interface is configured and entered in expandend format (e.g. 2001:db8:0:0:0:0:0:1/64) it is not converted to compact format while kernel does that. Once the address is configured it is no longer removable (will be removed from confiuration / config boot, but not from interface)
Lets add expanded format address:
# set interfaces ethernet eth1 address 2001:db8:0:0:0:0:0:1/64
# commit
~$ show interfaces
Codes: S - State, L - Link, u - Up, D - Down, A - Admin Down
Interface IP Address S/L Description
--------- ---------- --- -----------
eth1 2001:db8::1/64 u/u
~$ cat /config/config.boot
ethernet eth1 {
address 2001:db8:0:0:0:0:0:1/64
...
}And now delete it:
# delete interfaces ethernet eth1 address Possible completions: 2001:db8:0:0:0:0:0:1/64 # delete interfaces ethernet eth1 address 2001:db8:0:0:0:0:0:1/64 [edit] # compare [edit interfaces ethernet eth1] -address 2001:db8:0:0:0:0:0:1/64 [edit] # commit # exit
Removed from configuration but not from interface:
~$ show interfaces
Codes: S - State, L - Link, u - Up, D - Down, A - Admin Down
Interface IP Address S/L Description
--------- ---------- --- -----------
eth1 2001:db8::1/64 u/u
~$ ip a dev eth1
Command "dev" is unknown, try "ip addr help".
~$ ip a li dev eth1
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
inet6 2001:db8::1/64 scope global
valid_lft forever preferred_lft forever