IPベースのパーティションをマウントする方法は?

IPベースのパーティションをマウントする方法は?

ホームサーバーを設定しましたが、fstab自宅にいるときにホームネットワークIPを使用してネットワークドライブを自動的にマウントし、ネットワークにいないときにTailscale IPを使用してマウントするように設定できるかどうか疑問に思います。 。

これが私が現在持っているものですfstab

#
# /etc/fstab
# Created by anaconda on Tue Jun 21 16:36:27 2022
#
# Accessible filesystems, by reference, are maintained under '/dev/disk/'.
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.
#
# After editing this file, run 'systemctl daemon-reload' to update systemd
# units generated from this file.
#
UUID=[REDACTED] /                       btrfs   subvol=root,compress=zstd:1 0 0
UUID=[REDACTED] /boot                   ext4    defaults        1 2
UUID=[REDACTED] /boot/efi               vfat    umask=0077,shortname=winnt 0 2
UUID=[REDACTED] /home                   btrfs   subvol=home,compress=zstd:1 0 0
# BEGIN ANSIBLE MANAGED BLOCK
[HOMENETWORK]:/homeserver/encrypted/backups   /mnt/backups            nfs     defaults 0 0
# END ANSIBLE MANAGED BLOCK

ベストアンサー1

おすすめ記事