-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add static IP address configuration #210
Comments
Just read the Manual https://wiki.sipeed.com/hardware/en/kvm/NanoKVM/network/static_ip.html |
Having it on the GUI would still be nice, even tho I'd argue not an high priority. |
That's what I meant - I silently assumed that such basic setting (static IP address) should be in GUI. And if it is not there then it's not possible. Indeed I was wrong/my fault - it is possible to set static IP but via CLI only. The request is then to make it possible via GUI. |
I set a static IP per the manual. How do I set my DNS server? |
I completely agree. There should be an option to set this via the GUI; it would make the process much more user-friendly.
That's weird. The behavior is unexpected. I thought this would be handled via the Additionally, there seem to be typos in the scripts responsible for handling this, and there is other scripting involved that overrides the expected behavior. Also the first DNS Calculated from the gw of the static ip file is applied wrong. A developer should investigate this further. For example, here’s a snippet of the script: arping -Dqc2 -Ieth0 $addr || continue
ip a add $inet brd + dev eth0
ip r add default via $gw dev eth0
cat > /etc/resolve.conf << EOF
nameserver $gw
nameserver 8.8.8.8
nameserver 114.114.114.114
EOF
break There should be no hardcoded external DNS servers unless there is a valid reason for it. Instead, the DNS servers provided by DHCP or configured in the static configuration file should be applied. Why hardcode external DNS? Examples of the hardcoded DNS servers: nameserver 8.8.8.8 # Google
nameserver 114.114.114.114 # Singapur?
nameserver 119.29.29.29 # China?
nameserver 223.5.5.5 # China? For now, I’ve set the DNS servers manually in /etc/resolv.conf and made the file immutable using: This prevents it from being overwritten on reboot. However, this is just a temporary workaround. It would be interesting to hear what the developers have to say about this behavior. |
@th3cube Thank you for the immutable tip. That's useful. |
I opened another issue for this DNS issus: #245 |
I understand this KVM is probably dedicated to use with Tailscale and dynamic IPs are non-issue.
But think what happens if DHCP server runs on a computer box controlled by this KVM device.
If this computer is powered off then it might happen that KVM will not be able to obtain IP or renew it.
It must be possible to set KVM to use static IP and not depend on external service (e.g. DHCP).
The text was updated successfully, but these errors were encountered: