主机 WAN 如何将 WAN 流量连接到主机桥接 WAN?

主机 WAN 如何将 WAN 流量连接到主机桥接 WAN?

有人能帮助我了解 WAN enp3s0 如何在虚拟设置中的 Ubuntu 中连接吗?

我刚刚用虚拟机路由器设置了我的桌面。只是想映射拓扑。我可以看到并映射 LAN 流量,但我不明白 WAN 流量如何从有线连接 1 连接到虚拟机路由器 WAN?

我怀疑我的拓扑图上缺少的最后一个连接可能是有线连接 1 到 virbr0,但我无法通过任何证据确认?

VM 路由器从 LAN vtnet0 桥接到主机桥 local-br1.1,从 WAN vtnet1 桥接到主机桥 virbr0。

我认为主机需要从主机桥 WAN virbr0 到主机 nic0 或主机有线连接 1 的连接?

我可以从 ip -ca 结果和 ip 路由匹配网桥主站和从站,但在 WAN 上看不到任何信息?

细节: 拓扑图https://i.imgur.com/SN3AB9H.png

Host:$ ip -c a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: enp2s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel master local-br1.1 state UP group default qlen 1000
    link/ether 46:9e:01:27:db:0d brd ff:ff:ff:ff:ff:ff permaddr 1c:61:b4:6d:38:4f
3: enp3s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether a8:a1:59:6e:1f:8b brd ff:ff:ff:ff:ff:ff
    inet 100.76.25.213/10 brd 100.127.255.255 scope global dynamic noprefixroute enp3s0
       valid_lft 278sec preferred_lft 278sec
    inet6 2406:2d40:4100:8fb2:7b54:ac94:277b:140f/64 scope global temporary deprecated dynamic
       valid_lft 233sec preferred_lft 0sec
    inet6 2406:2d40:4100:8fb2:f995:e028:b158:4865/64 scope global dynamic mngtmpaddr noprefixroute
       valid_lft 233sec preferred_lft 83sec
    inet6 fe80::8cc1:c5d0:5e3e:28b1/64 scope link noprefixroute
       valid_lft forever preferred_lft forever
4: virbr0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 52:54:00:94:0d:bb brd ff:ff:ff:ff:ff:ff
    inet 192.168.122.1/24 brd 192.168.122.255 scope global virbr0
       valid_lft forever preferred_lft forever
5: local-br1.1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 2e:f6:bf:42:0c:f8 brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.120/24 brd 192.168.1.255 scope global noprefixroute local-br1.1
       valid_lft forever preferred_lft forever
6: vnet0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master local-br1.1 state UNKNOWN group default qlen 1000
    link/ether fe:54:00:3d:53:41 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::fc54:ff:fe3d:5341/64 scope link
       valid_lft forever preferred_lft forever
7: vnet1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master virbr0 state UNKNOWN group default qlen 1000
    link/ether fe:54:00:a3:f6:c4 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::fc54:ff:fea3:f6c4/64 scope link
       valid_lft forever preferred_lft forever
16: vnet3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master local-br1.1 state UNKNOWN group default qlen 1000
    link/ether fe:54:00:8d:31:06 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::fc54:ff:fe8d:3106/64 scope link
       valid_lft forever preferred_lft forever
17: vnet4: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master local-br1.1 state UNKNOWN group default qlen 1000
    link/ether fe:54:00:f7:f9:e5 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::fc54:ff:fef7:f9e5/64 scope link
       valid_lft forever preferred_lft forever
18: vnet5: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master local-br1.1 state UNKNOWN group default qlen 1000
    link/ether fe:54:00:b6:35:37 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::fc54:ff:feb6:3537/64 scope link
       valid_lft forever preferred_lft forever

Host:$ arp -n
Address HWtype HWaddress Flags Mask Iface
192.168.1.160 ether 3c:2a:f4:60:b5:7b C local-br1.1
192.168.1.1 ether 52:54:00:3d:53:41 C local-br1.1
192.168.122.149 ether 52:54:00:a3:f6:c4 C virbr0
192.168.1.102 ether 52:54:00:8d:31:06 C local-br1.1
192.168.1.100 ether 1c:ca:e3:77:c5:53 C local-br1.1
100.64.0.1 ether 00:00:5e:00:01:01 C enp3s0

Host:$ route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default _gateway 0.0.0.0 UG 102 0 0 enp3s0
244.255.120.34. 0.0.0.0 255.255.255.255 UH 102 0 0 enp3s0
100.64.0.0 0.0.0.0 255.192.0.0 U 102 0 0 enp3s0
link-local 0.0.0.0 255.255.0.0 U 1000 0 0 virbr0
192.168.1.0 0.0.0.0 255.255.255.0 U 425 0 0 local-br1.1
192.168.100.1 0.0.0.0 255.255.255.255 UH 102 0 0 enp3s0
192.168.122.0 0.0.0.0 255.255.255.0 U 0 0 0 virbr0

Host:$ ip route
default via 100.64.0.1 dev enp3s0 proto dhcp metric 102
34.120.255.244 dev enp3s0 proto dhcp scope link metric 102
100.64.0.0/10 dev enp3s0 proto kernel scope link src 100.76.25.213 metric 102
169.254.0.0/16 dev virbr0 scope link metric 1000
192.168.1.0/24 dev local-br1.1 proto kernel scope link src 192.168.1.120 metric 425
192.168.100.1 dev enp3s0 proto dhcp scope link metric 102
192.168.122.0/24 dev virbr0 proto kernel scope link src 192.168.122.1

相关内容