你好,我已成功安装 KVM 并构建了几台不同的 Windows 和 Linux 机器,它们都可以看到互联网并运行,但从我的本地 192.168.1.0 网络,我无法使用 SSH 等工具连接到它们。服务器 IP 地址分配给 br0,所有虚拟机都在
virbr0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
inet 192.168.122.1 netmask 255.255.255.0 broadcast 192.168.122.255
ether 52:54:00:7b:16:92 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
这是我的网络计划:
$ cat /etc/netplan/50-cloud-init.yaml
# This file is generated from information provided by
# the datasource. Changes to it will not persist across an instance.
# 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:
version: 2
ethernets:
enp8s0f0:
dhcp4: no
dhcp6: no
bridges:
br0:
interfaces: [enp8s0f0]
dhcp4: yes*
我是否需要在主路由器上创建静态路由,或者我缺少什么?