AntonNas 配置备忘录(家有NAS初养成)

NasAnton V1.0

2023/04/30

日志:

  • 正式安装2.5G网卡,使用驱动 r8125
  • 舍弃板载网卡

备注:

安装r8125驱动(自动安装脚本有点问题,需要分析autorun.sh手动安装)

https://www.realtek.com/ja/component/zoo/category/network-interface-controllers-10-100-1000m-gigabit-ethernet-pci-express-software

禁用r8169模块

1
2
3
4
5
6
7
8
9
root@pve:/home/nopwn/r8125# cd /etc/modprobe.d/
root@pve:/etc/modprobe.d# ls
dkms.conf pve-blacklist.conf
root@pve:/etc/modprobe.d# cat pve-blacklist.conf
# This file contains a list of modules which are not supported by Proxmox VE

# nidiafb see bugreport https://bugzilla.proxmox.com/show_bug.cgi?id=701
blacklist nvidiafb
blacklist r8169

自启r8125模块

1
2
3
4
5
6
7
8
9
root@pve:/etc# cat /etc/modules
# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.

coretemp
it87
r8125

编辑默认网卡
修改前

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
root@pve:/etc# cat network/interfaces
# network interface settings; autogenerated
# Please do NOT modify this file directly, unless you know what
# you're doing.
#
# If you want to manage parts of the network configuration manually,
# please utilize the 'source' or 'source-directory' directives to do
# so.
# PVE will preserve these directives, but will NOT read its network
# configuration from sourced files, so do not attempt to move any of
# the PVE managed interfaces into external files!

auto lo
iface lo inet loopback

iface enp3s0 inet manual
iface enp2s0f0 inet manual
iface enp2s0f1 inet manual

auto vmbr0
iface vmbr0 inet static
address 192.168.xxx.xxx/24
gateway 192.168.xxx.xxx
bridge-ports enp3s0 enp2s0f0 enp2s0f1
bridge-stp off
bridge-fd 0

修改后

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
root@pve:/etc# cat network/interfaces
# network interface settings; autogenerated
# Please do NOT modify this file directly, unless you know what
# you're doing.
#
# If you want to manage parts of the network configuration manually,
# please utilize the 'source' or 'source-directory' directives to do
# so.
# PVE will preserve these directives, but will NOT read its network
# configuration from sourced files, so do not attempt to move any of
# the PVE managed interfaces into external files!

auto lo
iface lo inet loopback

iface enp4s0 inet manual
iface enp5s0 inet manual
iface enp6s0 inet manual
iface enp7s0 inet manual
#iface enp3s0 inet manual

#iface enp2s0f0 inet manual

#iface enp2s0f1 inet manual

auto vmbr0
iface vmbr0 inet static
address 192.168.xxx.xxx/24
gateway 192.168.xxx.xxx
bridge-ports enp4s0 enp5s0 enp6s0 enp7s0
bridge-stp off
bridge-fd 0