Hello,
I try to create a soft switch between 2 nic
My computer get 2 sfp ports and 2 2.5gb ports
and i would like SFP ports work as soft switch, i try bridging but not work.
on SFP1 i got WAN and on SFP2 i got a computer
Some help please...
Hello,
I try to create a soft switch between 2 nic
My computer get 2 sfp ports and 2 2.5gb ports
and i would like SFP ports work as soft switch, i try bridging but not work.
on SFP1 i got WAN and on SFP2 i got a computer
Some help please...
This should be possible, but it is only worth it if you are using this device as a router. Otherwise, you will get the same or better results with an actual hardware switch that consumes a fraction of the power
That said…
Please connect to your OpenWrt device using ssh and copy the output of the following commands and post it here using the "Preformatted text </>
" button:
Remember to redact passwords, MAC addresses and any public IP addresses you may have:
ubus call system board
cat /etc/config/network
I don't want buy 10Gb switch so i expect bridge on 2 nic can do that i want.
logs follow
thx.
ubus call system board
{
"kernel": "6.6.73",
"hostname": "OpenWrt",
"system": "Intel(R) N100",
"model": "VMware, Inc. VMware Virtual Platform",
"board_name": "vmware-inc-vmware-virtual-platform",
"rootfs_type": "ext4",
"release": {
"distribution": "OpenWrt",
"version": "24.10.0",
"revision": "r28427-6df0e3d02a",
"target": "x86/64",
"description": "OpenWrt 24.10.0 r28427-6df0e3d02a",
"builddate": "1738624177"
}
}
cat /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 'xxxx::/48'
option packet_steering '1'
config device
option name 'br-lan'
option type 'bridge'
list ports 'eth0'
config interface 'lan'
option device 'br-lan'
option proto 'static'
option ipaddr '192.168.1.252'
option netmask '255.255.255.0'
option ip6assign '60'
option gateway '192.168.1.1'
config device
option type 'bridge'
option name 'switch'
list ports 'eth1'
list ports 'eth2'
option mtu '1500'
option txqueuelen '1000'
option promisc '1'
option mtu6 '1500'
It seems my 2nd sfp port don't have link accross RJ45 SFP+ dongle with computer or switch connected
So first problem come from here
I send a call for warranty
i found this on opensense : https://docs.opnsense.org/manual/how-tos/lan_bridge.html
seems do that i want to do, but 10Gb traffic maybe is too big for cpu but i can't try because no link on spf+ port 2...
Do you know if i can do the same on opensense and on openwrt?
Thanks
Sounds like this may need to wait until you get a replacement NIC or RJ45 SFP+ module.
Anyway, assuming you want all the ports on the lan, it's really simple:
delete this:
And then just put eth1 and eth2 into br-lan
:
config device
option name 'br-lan'
option type 'bridge'
list ports 'eth0'
list ports 'eth1'
list ports 'eth2'
However...
I would recommend running OpenWrt on bare metal. Running it within a VM means that you are relying on the virtualizer/hypervisor/supervisor to handle the ports properly, and you could possibly have a significant bandwidth reduction simply for going through this environment.
you are true, VM Ware ESX block bridge communication, i search solution ...
Two solutions immediately come to mind...
Working the virtualized environment is only semi-supported... the virtualizer/hypervisor and host OS is not supported here, so you may need to reach out to VM Ware support and/or communities.
Yes when running a VM it will work better to bridge them in the host OS or hypervisor.
You had correctly defined the bridge in OpenWrt but it won't actually be built unless there is an Interface attached to it. For future reference you needed something like'
config interface 'switch'
option device 'switch'
option proto 'none'
But it is pointless to bring packets into OpenWrt just to bridge them back out when VMware can do that.