ipv4 192.168.1.52 "invalid input" #29
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
With latest firmware that builds.
Yes. Now with sufficient configuration storage in flash, you get to specify the subnet mask length, and the default gateway!
As reflected in README.md:
ipv4 <X.X.X.X/L> [Y.Y.Y.Y]
This is now immediately written to flash. The
config
/save
commands deal only with channel parameters.ipv4 <X.X.X.X/L> [Y.Y.Y.Y] Configure IPv4 address, netmask length, and optional default gateway
I doubt 99% of users are going to care about setting netmask length or custom gateway. How about
ipv4 <X.X.X.X> [Y.Y.Y.Y Z.Z.Z.Z]
where X is IP, Y is netmask and Z is gateway. That way simple things remain simple.Where is the default gateway used anyway? Though we might need it if we add MQTT.
Also,
<X.X.X.X/L>
syntax isn't used elsewhere in Sinara/ARTIQ as far as I've seen.<X.X.X.X/L>
(CIDR) is the modern standard way of expressing a network interface address. This new shape of IPv4 configuration is supposed to be much more intuitive because it looks like on every other device.https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing doesn't mention /L so I guess it's not that prevalent. I think what you mean is /24 for conventional subnet with mask 255.255.255.0.
where L is in the range 0..=32
If you insist on using the /modern standard/ please update the documentation so the 99% solution is obvious. Something like the following would be helpful.
Set IPv4 address and netmask, following the [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) notation, and optional default gateway. A common CIDR is X.X.X.X/24 which corresponds to the 255.255.255.0 subnet mask.