所以,我是新手。我最近开始观看 YouTube 上名为 Poncho for OSdev 的系列视频,并尝试按照此视频 https://youtu.be/mpPbKEeWIHU?si=mReByNiwfk6W4Xlu 中给出的说明进行操作。不...
所以,我是新手。我最近开始观看 YouTube 上名为 Poncho for OSdev 的系列视频,并尝试按照此视频 https://youtu.be/mpPbKEeWIHU?si=mReByNiwfk6W4Xlu 。现在我收到此错误,但我不知道这到底是什么意思。有什么帮助吗?
PS:我还没有尝试链接视频中未显示的任何内容。
我的 18.04 ubuntu 服务器有以下接口配置。它有 2 个网络接口,位于同一网络的不同 VLAN 上。我现在正在将服务器迁移到带有 ub 的新服务器...
我的 18.04 ubuntu 服务器有以下接口配置。它有 2 个网络接口,位于同一网络的不同 VLAN 上。我现在正在将服务器迁移到使用 netplan 的 ubuntu 24.04 新服务器。我如何将以下配置转换为 netplan?我尝试过网上的一些建议,但到目前为止还没有找到明确的答案……
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interaface
#auto eno1
allow-hotplug eno1
iface eno1 inet static
address 10.10.99.3
netmask 255.255.255.0
network 10.10.99.0
broadcast 10.10.99.255
gateway 10.10.99.254
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 10.10.1.3 10.10.1.1 10.5.1.1 10.6.1.4
dns-search mgmonitor02.central2.local central2.local
post-up ip route add 10.0.0.0/16 eno1 src 10.10.99.3 table rt1
post-up ip route add default via 10.10.99.254 dev eno1 table rt1
post-up ip rule add from 10.10.99.3/32 table rt1
post-up ip rule add to 10.10.99.3/32 table rt1
allow-hotplug ens6
iface ens6 inet static
address 10.0.0.7
netmask 255.255.0.0
network 10.0.0.0
broadcast 10.0.255.255
# gateway 10.0.0.1
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 10.10.1.3 10.10.1.1 10.5.1.1 10.6.1.4
dns-search mgmonitor02.central2.local central2.local
post-up ip route add 10.0.0.0/16 dev ens6 src 10.0.0.7 table rt2
post-up ip route add default via 10.0.0.1 dev ens6 table rt2
post-up ip rule add from 10.0.0.7/32 table rt2
post-up ip rule add to 10.0.0.7/32 table rt2
post-up ip route add 10.0.0.4 via 10.0.0.1 dev ens6
我尝试使用在线找到的一些示例配置进行转换,但总是出现错误......这是我当前的网络计划:
# This file is generated from information provided by the datasource. Changes
# to it will not persist across an instance reboot. To disable cloud-init's
# network configuration capabilities, write a file
# /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following:
# network: {config: disabled}
network:
ethernets:
ens18:
addresses:
- 10.0.0.7/16
nameservers:
addresses:
- 10.10.1.3
- 10.10.1.2
- 10.5.1.1
- 10.6.1.4
- 8.8.8.8
search:
- central2.local
routes:
- to: default
via: 10.0.0.1
ens19:
addresses:
- 10.10.99.3/24
nameservers:
addresses:
- 10.10.1.3
- 10.10.1.2
- 10.5.1.1
- 10.6.1.4
- 8.8.8.8
search:
- central2.local
routes:
- to: default
via: 10.10.99.254
version: 2