Proxmox8に2.5Gイーサネットカードを増設

Proxmox

Proxmox8で動かしているSamba3ファイルサーバーを2.5Gbps化するため、2.5G NICを導入しました。

購入した製品は、Realtek rtl8125bチップが実装されている1ch 2.5G NIC で、2,000円程度で購入できました。

初期設定

NICをマシンに実装し、起動後、proxmoxコンソールにアクセスします。

Proxmoxコンソール→「システム」→「ネットワーク」に進み、ネットデバイスが認識されていることを確認します。(筆者の環境ではenp3s0が2.5G NICになります。)

このままではネットデバイスが動きませんので、ブリッジvmbr1を作成します。

ポートはenp3s0とし、「設定を適用」をクリックすると、NICがゲストOSに割り付けることが出来ます。

ProxmoxはDebianベースのため、市販されているほとんどのNICが自動で認識されます。

VMwareのように有志開発のNICドライバーをインストールをする必要はなく、Intel i225やAsix AX88179などもプラグインで認識します。素晴らしいです。

動作確認

インタフェース状態は、Proxmoxのシェル(コンソール端末)より/etc/network/interfacesを確認します。

# cat /etc/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 enp2s0 inet manual

iface enp3s0 inet manual

auto vmbr0
iface vmbr0 inet static
        address 192.168.0.90/24
        gateway 192.168.0.1
        bridge-ports enp2s0
        bridge-stp off
        bridge-fd 0

auto vmbr1
iface vmbr1 inet manual
        bridge-ports enp3s0
        bridge-stp off
        bridge-fd 0

source /etc/network/interfaces.d/*

ethtoolを使って2.5G NICとして認識できていることを確認します。

# ethtool enp3s0
Settings for enp3s0:
        Supported ports: [ TP    MII ]
        Supported link modes:   10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Full
                                2500baseT/Full
        Supported pause frame use: Symmetric Receive-only
        Supports auto-negotiation: Yes
        Supported FEC modes: Not reported
        Advertised link modes:  10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Full
                                2500baseT/Full
        Advertised pause frame use: Symmetric Receive-only
        Advertised auto-negotiation: Yes
        Advertised FEC modes: Not reported
        Link partner advertised link modes:  10baseT/Half 10baseT/Full
                                             100baseT/Half 100baseT/Full
                                             1000baseT/Full
        Link partner advertised pause frame use: No
        Link partner advertised auto-negotiation: Yes
        Link partner advertised FEC modes: Not reported
        Speed: 1000Mb/s
        Duplex: Full
        Auto-negotiation: on
        master-slave cfg: preferred slave
        master-slave status: slave
        Port: Twisted Pair
        PHYAD: 0
        Transceiver: external
        MDI-X: Unknown
        Supports Wake-on: pumbg
        Wake-on: d
        Link detected: yes

(参考)オンボード側のvmbr0は1G NICのため、2500baseTはサポートされていないことがわかります。

# ethtool enp2s0
Settings for enp2s0:
        Supported ports: [ TP    MII ]
        Supported link modes:   10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Full
        Supported pause frame use: Symmetric Receive-only
        Supports auto-negotiation: Yes
        Supported FEC modes: Not reported
        Advertised link modes:  10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Full
        Advertised pause frame use: Symmetric Receive-only
        Advertised auto-negotiation: Yes
        Advertised FEC modes: Not reported
        Link partner advertised link modes:  10baseT/Half 10baseT/Full
                                             100baseT/Half 100baseT/Full
                                             1000baseT/Full
        Link partner advertised pause frame use: No
        Link partner advertised auto-negotiation: Yes
        Link partner advertised FEC modes: Not reported
        Speed: 1000Mb/s
        Duplex: Full
        Auto-negotiation: on
        master-slave cfg: preferred slave
        master-slave status: slave
        Port: Twisted Pair
        PHYAD: 0
        Transceiver: external
        MDI-X: Unknown
        Supports Wake-on: pumbg
        Wake-on: d
        Link detected: yes

Proxmox上に構築しているSamba3ファイルサーバーのインタフェースをvmbr1に変更し、2.5G NICで動作するようにして作業完了です。

NFSの転送速度を高速化するには、2.5Gスイッチを導入する必要があります。

家庭用としては、VLANやSNMPなどのエンタープライズ機能を必要としないので、RealTek社の2.5Gチップを搭載した製品が安価でおすすめです。

10GルーターのSFP+ポートとの接続はDACケーブルが安価でおすすめです。

こちらは予算の都合で後日購入予定としています。