Author
Message
fpaquin92 DD-WRT Novice Joined: 04 Aug 2017 Posts: 25
Posted: Sun Jul 01, 2018 12:01 Post subject:
Per Yngve Berg wrote: That is LAN-LAN (10.50.0.1 and 10.50.0.2, same sub-net)
You need to enter a route to the other sub-nets behind the 941ND. Can you ping the C7 (10.50.0.1) from a client on these sub-nets?
I just tried and no access to internet and unable to ping other the C7.
I was wondering why i put a static ip to wan in 941ND, because there is to WAN connected physically. Did i need to assing WAN to ath0 in the networking tab ?
Did i need to change wireless mode from WDS Station to Client bridge or client ?
Back to top
Sponsor
Per Yngve Berg DD-WRT Guru Joined: 13 Aug 2013 Posts: 6870 Location: Romerike, Norway
Posted: Sun Jul 01, 2018 12:58 Post subject:
Disable the WAN port or assign it as a 5. LAN port.
Have you enabled NAT on the C7?
iptables -I POSTROUTING -t nat -o `get_wanface` -j MASQUERADE
Paste in Administration->Commands and save as firewall.
Back to top
fpaquin92 DD-WRT Novice Joined: 04 Aug 2017 Posts: 25
Posted: Sun Jul 01, 2018 13:10 Post subject:
Per Yngve Berg wrote: Disable the WAN port or assign it as a 5. LAN port.
Have you enabled NAT on the C7?
iptables -I POSTROUTING -t nat -o `get_wanface` -j MASQUERADE
Paste in Administration->Commands and save as firewall.
I disabled WAN port, but now i can't put a ip adress to wan, or it has a other way to put a static ip to the wan ?
Back to top
Per Yngve Berg DD-WRT Guru Joined: 13 Aug 2013 Posts: 6870 Location: Romerike, Norway
Posted: Sun Jul 01, 2018 13:14 Post subject:
It doesn't need an IP address.
Back to top
fpaquin92 DD-WRT Novice Joined: 04 Aug 2017 Posts: 25
Posted: Sun Jul 01, 2018 13:16 Post subject:
Per Yngve Berg wrote: The gateway is wrong. It cannot be on the same sub-net as the one you are routing to.
When the router have an interface to 10.50.0.0/24, it already know where it is and does not need a route.
Is the 941ND connected LAN-LAN or WAN-LAN with the C7?
Take an example:
LAN address of C7: 10.50.0.1
WAN address of 941ND: 10.50.0.2 gateway 10.50.0.1
LAN address of 941ND: 10.51.0.1
941ND is set in router mode.
Static route on C7 will be:
10.51.0.0/24 gateway 10.50.0.2
Where i put the WAN Address od 941ND ?
Back to top
Per Yngve Berg DD-WRT Guru Joined: 13 Aug 2013 Posts: 6870 Location: Romerike, Norway
Posted: Sun Jul 01, 2018 13:46 Post subject:
No WAN, the LAN address 10.50.0.2 only.
Use it as gateway in the route.
Back to top
fpaquin92 DD-WRT Novice Joined: 04 Aug 2017 Posts: 25
Posted: Sun Jul 01, 2018 13:49 Post subject:
Per Yngve Berg wrote: No WAN, the LAN address 10.50.0.2 only.
Use it as gateway in the route.
Haaaaaaaaaaaaa !!!!
Now it make sense for me ! Sorry
Did i need to made a route in 941ND ?
Back to top
Per Yngve Berg DD-WRT Guru Joined: 13 Aug 2013 Posts: 6870 Location: Romerike, Norway
Posted: Sun Jul 01, 2018 13:53 Post subject:
No, because it will have the C7 as default route.
Back to top
fpaquin92 DD-WRT Novice Joined: 04 Aug 2017 Posts: 25
Back to top
Per Yngve Berg DD-WRT Guru Joined: 13 Aug 2013 Posts: 6870 Location: Romerike, Norway
Posted: Sun Jul 01, 2018 14:25 Post subject:
941ND show local ipaddress 10.50.0.1. It should have been 10.50.0.2 Isn't 10.50.0.1 the address of the C7?
Back to top
fpaquin92 DD-WRT Novice Joined: 04 Aug 2017 Posts: 25
Posted: Sun Jul 01, 2018 14:28 Post subject:
Per Yngve Berg wrote: 941ND show local ipaddress 10.50.0.1. It should have been 10.50.0.2 Isn't 10.50.0.1 the address of the C7?
Local ip of 941nd is set to 10.51.0.1 gw 10.50.0.1
The C7 address is 10.50.0.1
Back to top
fpaquin92 DD-WRT Novice Joined: 04 Aug 2017 Posts: 25
Posted: Thu Aug 09, 2018 13:32 Post subject:
It works !
I had to put the 941nd on Gateway mode and the wifi as client instead of WDS station. It runs is own dhcp server and act as a gateway. I put net isolation on each virtual ap and NAT became available to select. In router mode NAT is unavailable when we unbridge the virtual networks.
Thanks a lot for help you give to me !
Back to top