设备
N5105 软路由 + 四网口
环境
- 宿主机 PVE + 原版 OpenWrt 21.02.5 ,直通了三个网口给 OpenWrt 在 OpenWrt 系统中显示如下:
- ETH0: LAN (pve 桥接接口即 pve 管理端口)
- ETH1: WAN
- ETH2: 未使用
- ETH3: 未使用
需求和问题
想要将 ETH2 和 ETH3 口也作为 LAN 口使用,但是我配置完后只有 ETH0 可以上网,ETH2 和 ETH3 死活无法上网,但插在这两个口上可以获取到 IP 地址,说明 DHCP 是正常的,ping 主路由 10.0.0.1 也超时不同,有大佬帮看看哪里的配置有什么问题么?
配置如下
br-lan 是 op 默认的桥接接口,默认只勾选了 ETH0 ,我这里将 ETH2 和 ETH3 也勾上:

然后保存应用,br-lan 处确实显示了三个口:

防火墙也是刷完的默认配置,没有动过:

最后附上 /etc/config/network 配置:
config interface 'loopback'
option device 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
option ula_prefix 'fd56:8027:32c2::/48'
config device
option name 'br-lan'
option type 'bridge'
list ports 'eth0'
list ports 'eth2'
list ports 'eth3'
config interface 'lan'
option device 'br-lan'
option proto 'static'
option netmask '255.255.255.0'
option ipaddr '10.0.0.1'
config interface 'wan'
option device 'eth1'
option proto 'pppoe'
option username '********'
option password '********'
option ipv6 'auto'
config interface 'wan6'
option device 'eth1'
option proto 'dhcpv6'
config interface 'docker'
option device 'docker0'
option proto 'none'
option auto '0'
config device
option type 'bridge'
option name 'docker0'