Proxmox VE (PVE) 教学 (2) | 网络配置

在这篇文章中,我将记录我在网络配置上遇到的问题以及填坑方案。如果这里面也有你遇到的问题,你可以按需阅读。

更改默认绑定网卡

我在安装 PVE 之后,将该硬盘移到其他机器上,由于硬件设施的变动,导致我们无法连接进入服务器。我们需要修改/etc/network/interfaces文件。

在 PVE 中,默认安装的文件编辑器是nano,我们使用nano编辑/etc/network/interfaces文件。

nano /etc/network/interfaces

我先讲一讲我的案例,这是我的配置文件,对于刚安装的设备,配置文件基本都差不多,只是网卡和 IP 地址不一样。

我的配置文件如下:

# 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

auto vmbr0
iface vmbr0 inet static
address 192.168.3.100/24
gateway 192.168.3.1
bridge-ports enp2s0
bridge-

相关推荐

  1. Proxmox VE (PVE) 教学 (2) | 网络配置

    2024-04-22 13:32:04       38 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-04-22 13:32:04       94 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-04-22 13:32:04       101 阅读
  3. 在Django里面运行非项目文件

    2024-04-22 13:32:04       82 阅读
  4. Python语言-面向对象

    2024-04-22 13:32:04       91 阅读

热门阅读

  1. 高可用环境kafka消息未按顺序消费问题

    2024-04-22 13:32:04       35 阅读
  2. WebSocket发送与接收数据

    2024-04-22 13:32:04       38 阅读
  3. 探索ChatGPT写作新视野

    2024-04-22 13:32:04       31 阅读
  4. C# 中优雅的动态序列化接口返回数据

    2024-04-22 13:32:04       40 阅读
  5. Docker

    2024-04-22 13:32:04       37 阅读
  6. LeetCode279 完全平方数

    2024-04-22 13:32:04       32 阅读
  7. Vue3中props的原理与使用

    2024-04-22 13:32:04       34 阅读
  8. http、https、json编程

    2024-04-22 13:32:04       43 阅读
  9. 人工智能安全与光明时代

    2024-04-22 13:32:04       38 阅读