Hi, I'm new to openwrt, I have a NETGEAR EVG2000 which I've loaded with openwrt 19.07 & Luci.
I can ssh and use web GUI thru the ethernet ports. I'm trying to set the device up as a router. When I connect the WAN port from the default install to an existing router per the setup instructions, the ping etc. from openwrt fails. Although the instructions say the default install should work as a router, it seems to be missing wan setup. https://openwrt.org/docs/guide-quick-start/troubleshooting_internetconnectivity
My understanding is that I would need to add something like the following to /etc/config/network, but the eth0.2 looks like a virtual network according to the articles I've read.
config interface 'wan'
option ifname 'eth0.2'
option proto 'dhcp'
Any pointers etc. would be greatly appreciated.
Current network below
root@OpenWrt:~# cat /etc/config/network
Make sure the existing router is not using the IP range 192.168.1.X. It doesn't work to route between two subnets that are the same. You will need to change your LAN IP or reconfigure other router and network.
Then the otherwise default settings will work. To route, plug the upstream network into the WAN port and let the other router's DHCP configure it. Do not add gateway or DNS to your lan settings.
Many thanks for the reply. I working wit hthe following setup:
PC 192.168.2.3 - openwrt router (192.168.2.1 (LAN port) - (WAN port) - existing network 192.168.0.x
Ping via Luci returns " ping: bad address 'opewrt.org' "
/etc/config/network
Further examination shows this model is a DSL gateway with Broadcom chips, so the switch may not be set up in the conventional 4 + 1 scheme out of the box.