This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| configuration:1to1_napt [2015/05/19 12:32] – hess | configuration:1to1_napt [2024/04/18 13:34] (current) – fachet | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== 1:1 Network  | + | ====== 1:1 Network  | 
| - | With 1:1 NAPT you can Map a whole network IP-range into another. This can be handy if you want to maintain a common local ip range like 192.168.1.0/ | + | With 1:1 NAT you can Map a whole network IP-range into another. This can be handy if you want to maintain a common local ip range like 192.168.1.0/ | 
| - | Common Example:  | + | {{: | 
| - | * to the ticketmachine via **192.168.1.13**, | + | |
| - | * to the videocamera via **192.168.1.14** | + | Common Example:  | 
| - |   * and the WLAN accesspoint  | + | Vehicles have installed ticketmachines, | 
| + | * to the ticketmachine via **192.168.1.10**, | ||
| + | * to the videocamera via **192.168.1.11** | ||
| + |   * and all other devices  | ||
| - | But in the same moment  | + | In addition  | 
| - |    | + | Vehicle 1 - 172.31.0.10: | 
| - | * to the videocamera via **10.10.123.14** | + |    | 
| - |   * and the WLAN accesspoint  | + | * to the videocamera via **10.8.1.11** | 
| - | + | * and all other devices via **via 10.8.1.XX** | |
| - | Where 123 would be your vehicle/ | + | Vehicle 2 - IP 172.31.0.11: | 
| + | * to the ticketmachine via **10.8.2.10** | ||
| + |   * to the videocamera  | ||
| + | * and all other devices via **via 10.8.2.XX** | ||
| + | Vehicle NN - IP 172.31.0.YY: | ||
| + | * to the ticketmachine via **10.8.NN.10** | ||
| + | * to the videocamera via **10.8.NN.11** | ||
| + | * and all other devices via **via 10.8.NN.XX** | ||
| To avoid creating 3 or even more NAPT rules you can use the network based rules and do this with only 2 Rules.  | To avoid creating 3 or even more NAPT rules you can use the network based rules and do this with only 2 Rules.  | ||
| - | ===== Basic Napt Rules ===== | + | ===== Networking  | 
| + | 10.8.1.0/24 -> 172.31.0.10 | ||
| + | 10.8.2.0/24 -> 172.31.0.11 | ||
| + | 10.8.NN.0/ | ||
| - |    | + | ===== Basic Napt Rules ===== | 
| - |   * Outbount: Map 192.168.**1**.0/ | + | Vehicle 1: | 
| + |    | ||
| + |   * Outbount: Map 192.168.1.0/ | ||
| + | Vehicle 2: | ||
| + |   * Inbound: Map 10.8.**2**.0/ | ||
| + | * Outbount: Map 192.168.1.0/24 to 10.8.**2**.0/24 | ||
| + | Vehicle NN: | ||
| + |   * Inbound: Map 10.8.**NN**.0/ | ||
| + |   * Outbount: Map 192.168.1.0/ | ||
| ===== Configuration ===== | ===== Configuration ===== | ||
| - | To Configure this scenario all you need are two rules | + | To Configure this scenario all you need are two rules per router - Veihcle 1 | 
| - |   * Inbound  | + |   * Inbound  | 
| - | {{ :nrsw:screenshot_-_140415_-_11_32_57.png?600 |}} | + | {{ :configuration:napt_in.png?800 |}} | 
| - |   * Outbound  | + |   * Outbound  | 
| - | {{ :nrsw:screenshot_-_140415_-_11_39_52.png?600 |}} | + | {{ :configuration:napt_out.png?800 |}} |