Routing
From DD-WRT Wiki
(Difference between revisions)
Revision as of 20:05, 28 June 2012 (edit) Glenn (Talk | contribs) (→See also - +link) ← Previous diff |
Revision as of 12:24, 1 July 2012 (edit) (undo) Glenn (Talk | contribs) (linkchg) Next diff → |
||
Line 30: | Line 30: | ||
==See also== | ==See also== | ||
- | * [[Private | + | * [[Private ip addresses]] |
* [[Link-local addresses]] | * [[Link-local addresses]] | ||
* [[Network address translation]] | * [[Network address translation]] | ||
[[Category:Routing| ]] | [[Category:Routing| ]] |
Revision as of 12:24, 1 July 2012
Contents |
start
This is the WIP page for routing with ddwrt. Just to have something to start.
In general router works like this:
apB--------apA-----Internet (WAN) connection | | clientB clientA
Set the (private) subnetwork ip (sub)networks to e.g.:
- apA 10.0.0.1/24 Short for: ( address 10.0.0.1 subnet 10.0.0.0 mask 255.255.255.0 = 24 left-to-right binary ones )
- clientA 10.0.0.12/24 Short for: ( address 10.0.0.12 subnet 10.0.0.0 mask 255.255.255.0 )
- apB 192.168.168.1/24 Short for: ( address 192.168.168.1 subnet 192.168.168.0 mask 255.255.255.0 )
- clientB 192.168.168.15/24 Short for: ( address 192.168.168.15 subnet 192.168.168.0 mask 255.255.255.0 )
Routing (static) configurations:
- tell clientA that apA is his default gateway (normally done through dhcp)
- tell clientB that apB is his default gateway (normally done through dhcp)
- tell apB that apA is his default gateway
- tell apA that "WAN"-router is his default gateway
- set the apB device to router mode
- tell apA that requests to 192.168.168.0/24 will be routed through (apB) 192.168.168.1/24 (static route)
That's it!