-
Aedil
Hi illumos.
-
tsoome
Hi!
-
Aedil
Good day.
-
veg
hey there, I'm trying to setup a point-to-point link between my OmniOS server and my router using a /31 subnet,
-
veg
and I get "ipadm: Could not create address: Can't assign requested address"
-
veg
say I'm trying to use the 100.100.100.100/31 pair, my command is as follows
-
veg
pfexec ipadm create-addr -T static -a 100.100.100.101/31 bge1/v4
-
veg
could it be that OmniOS does not support /31 subnets? I was using a /26 with no issue before that
-
veg
also tried the following:
-
veg
pfexec ipadm create-addr -T static -a local=100.100.100.101,remote=100.100.100.100 bge1/v4
-
veg
which outputs "ipadm: Could not create address: Invalid argument provided"
-
m1ari
I'm not sure many ethernet systems will like a /31 mask, you might want a /30 giving 4 addresses (100 is netnum, 101, 102 are useable, 103 is broadcast)
-
veg
well, RFC 3021 <
datatracker.ietf.org/doc/html/rfc3021> is already 25 years old,
-
rmustacc
-
fenix
→
BUG 13232: Add support for IPv4/31 or IPv6/127 (New)
-
rmustacc
The kernel and ohters support using /31s.
-
veg
and I'm using point-to-point links on FreeBSD & Linux with no issue, so I assumed Illumos would support it as well
-
veg
oh, thanks rmustacc
-
rmustacc
Yeah, point-to-point IPv4 stuff works fine once you get it set up.
-
jbk
it looks like you just need to use a different syntax
-
jbk
to workaround the bug
-
rmustacc
Unfortunately, yes.
-
veg
thanks yall, the syntax is a little convoluted and of course I fucked it up on first try, lol
-
veg
will the "ifconfig 100.100.100.101 destination 100.100.100.100 netmask 255.255.255.255 up" resist rebooting the machine?
-
nomad
manually issued (command line) ifconfig is not persistant, if that's what you are asking.
-
veg
indeed, that was my question, since I cannot use ipadm for that specific scenario
-
veg
ipadm does show the point-to-point link now though
-
veg
where shall I add the custom ifconfig command so it survives a reboot, may I ask?
-
veg
I'm obviously new to Illumos, migrating away from Linux for VM management
-
jbk
from earlier did you try 'ipadm create-addr -T static -a local=100.100.100.101 -a remote=100.100.100.100 bge1/v4' (two separate -a options, not -a xxx,yyy) ?
-
sommerfeld
veg:
bug 13232 linked above suggests trying: ipadm create-addr -T static -a local=192.168.1.5 -a remote=192.168.1.4 e1000g0/v4p2p
-
sommerfeld
which would be persistent
-
veg
yes, I did try the 2 -a options, with no luck
-
jbk
(also, if you already have bge4/v4 address, that will generate an error)
-
veg
the bug report also had the local & remote addresses reversed in the ifconfig example
-
veg
-a local -a remote & -a local=xx,remote=xx give different error messages but neither works, unfortunately
-
jbk
does ipadm show an existing bge1/v4 entry?
-
veg
no, there was none
-
nomad
If you are testing after issuing the ifconfig then it will fail because the device is configured. You have to clear the config before trying new ipadm commands.
-
veg
I ha/clean
-
veg
woops
-
microchip_
oi
-
veg
looks like other people had similar experiences with the ipadm command, nomad :
reddit.com/r/illumos/comments/y53yy0/rfc_3021_31_network_support
-
richlowe
today I learned there's an illumos reddit?
-
jbk
it's been there for a while...
-
ptribble
Yeah, I keep an occasional eye on it and try to dampen any misinformation
-
jbk
there's even a discord too (if papertigers ever gets around to finishing it :P)
-
richlowe
gosh
-
microchip_
there's a reddit for everything! :D
-
gitomat
[illumos-gate] 11989 DHCP client support for "Interface MTU" option -- Joshua M. Clulow <josh⊙so>
-
jbk
is there a dcmd that'll show you how long a sleeping kernel thread has been sleeping?
-
jbk
or would maybe comparing kthread_t->t_hrtime to 'now' on a sleeping kthread show that?
-
jclulow
jbk: I think "::thread -d" gives you the dispatcher state, including the SWITCH column which seems like a time
-
jclulow
might be worth looking at how that works
-
richlowe
the comment in thread.h seems like enough?
-
richlowe
the SWITCH column is ... different
-
richlowe
I assume that's the low-res version of what the hrtime is hr of
-
jclulow
ah
-
jbk
hah
-
jbk
figures there's an XXX command for the exact thing I was looking at
-
jbk