I have an issue I can't seem to figure out with alot of research.
How can I forward a second wired network out of the WAN port? No Vlans. No wireless (AP).
-I have the OpenWRT network x.x.1.0 (Running CC 15)
-Second router has x.x.2.0.
-Both have STATIC ROUTES that work. x.x.2.x can ping x.x.1.1 and vise versa.
-Second router has firewall OFF. Forwarding both networks. Even proxy arp.
I can find no supporting documentation, tutorials, examples, forum posts etc on this.
All I found was info for AP Guest networks and Vlan trunking. I'm using neither.
I don't need DHCP or DNS on 2nd network. I can forward out to ISP DNS and DHCP is covered by router2.
I'm not iptables savvy and don't want to break my OpenWRT WAN settings. Seems I can only have a direct-connect interfaces as a ZONE so I can't use the GUI for this.
ROUTER1
me@OpenWrt:~# route -n
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 ISP 0.0.0.0 UG 0 0 0 eth0
ISP 0.0.0.0 255.255.224.0 U 0 0 0 eth0
ISP 0.0.0.0 255.255.255.255 UH 0 0 0 eth0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 br-lan
192.168.2.0 192.168.1.250 255.255.255.0 UG 1 0 0 br-lan << STATIC ROUTE
cat /etc/config/network
config route << STATIC ROUTE
option interface 'lan'
option target '192.168.2.0'
option netmask '255.255.255.0'
option gateway '192.168.1.250'
option metric '1'
option mtu '1500'
me@OpenWrt:~# ping -c1 192.168.2.233 < DHCP on x.x.2.0 network
PING 192.168.2.233 (192.168.2.233): 56 data bytes
64 bytes from 192.168.2.233: seq=0 ttl=127 time=0.887 ms WORKS
--------------
ROUTER 2
me@Router2:~$ show ip route
Codes: K - kernel route, C - connected, S - static, R - RIP, O - OSPF,
I - ISIS, B - BGP, > - selected route, * - FIB route
S>* 0.0.0.0/24 [1/0] via 192.168.1.1, eth0 < STATIC ROUTE & DEFAULT GATEWAY
C>* 127.0.0.0/8 is directly connected, lo
C>* 192.168.1.0/24 is directly connected, eth0
C>* 192.168.2.0/24 is directly connected, switch0
----------------------
2nd network client
x.x.2.233>ping -n1 192.168.1.1
Sent=1, Received =1, Lost = 0 (0% Loss) WORKS
--------------
1st network client
x.x.1.30>ping 192.168.2.233
Packets: Sent = 2, Received = 2, Lost = 0 (0% loss), WORKS
But x.x.2.0 network can't go out to the Internet.
Please help if you can. Appreciated
(Last edited by shockedquartz on 2 Mar 2018, 23:45)