Project

General

Profile

Actions

Bug #6588

open

SIOCLIFADDIFF takes no action if requested address can't be assigned

Added by Jorge Schrauwen over 5 years ago. Updated over 4 years ago.

Status:
New
Priority:
Normal
Assignee:
Category:
networking
Start date:
2016-01-30
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage
Gerrit CR:

Description

I was discussing some oddities in IPv6 under SmartOS today at FOSDEM with Dan.

I remember also having this on OmniOS in some cases when I had a ton of zones running on it.
We couldn't quickly replicate it but I managed to do so now, I rushed this a bit because Dan will have access to IPv6 connection tomorrow at his 2nd day at FOSDEM.

Below is the blurp form the e-mail I send him earler:

Hey Dan,

I can replicate it on OmniOS now. I am mailing this now because tomorrow at FOSDEM you will have access to working ipv6 internet.

It's because on SmartOS in.ntpd is not started via smf. (It may be some kind of race condition I guess)

Bellow are steps to replicate it, set IP to a IPv6 addr in the range.
It will create a vnic with allowed-ips set like on SmartOS (I was also setting this on OmniOS), it plumbs the interface, adds the static inet6 address, starts in.ntpd to grab the addrconf bits (else the static inet6 address won't work)

To simulate the late start of in.ntpd I kill it before creating the vnic. I tested this on a freshly instaleld OmniOS stable from the global zone.

I tested the small script below a few times (with a reboot, without a reboot, ...) as long as you cleanup the vnic you can keep running this to replicate it.

---
IP=2001:6f8:1480:10::123
NIC=vtest0
PARENT=e1000g0
pkill in.ndpd
dladm create-vnic -l ${PARENT} ${NIC}
dladm set-linkprop -p allowed-ips=${IP}/128 ${NIC}
ifconfig ${NIC} inet6 plumb up
ifconfig ${NIC} inet6 addif ${IP}/64 up
/usr/lib/inet/in.ndpd
---

Hopefully this is helpful, I will file a bug after I grab dinner and add you as watcher.

Regards

Jorge
Actions

Also available in: Atom PDF