HostHatch安装系统IPv6内网设置及NFS组网

发布于 2021-04-28  943 次阅读


安装Debian

Thank you for ordering a huge server with 10 TB storage. You can find your server details, including the IP address in your control panel account. 

This server comes installed without an OS due to the disk size. You will have to mount an ISO, change the boot order and then shutdown/boot (not reboot) the server to boot from this ISO. 

After completion of your OS install, please remove the ISO mount and change back the boot order. 

We'll be happy to assist should any issues arise.

首先在控制面板里挂载 ISO 镜像,并修改 boot order 设为 ISO only 或者 ISO > Disk。

关机后再重新开机。

据说,不能直接点重启按钮,必须先点关机,再点开机。关机开机会有一点延时,刷新就可以。

然后,通过面板进入 VNC 安装系统。

设置IPv6及内网

nano /etc/network/interfaces
#根据实际情况选择eth0或者ens3

 auto lo
  iface lo inet loopback

 auto eth0/ens3
  iface eth0/ens3 inet static
   address IPv4
   gateway 网关
   netmask 掩码
   dns-nameservers 1.1.1.1 8.8.8.8
   up ip addr add IPv6/64 dev eth0/ens3
   up ip -6 route add 网关 dev eth0/ens3
   up ip -6 route add default via 网关

 auto eth1/ens4
  iface eth1/ens4 inet static
   address 内网IP
   netmask 掩码


reboot

NFS组内网

大盘鸡

apt update && apt install nfs-kernel-server -y
nano /etc/exports 
#在末尾添加「/挂载大盘鸡目录 流量鸡内网IP(rw,no_root_squash,no_subtree_check,sync)」

/mnt 流量鸡内网IP(rw,no_root_squash,no_subtree_check,sync)
systemctl restart nfs-server.service

流量鸡

apt update && apt install nfs-kernel-server -y
mount -t nfs 大盘鸡内网IP:/挂载大盘鸡目录 /挂载到本地目录
mount -t nfs 大盘鸡内网IP:/mnt /mnt
#设置开机挂载
nano /etc/fstab 
#添加「10.x.x.10:/home /mnt nfs rsize=8192,wsize=8192,timeo=14,_netdev 0 0」
server_ip:/home /www nfs defaults 0 0

Love is merely a madness.