My setup is like this:
Ubiquiti router with DHCP - 10.80.81.1
Edgerouter X with openwrt 22.03
And I want to use Edgerouter X as a normal switch.
I plug to the eth0 lan port from the main router.
Before I change anything, with the default values, it's all up and running, but with the range of dhcp 192.168.1.xxx
But, to have Edgerouter X as a normal switch
I have done this 2 steps
Network - interface - edit LAN and change the default 192.168.1.1 for 10.80.81.100
Network - interface - edit LAN and ignore DHCP
save and apply!
But with this 2 modifications, when I plug a desktop to the edgerouter X, I don't have internet acess...
Can anyone help me to troubleshoot what is going wrong
You need to connect both devices to their respective lan ports, the wan port of the ER-X is either unused or configured as a lan port.
From Lan port of Ubiquiti router I plug to eth0 (that is WAN) of Edgerouter
And from eth1 of Edgerouter I plug in to my pc
Again: The routers (switches) need to be connected LAN-LAN, you don't want any routing on the ER-X.
@andyboeh you mean instead of plug from
main router to the eth0, to plug to the eth1/2/3/4 ?!?!
In this application you don't want a wan network. Either delete the wan and wan6 networks, or at least detach eth0 from them. Then you can use eth0 as a fifth LAN port by adding it to the lan bridge br-lan.
just one more question, it's possible to use this edgerouter X (as a normal switch) to use as a zerotier, to do a zerotier bridge?
I'm not familiar with zerotier, but since your ER-X is behind a NAT-Router, I suppose it requires at least configuration of the NAT router.
See below my ERX configured as a switch-only device:
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 packet_steering '1'
option ula_prefix 'fdbc:531c:40ca::/48'
option name 'br-lan'
option type 'bridge'
list ports 'eth0'
list ports 'eth1'
list ports 'eth2'
list ports 'eth3'
list ports 'eth4'
config interface 'lan'
option device 'br-lan'
option proto 'static'
option netmask '255.255.255.0'
option ip6assign '60'
option ipaddr '192.168.1.5'
option gateway '192.168.1.1'
list dns '192.168.1.1'
list dns_search 'lan'
config interface 'lan6'
option proto 'dhcpv6'
option device '@lan'
option reqprefix 'no'
Please, note my admin IP is 192.168.1.5. You might be using something different. And below is the set of services running on it for your reference:
Usage: service <service> [command]
The following services are available:
/etc/init.d/boot enabled stopped
/etc/init.d/bootcount enabled stopped
/etc/init.d/cron enabled stopped
/etc/init.d/dnsmasq disabled stopped
/etc/init.d/done enabled stopped
/etc/init.d/dropbear enabled running
/etc/init.d/firewall disabled stopped
/etc/init.d/gpio_switch enabled stopped
/etc/init.d/led enabled stopped
/etc/init.d/log enabled running
/etc/init.d/network enabled running
/etc/init.d/odhcpd disabled stopped
/etc/init.d/rpcd enabled running
/etc/init.d/set-irq-affinity enabled stopped
/etc/init.d/sysctl enabled stopped
/etc/init.d/sysfixtime enabled stopped
/etc/init.d/sysntpd enabled running
/etc/init.d/system enabled stopped
/etc/init.d/ucitrack enabled stopped
/etc/init.d/uhttpd enabled running
/etc/init.d/umount enabled stopped
/etc/init.d/urandom_seed enabled stopped
/etc/init.d/urngd enabled running
/etc/init.d/wpad disabled stopped
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.