mirror of
https://github.com/sipeed/sipeed_wiki.git
synced 2026-09-11 00:22:49 -05:00
docs(nanokvm-go): add static IP guide
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 123 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 66 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 66 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 123 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 7.8 KiB |
@@ -1,4 +1,290 @@
|
||||
---
|
||||
title: Static IP
|
||||
keywords: NanoKVM Go, static IP, network configuration
|
||||
update:
|
||||
- date: 2026-07-14
|
||||
version: v0.1
|
||||
author: Liang Ziyue
|
||||
content:
|
||||
- Add NanoKVM Go static IP configuration guide
|
||||
---
|
||||
|
||||
# Configure a Static IP
|
||||
|
||||
## Introduction
|
||||
|
||||
NanoKVM Go obtains an IP address from the router through DHCP by default. A DHCP address may change after the device restarts, the router restarts, or the DHCP lease is renewed. If that happens, the old access address will no longer work.
|
||||
|
||||
After enabling static IP in the NanoKVM Go web interface, you can assign a fixed LAN address to the device and keep accessing it through the same address.
|
||||
|
||||
> A static IP only fixes the address of NanoKVM Go inside the current LAN. It is not a public IP address and does not provide remote access by itself. To access NanoKVM Go from outside the LAN, refer to remote access solutions such as [Tailscale](./Tailscale.md).
|
||||
|
||||
## Before You Start
|
||||
|
||||
Before configuring a static IP, make sure that:
|
||||
|
||||
- NanoKVM Go is connected to the LAN where the static IP will be used;
|
||||
- you can open the NanoKVM Go web interface through the current IP address;
|
||||
- you know the current LAN subnet, subnet mask, and default gateway;
|
||||
- the IP address you plan to use is in the same subnet as the router;
|
||||
- the IP address is not already used by the router or another device;
|
||||
- you have recorded the current NanoKVM Go IP address for troubleshooting.
|
||||
|
||||
You can check the LAN parameters, DHCP address pool, and connected devices in the router management page. It is recommended to choose an address outside the DHCP address pool but still inside the current LAN subnet. If possible, reserve or label this address in the router.
|
||||
|
||||
For example:
|
||||
|
||||
| Item | Example Value |
|
||||
| --- | --- |
|
||||
| Router address | `192.168.1.1` |
|
||||
| Subnet mask | `255.255.255.0` |
|
||||
| CIDR prefix length | `/24` |
|
||||
| DHCP address pool | `192.168.1.100` to `192.168.1.200` |
|
||||
| NanoKVM Go static IP | `192.168.1.50` |
|
||||
| Full configuration | `192.168.1.50/24 192.168.1.1` |
|
||||
|
||||
In this example, `192.168.1.50` is in the same subnet as the router and is outside the DHCP address pool. The subnet mask `255.255.255.0` corresponds to the CIDR prefix length `/24`, so you should not copy the `/22` example shown in the interface. When configuring your device, use the IP address, CIDR prefix length, and gateway that match your own network.
|
||||
|
||||
## Understand IP, CIDR, and Gateway
|
||||
|
||||
The NanoKVM Go static IP input field uses the following format:
|
||||
|
||||
```text
|
||||
IP/CIDR [Gateway]
|
||||
```
|
||||
|
||||
The fields mean:
|
||||
|
||||
- `IP`: the static IP address assigned to NanoKVM Go;
|
||||
- `CIDR`: the prefix length that corresponds to the subnet mask of the current network, such as `/24`;
|
||||
- `Gateway`: the default gateway, usually the LAN address of the router. This field is optional.
|
||||
|
||||
The square brackets in `[Gateway]` mean that the gateway is optional. Do not type `[` or `]` in the actual input field. Use one space between `IP/CIDR` and the gateway.
|
||||
|
||||
Without a gateway:
|
||||
|
||||
```text
|
||||
192.168.1.10/22
|
||||
```
|
||||
|
||||
With a gateway:
|
||||
|
||||
```text
|
||||
192.168.1.10/22 192.168.1.1
|
||||
```
|
||||
|
||||
If NanoKVM Go needs to access the internet or other subnets, enter the correct default gateway. The gateway usually needs to be in the same subnet as the static IP address.
|
||||
|
||||
> `/22` is only an example format shown in the interface. It does not apply to all networks. Check your current subnet mask first, then convert it to the correct CIDR prefix length.
|
||||
|
||||
### Check the Current Subnet Mask and Gateway
|
||||
|
||||
The preferred method is to log in to the router management page and check the subnet mask and gateway in the LAN or DHCP settings. You can also check them from a computer that is already connected to the same router:
|
||||
|
||||
- Windows: open Command Prompt, run `ipconfig`, and check the `Subnet Mask` and `Default Gateway` of the current adapter;
|
||||
- macOS: open `System Settings` > `Network`, select the current network, open `Details` > `TCP/IP`, and check the subnet mask and router address;
|
||||
- Linux: run `ip -4 addr` to check the CIDR after the current adapter address, such as `192.168.1.20/24`; run `ip route` to check the default gateway after `default via`.
|
||||
|
||||
Check the physical network adapter connected to the same LAN as NanoKVM Go. Do not use parameters from virtual adapters created by Tailscale, VPN software, virtual machines, or containers.
|
||||
|
||||
### Convert a Subnet Mask to CIDR
|
||||
|
||||
The number after the slash in CIDR is the number of continuous binary `1` bits in the subnet mask from left to right. An IPv4 subnet mask has four octets. Each octet can be converted using the table below:
|
||||
|
||||
| Subnet Mask Octet | Binary | Number of `1` Bits |
|
||||
| --- | --- | --- |
|
||||
| `255` | `11111111` | 8 |
|
||||
| `254` | `11111110` | 7 |
|
||||
| `252` | `11111100` | 6 |
|
||||
| `248` | `11111000` | 5 |
|
||||
| `240` | `11110000` | 4 |
|
||||
| `224` | `11100000` | 3 |
|
||||
| `192` | `11000000` | 2 |
|
||||
| `128` | `10000000` | 1 |
|
||||
| `0` | `00000000` | 0 |
|
||||
|
||||
Add the number of binary `1` bits in all four octets to get the CIDR prefix length.
|
||||
|
||||
For example, if the subnet mask is `255.255.252.0`:
|
||||
|
||||
```text
|
||||
255 255 252 0
|
||||
8 + 8 + 6 + 0 = 22
|
||||
```
|
||||
|
||||
So:
|
||||
|
||||
```text
|
||||
255.255.252.0 = /22
|
||||
```
|
||||
|
||||
If the static IP is `192.168.1.10`, enter the following when no gateway is needed:
|
||||
|
||||
```text
|
||||
192.168.1.10/22
|
||||
```
|
||||
|
||||
If the gateway is `192.168.1.1`, enter:
|
||||
|
||||
```text
|
||||
192.168.1.10/22 192.168.1.1
|
||||
```
|
||||
|
||||
As another example, the subnet mask `255.255.255.0` contains 24 continuous binary `1` bits, so it corresponds to `/24`. In that case, enter something like `192.168.1.50/24`, not `/22`.
|
||||
|
||||
Common subnet mask and CIDR mappings:
|
||||
|
||||
| Subnet Mask | CIDR |
|
||||
| --- | --- |
|
||||
| `255.0.0.0` | `/8` |
|
||||
| `255.255.0.0` | `/16` |
|
||||
| `255.255.240.0` | `/20` |
|
||||
| `255.255.248.0` | `/21` |
|
||||
| `255.255.252.0` | `/22` |
|
||||
| `255.255.254.0` | `/23` |
|
||||
| `255.255.255.0` | `/24` |
|
||||
| `255.255.255.128` | `/25` |
|
||||
| `255.255.255.192` | `/26` |
|
||||
| `255.255.255.224` | `/27` |
|
||||
| `255.255.255.240` | `/28` |
|
||||
|
||||
> Do not guess the CIDR prefix length. An incorrect CIDR value may cause NanoKVM Go to judge the local network range incorrectly, which can make some devices unreachable or make the gateway inaccessible.
|
||||
|
||||
## Configure a Static IP in the Web Interface
|
||||
|
||||
### Open Advanced Settings
|
||||
|
||||
1. Log in to the NanoKVM Go web interface through the current IP address;
|
||||
2. Click `Settings` in the top toolbar;
|
||||
|
||||

|
||||
|
||||
3. Select `Device` on the settings page, then open `Advanced Settings`.
|
||||
|
||||

|
||||
|
||||
### Enable and Fill In the Static IP
|
||||
|
||||
1. Find `Static IP` in `Advanced Settings`;
|
||||
|
||||

|
||||
|
||||
2. Enable `Static IP`;
|
||||
|
||||

|
||||
|
||||
3. Fill in the static IP configuration in the `IP/CIDR [Gateway]` format;
|
||||
|
||||

|
||||
|
||||
4. Check the IP address, CIDR, and gateway, then click `Confirm`.
|
||||
|
||||
> After saving the configuration, NanoKVM Go may briefly disconnect from the network, and the current web page may also disconnect. This is normal when the IP address changes.
|
||||
|
||||
### Access NanoKVM Go Through the New Address
|
||||
|
||||
After the setting takes effect, enter only the new static IP address in the browser address bar, for example:
|
||||
|
||||
```text
|
||||
http://192.168.1.50
|
||||
```
|
||||
|
||||
Do not include the CIDR or gateway in the browser address. Do not enter `http://192.168.1.50/24`.
|
||||
|
||||
Open the login page, sign in, and then test video, keyboard, mouse, and power control functions.
|
||||
|
||||
## Verify the Configuration
|
||||
|
||||
After configuring the static IP, check the following:
|
||||
|
||||
1. Open the NanoKVM Go web interface through the new static IP address;
|
||||
2. Confirm that video, keyboard, mouse, and power control work normally;
|
||||
3. Restart NanoKVM Go and access it again through the same address;
|
||||
4. If possible, restart the router and confirm that the address still works;
|
||||
5. Check the router management page to confirm that no other device is using the same IP address.
|
||||
|
||||
If NanoKVM Go is still accessible through the same address after a restart, the static IP configuration is working.
|
||||
|
||||
## Static IP Notes
|
||||
|
||||
### The IP Address Must Be in the Correct Subnet
|
||||
|
||||
The static IP address usually needs to be in the same LAN subnet as the router and client device. For example, if the router address is `192.168.1.1` and the subnet mask is `255.255.255.0`, the CIDR should be `/24`, and NanoKVM Go should usually use an available address in the `192.168.1.x` range.
|
||||
|
||||
If you enter an address from another subnet, such as `192.168.2.50`, computers in the current network may not be able to access NanoKVM Go directly.
|
||||
|
||||
### Avoid IP Address Conflicts
|
||||
|
||||
Do not use an address that has already been assigned to a computer, phone, camera, or other network device. An IP address conflict may cause NanoKVM Go and another device to go offline intermittently or become inaccessible.
|
||||
|
||||
Recommended checks:
|
||||
|
||||
- check whether the address is already used in the router device list;
|
||||
- choose an address outside the DHCP address pool when possible;
|
||||
- reserve the address for NanoKVM Go in the router if the router supports address reservation;
|
||||
- record what the address is used for so that it is not assigned to another device later.
|
||||
|
||||
> The `ping` command alone cannot fully confirm that an IP address is unused, because a powered-off or sleeping device will not respond.
|
||||
|
||||
### Do Not Use Special Addresses
|
||||
|
||||
Do not set the following addresses as the NanoKVM Go static IP:
|
||||
|
||||
- the router's own address, such as `192.168.1.1`;
|
||||
- the network address or broadcast address of the current subnet; the exact addresses depend on the CIDR, such as `192.168.1.0` and `192.168.1.255` in a `192.168.1.0/24` network;
|
||||
- local loopback addresses such as `127.x.x.x`;
|
||||
- link-local addresses such as `169.254.x.x`;
|
||||
- virtual addresses in the `100.x.x.x` range used by Tailscale.
|
||||
|
||||
### Use the New Address After the Change
|
||||
|
||||
After the static IP takes effect, the original DHCP address usually no longer works in the browser. Close the old page and reopen the NanoKVM Go web interface through the new address.
|
||||
|
||||
Record the new address before changing the setting. If the address is configured incorrectly, you may need to temporarily set your computer to the same subnet before you can access NanoKVM Go again and correct the network settings.
|
||||
|
||||
### Reconfigure It When Moving to Another LAN
|
||||
|
||||
A static IP is configured according to the current LAN. If NanoKVM Go is moved to another subnet, the old static IP may no longer work.
|
||||
|
||||
Before replacing the router or moving NanoKVM Go to a new network, it is recommended to disable static IP and let NanoKVM Go obtain an address through DHCP again. You can also update the static IP in advance according to the new network.
|
||||
|
||||
### Static IP Does Not Bypass Network Access Restrictions
|
||||
|
||||
Configuring a static IP does not open router ports, bypass firewalls, bypass guest network isolation, or bypass VLAN rules. If the client device and NanoKVM Go are not in networks that can reach each other, NanoKVM Go may still be inaccessible even when the IP address is correct.
|
||||
|
||||
## Disable Static IP
|
||||
|
||||
To make NanoKVM Go obtain an IP address automatically again:
|
||||
|
||||
1. Log in to the NanoKVM Go web interface through the current static IP;
|
||||
2. Go to `Settings` > `Device` > `Advanced Settings` > `Static IP`;
|
||||
3. Turn off `Enable Static IP`;
|
||||
4. Save or apply the setting according to the page prompt;
|
||||
5. Wait for NanoKVM Go to obtain a DHCP address from the router again;
|
||||
6. Find the new IP address in the router management page or on the device display, then access NanoKVM Go through the new address.
|
||||
|
||||
## FAQ
|
||||
|
||||
### NanoKVM Go Cannot Be Opened After Saving
|
||||
|
||||
Check the following:
|
||||
|
||||
- whether the browser is using the new static IP address;
|
||||
- whether the static IP was entered in the `IP/CIDR [Gateway]` format;
|
||||
- whether the CIDR matches the subnet mask of the current network;
|
||||
- whether the gateway is the LAN address of the current router;
|
||||
- whether the computer and NanoKVM Go are connected to the same LAN;
|
||||
- whether the static IP is in the same subnet as the router;
|
||||
- whether the address conflicts with another device;
|
||||
- whether guest network isolation, VLAN, or other access restrictions are enabled on the router;
|
||||
- whether NanoKVM Go has finished reconnecting to the network.
|
||||
|
||||
If the static IP was configured for the wrong subnet, temporarily set the wired network on your computer to the same subnet, then try to access NanoKVM Go and update the configuration. Record the original network settings before doing this, and restore automatic addressing after the configuration is corrected.
|
||||
|
||||
### Static IP Works, but NanoKVM Go Cannot Access the Internet
|
||||
|
||||
Check whether the correct default gateway is included in the static IP configuration, and confirm that the CIDR matches the subnet mask of the current network. For example, if the IP/CIDR is `192.168.1.50/24` and the router address is `192.168.1.1`, you can enter `192.168.1.50/24 192.168.1.1`. Also check whether the router's DNS and internet connection are working.
|
||||
|
||||
### Static IP Cannot Be Accessed After Restart
|
||||
|
||||
Check whether the static IP was saved successfully, and confirm that the router has not assigned the same address to another device. It is recommended to reserve this address for NanoKVM Go in the router, or set the static IP outside the DHCP address pool.
|
||||
|
||||
@@ -1,4 +1,296 @@
|
||||
---
|
||||
title: 静态 IP
|
||||
keywords: NanoKVM Go, 静态 IP, 网络配置
|
||||
update:
|
||||
- date: 2026-07-14
|
||||
version: v0.1
|
||||
author: Liang Ziyue
|
||||
content:
|
||||
- 新增 NanoKVM Go 静态 IP 配置教程
|
||||
---
|
||||
|
||||
# 配置静态 IP
|
||||
|
||||
## 静态 IP 简介
|
||||
|
||||
NanoKVM Go 默认通过 DHCP 从路由器获取 IP 地址。DHCP 分配的地址可能会在设备重启、路由器重启或租约更新后发生变化,导致原来的访问地址失效。
|
||||
|
||||
在 NanoKVM Go 网页控制端启用静态 IP 后,可以为设备设置固定的局域网地址,方便通过同一个地址长期访问 NanoKVM Go。
|
||||
|
||||
> 静态 IP 只用于固定 NanoKVM Go 在当前局域网中的地址,不能代替公网 IP,也不能直接实现外网访问。如需从外网访问 NanoKVM Go,可以参考 [Tailscale](./Tailscale.md) 等远程访问方案。
|
||||
|
||||
## 使用前准备
|
||||
|
||||
配置前,请先确认:
|
||||
|
||||
- NanoKVM Go 已连接到需要使用静态 IP 的局域网;
|
||||
- 可以通过当前 IP 正常打开 NanoKVM Go 网页控制端;
|
||||
- 已了解当前局域网的网段、子网掩码和默认网关;
|
||||
- 准备设置的 IP 地址与路由器位于同一网段;
|
||||
- 该 IP 地址没有被路由器或其他设备占用;
|
||||
- 记录 NanoKVM Go 当前的 IP 地址,以便配置异常时排查。
|
||||
|
||||
可以在路由器管理页面中查看局域网参数、DHCP 地址池和已连接设备。建议选择 DHCP 地址池之外、但仍位于当前局域网网段内的地址,并在路由器中为该地址做好保留或备注。
|
||||
|
||||
例如,当前网络参数为:
|
||||
|
||||
| 项目 | 示例值 |
|
||||
| --- | --- |
|
||||
| 路由器地址 | `192.168.1.1` |
|
||||
| 子网掩码 | `255.255.255.0` |
|
||||
| CIDR 前缀长度 | `/24` |
|
||||
| DHCP 地址池 | `192.168.1.100` ~ `192.168.1.200` |
|
||||
| NanoKVM Go 静态 IP | `192.168.1.50` |
|
||||
| 完整配置 | `192.168.1.50/24 192.168.1.1` |
|
||||
|
||||
在这个示例中,`192.168.1.50` 与路由器位于同一网段,并且不在 DHCP 地址池内。子网掩码 `255.255.255.0` 对应的 CIDR 前缀长度是 `/24`,因此不能照抄界面示例中的 `/22`。实际配置时,请根据自己的网络环境填写 IP、CIDR 和网关。
|
||||
|
||||
## 了解 IP、CIDR 和网关
|
||||
|
||||
NanoKVM Go 静态 IP 输入框使用以下格式:
|
||||
|
||||
```text
|
||||
IP/CIDR [Gateway]
|
||||
```
|
||||
|
||||
各部分含义如下:
|
||||
|
||||
- `IP`:准备分配给 NanoKVM Go 的静态 IP 地址;
|
||||
- `CIDR`:当前网络子网掩码对应的前缀长度,例如 `/24`;
|
||||
- `Gateway`:默认网关,通常是路由器的局域网地址,可以省略。
|
||||
|
||||
`[Gateway]` 中的方括号表示这一项是可选的,实际填写时不要输入 `[` 和 `]`。IP/CIDR 与网关之间使用一个空格分隔。
|
||||
|
||||
不填写网关时:
|
||||
|
||||
```text
|
||||
192.168.1.10/22
|
||||
```
|
||||
|
||||
填写网关时:
|
||||
|
||||
```text
|
||||
192.168.1.10/22 192.168.1.1
|
||||
```
|
||||
|
||||
如果 NanoKVM Go 需要访问互联网或其他网段,建议填写正确的默认网关。网关通常需要与 NanoKVM Go 的静态 IP 位于同一子网。
|
||||
|
||||
> `/22` 只是界面中的格式示例,不适用于所有网络。必须先查询当前网络的子网掩码,再换算出自己的 CIDR 前缀长度。
|
||||
|
||||
### 查询当前网络的子网掩码和网关
|
||||
|
||||
优先登录路由器管理页面,在局域网设置或 DHCP 设置中查看子网掩码和网关。也可以在已经正常连接到同一路由器的电脑上查询:
|
||||
|
||||
- Windows:打开命令提示符,执行 `ipconfig`,查看当前网卡的“子网掩码”和“默认网关”;
|
||||
- macOS:打开“系统设置” > “网络”,选择当前网络,进入“详细信息” > “TCP/IP”,查看子网掩码和路由器地址;
|
||||
- Linux:执行 `ip -4 addr` 查看当前网卡地址后的 CIDR,例如 `192.168.1.20/24`;执行 `ip route` 查看 `default via` 后的默认网关。
|
||||
|
||||
请查看与 NanoKVM Go 连接到同一局域网的物理网卡,不要使用 Tailscale、VPN、虚拟机或容器创建的虚拟网卡参数。
|
||||
|
||||
### 将子网掩码换算为 CIDR
|
||||
|
||||
CIDR 中斜杠后的数字,表示子网掩码从左到右连续的二进制 `1` 的数量。一个 IPv4 子网掩码由 4 段组成,每一段可以按下表换算:
|
||||
|
||||
| 子网掩码中的数值 | 二进制 | `1` 的数量 |
|
||||
| --- | --- | --- |
|
||||
| `255` | `11111111` | 8 |
|
||||
| `254` | `11111110` | 7 |
|
||||
| `252` | `11111100` | 6 |
|
||||
| `248` | `11111000` | 5 |
|
||||
| `240` | `11110000` | 4 |
|
||||
| `224` | `11100000` | 3 |
|
||||
| `192` | `11000000` | 2 |
|
||||
| `128` | `10000000` | 1 |
|
||||
| `0` | `00000000` | 0 |
|
||||
|
||||
将四段中二进制 `1` 的数量相加,即可得到 CIDR 前缀长度。
|
||||
|
||||
例如,子网掩码为 `255.255.252.0`:
|
||||
|
||||
```text
|
||||
255 255 252 0
|
||||
8 + 8 + 6 + 0 = 22
|
||||
```
|
||||
|
||||
所以:
|
||||
|
||||
```text
|
||||
255.255.252.0 = /22
|
||||
```
|
||||
|
||||
如果选择的静态 IP 是 `192.168.1.10`,不填写网关时应输入:
|
||||
|
||||
```text
|
||||
192.168.1.10/22
|
||||
```
|
||||
|
||||
填写网关 `192.168.1.1` 时应输入:
|
||||
|
||||
```text
|
||||
192.168.1.10/22 192.168.1.1
|
||||
```
|
||||
|
||||
再例如,子网掩码 `255.255.255.0` 包含 24 个连续的二进制 `1`,所以对应 `/24`,应填写类似 `192.168.1.50/24`,而不是 `/22`。
|
||||
|
||||
常用子网掩码与 CIDR 的对应关系如下:
|
||||
|
||||
| 子网掩码 | CIDR |
|
||||
| --- | --- |
|
||||
| `255.0.0.0` | `/8` |
|
||||
| `255.255.0.0` | `/16` |
|
||||
| `255.255.240.0` | `/20` |
|
||||
| `255.255.248.0` | `/21` |
|
||||
| `255.255.252.0` | `/22` |
|
||||
| `255.255.254.0` | `/23` |
|
||||
| `255.255.255.0` | `/24` |
|
||||
| `255.255.255.128` | `/25` |
|
||||
| `255.255.255.192` | `/26` |
|
||||
| `255.255.255.224` | `/27` |
|
||||
| `255.255.255.240` | `/28` |
|
||||
|
||||
> 不要通过猜测选择 CIDR。CIDR 填写错误可能导致 NanoKVM Go 错误判断哪些地址位于本地网络,从而出现部分设备无法访问或网关不可达等问题。
|
||||
|
||||
## 在网页控制端配置静态 IP
|
||||
|
||||
### 打开高级设置
|
||||
|
||||
1. 使用 NanoKVM Go 当前的 IP 地址登录网页控制端;
|
||||
2. 点击顶部工具栏中的 `设置`;
|
||||
|
||||

|
||||
|
||||
3. 在设置页面中选择 `设备`,然后打开 `高级设置`。
|
||||
|
||||

|
||||
|
||||
|
||||
### 启用并填写静态 IP
|
||||
|
||||
1. 在 `高级设置` 中找到 `静态 IP`;
|
||||
|
||||

|
||||
|
||||
2. 启用 `静态 IP`;
|
||||
|
||||

|
||||
|
||||
3. 按照 `IP/CIDR [Gateway]` 格式填写静态 IP 配置;
|
||||
|
||||

|
||||
|
||||
4. 检查 IP、CIDR 和网关无误后,点击 `确定`。
|
||||
|
||||
|
||||
|
||||
> 保存配置后,NanoKVM Go 的网络连接可能会短暂中断,当前网页也可能断开。这是 IP 地址发生变化时的正常现象。
|
||||
|
||||
### 使用新地址访问 NanoKVM Go
|
||||
|
||||
设置生效后,在浏览器地址栏中只输入新的静态 IP,例如:
|
||||
|
||||
```text
|
||||
http://192.168.1.50
|
||||
```
|
||||
|
||||
浏览器地址中不需要填写 CIDR 和网关。请勿输入 `http://192.168.1.50/24`。
|
||||
|
||||
打开登录页面并完成登录,然后测试远程画面、键盘、鼠标和电源控制等功能。
|
||||
|
||||
|
||||
## 确认配置是否成功
|
||||
|
||||
完成配置后,建议进行以下检查:
|
||||
|
||||
1. 使用新设置的静态 IP 打开 NanoKVM Go 网页控制端;
|
||||
2. 确认视频、键鼠和电源控制功能正常;
|
||||
3. 重启 NanoKVM Go,再次通过相同地址访问;
|
||||
4. 如有条件,重启路由器后再次确认该地址仍然可用;
|
||||
5. 在路由器管理页面中确认没有其他设备使用相同的 IP 地址。
|
||||
|
||||
如果重启 NanoKVM Go 后仍可通过同一个地址访问,说明静态 IP 已正常生效。
|
||||
|
||||
## 配置静态 IP 的注意事项
|
||||
|
||||
### IP 地址必须位于正确的网段
|
||||
|
||||
静态 IP 通常需要与路由器和访问端位于同一局域网网段。例如,路由器地址为 `192.168.1.1`、子网掩码为 `255.255.255.0` 时,CIDR 应填写 `/24`,NanoKVM Go 通常应使用 `192.168.1.x` 网段中的可用地址。
|
||||
|
||||
如果填写了其他网段的地址,例如 `192.168.2.50`,当前网络中的电脑可能无法直接访问 NanoKVM Go。
|
||||
|
||||
### 避免 IP 地址冲突
|
||||
|
||||
不要使用已经分配给电脑、手机、摄像头或其他网络设备的地址。IP 地址冲突可能导致 NanoKVM Go 和另一台设备间歇性离线或无法访问。
|
||||
|
||||
建议同时采取以下措施:
|
||||
|
||||
- 在路由器的设备列表中检查该地址是否已被占用;
|
||||
- 优先选择 DHCP 地址池之外的地址;
|
||||
- 如果路由器支持地址保留,为 NanoKVM Go 保留该地址;
|
||||
- 记录该地址的用途,避免以后分配给其他设备。
|
||||
|
||||
> 仅使用 `ping` 命令不能完全确认某个 IP 地址未被占用,因为处于关机或休眠状态的设备不会响应。
|
||||
|
||||
### 不要使用特殊地址
|
||||
|
||||
不要将以下地址设置为 NanoKVM Go 的静态 IP:
|
||||
|
||||
- 路由器自身的地址,例如 `192.168.1.1`;
|
||||
- 当前网段的网络地址和广播地址;具体地址由 CIDR 决定,例如 `192.168.1.0/24` 网络中的 `192.168.1.0` 和 `192.168.1.255`;
|
||||
- `127.x.x.x` 等本地回环地址;
|
||||
- `169.254.x.x` 等链路本地地址;
|
||||
- Tailscale 使用的 `100.x.x.x` 虚拟地址。
|
||||
|
||||
### 修改后需要使用新地址访问
|
||||
|
||||
静态 IP 生效后,浏览器中原来的 DHCP 地址通常不再可用。请关闭旧页面,并使用新地址重新打开 NanoKVM Go 网页控制端。
|
||||
|
||||
建议在修改前将新地址记录下来。如果地址填写错误,可能需要将电脑临时配置到相同网段,才能重新访问并修改 NanoKVM Go 的网络设置。
|
||||
|
||||
### 更换局域网时需要重新配置
|
||||
|
||||
静态 IP 是根据当前局域网规划设置的。将 NanoKVM Go 移动到另一个网段后,原静态 IP 可能无法继续使用。
|
||||
|
||||
在更换路由器或使用环境前,建议先禁用静态 IP,让 NanoKVM Go 恢复通过 DHCP 获取地址;也可以根据新网络的网段提前修改静态 IP。
|
||||
|
||||
### 静态 IP 不会绕过网络访问限制
|
||||
|
||||
配置静态 IP 不会自动开放路由器端口,也不会绕过防火墙、访客网络隔离或 VLAN 访问规则。如果电脑与 NanoKVM Go 不在同一个可互通的网络中,即使 IP 地址填写正确,也可能无法访问。
|
||||
|
||||
## 禁用静态 IP
|
||||
|
||||
如果希望 NanoKVM Go 恢复自动获取 IP:
|
||||
|
||||
1. 使用当前静态 IP 登录 NanoKVM Go 网页控制端;
|
||||
2. 进入 `设置` > `设备` > `高级设置` > `静态 IP`;
|
||||
3. 关闭 `启用静态 IP`;
|
||||
4. 按照页面提示保存或应用设置;
|
||||
5. 等待 NanoKVM Go 重新从路由器获取 DHCP 地址;
|
||||
6. 在路由器管理页面或设备显示界面中查找新的 IP 地址,并使用新地址重新访问。
|
||||
|
||||
|
||||
|
||||
## 常见问题
|
||||
|
||||
### 保存后无法打开 NanoKVM Go
|
||||
|
||||
依次检查:
|
||||
|
||||
- 浏览器中输入的是否为新设置的静态 IP;
|
||||
- 静态 IP 是否按照 `IP/CIDR [Gateway]` 格式填写;
|
||||
- CIDR 是否与当前网络的子网掩码一致;
|
||||
- 网关是否为当前路由器的局域网地址;
|
||||
- 电脑和 NanoKVM Go 是否连接到同一个局域网;
|
||||
- 静态 IP 是否与路由器位于同一网段;
|
||||
- 该地址是否与其他设备冲突;
|
||||
- 路由器是否启用了访客网络隔离、VLAN 或其他访问限制;
|
||||
- NanoKVM Go 是否已经完成网络重连。
|
||||
|
||||
如果静态 IP 所在网段填写错误,可以将电脑的有线网络临时设置为同一网段,再尝试访问 NanoKVM Go 并修改配置。操作前请记录电脑原来的网络设置,完成后恢复为自动获取地址。
|
||||
|
||||
### 静态 IP 可以访问,但 NanoKVM Go 无法连接互联网
|
||||
|
||||
检查静态 IP 配置中是否填写了正确的默认网关,并确认 CIDR 与当前网络的子网掩码一致。例如,IP/CIDR 为 `192.168.1.50/24`、路由器地址为 `192.168.1.1` 时,可以填写 `192.168.1.50/24 192.168.1.1`。同时检查路由器的 DNS 和互联网连接是否正常。
|
||||
|
||||
### 重启后静态 IP 无法访问
|
||||
|
||||
检查静态 IP 是否已经成功保存,并确认路由器没有将同一地址分配给其他设备。建议在路由器中为 NanoKVM Go 保留该地址,或将静态 IP 设置在 DHCP 地址池之外。
|
||||
|
||||
Reference in New Issue
Block a user