NFS
当前显示英文原文,切换到「中文」可查看译文。
NFS enables network directory sharing in RouterOS using NFS v4, requiring the Storage package. It uses port 2049 and includes configuration properties like nfs-address, nfs-share, and nfs-sharing. Example configurations show enabling NFS on a host device and mounting an NFS share from a Linux client.
NFS
信息
This feature requires the Storage package. NFS allows sharing local directories over a network. RouterOS currently supports NFS v4-only mode.
警告
NFS uses port TCP/2049. If the port is not available, in
disk print detailyou will see the state stuck atnfs-state="mounting".
Properties
| Property | Description |
|---|---|
| nfs-address | IP address of the NFS target. (host device IP) |
| nfs-share | Specify the folder to mount (client parameter) |
| nfs-sharing | Disable/enable NFS on the host device |
Configuration example
Host
/disk
set pcie1-nvme1 nfs-sharing=yes
Client
/disk
add type=nfs nfs-address=192.168.1.1
Linux client
mkdir /mnt/files
mount -t nfs 192.168.1.1:/ /mnt/files