http://www.freebsdwiki.net/index.php?title=Network_Configuration_(Advanced)&feed=atom&action=historyNetwork Configuration (Advanced) - Revision history2024-03-29T11:02:32ZRevision history for this page on the wikiMediaWiki 1.18.0http://www.freebsdwiki.net/index.php?title=Network_Configuration_(Advanced)&diff=8802&oldid=prevJimbo at 23:18, 15 September 20072007-09-15T23:18:36Z<p></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 23:18, 15 September 2007</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 76:</td>
<td colspan="2" class="diff-lineno">Line 76:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>If we were using a web topology, Jersey's configuration would not have the static routes commented out, and its defaultrouter would likely be .1 (for its own internet edge device) while leaving the routes to the other offices through .2 (its own private WAN router or VPN server).</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>If we were using a web topology, Jersey's configuration would not have the static routes commented out, and its defaultrouter would likely be .1 (for its own internet edge device) while leaving the routes to the other offices through .2 (its own private WAN router or VPN server).</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">see also: </del>[[Network Configuration (basic)]], [[OpenVPN]]</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div> </div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div> </div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">=See Also=</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div> </div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>[[Network Configuration (basic)]], [[OpenVPN]]</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>[[Category:Configuring FreeBSD]]</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>[[Category:Configuring FreeBSD]]</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>[[Category:FreeBSD for Servers]]</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>[[Category:FreeBSD for Servers]]</div></td></tr>
<!-- diff cache key bsdwiki:diff:version:1.11a:oldid:8801:newid:8802 -->
</table>Jimbohttp://www.freebsdwiki.net/index.php?title=Network_Configuration_(Advanced)&diff=8801&oldid=prevJimbo at 23:17, 15 September 20072007-09-15T23:17:54Z<p></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 23:17, 15 September 2007</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 76:</td>
<td colspan="2" class="diff-lineno">Line 76:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>If we were using a web topology, Jersey's configuration would not have the static routes commented out, and its defaultrouter would likely be .1 (for its own internet edge device) while leaving the routes to the other offices through .2 (its own private WAN router or VPN server).</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>If we were using a web topology, Jersey's configuration would not have the static routes commented out, and its defaultrouter would likely be .1 (for its own internet edge device) while leaving the routes to the other offices through .2 (its own private WAN router or VPN server).</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>see also: [[OpenVPN]]</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>see also: <ins class="diffchange diffchange-inline">[[Network Configuration (basic)]], </ins>[[OpenVPN]]</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>[[Category:Configuring FreeBSD]]</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>[[Category:Configuring FreeBSD]]</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>[[Category:FreeBSD for Servers]]</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>[[Category:FreeBSD for Servers]]</div></td></tr>
<!-- diff cache key bsdwiki:diff:version:1.11a:oldid:8800:newid:8801 -->
</table>Jimbohttp://www.freebsdwiki.net/index.php?title=Network_Configuration_(Advanced)&diff=8800&oldid=prevJimbo at 23:16, 15 September 20072007-09-15T23:16:07Z<p></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 23:16, 15 September 2007</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 12:</td>
<td colspan="2" class="diff-lineno">Line 12:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>A WAN link connects to an office using a router and it is possible for an office to have more than one connecting to it.  This may be a 'head office' that plays a central role to the other (possibly smaller 'branch' or 'satellite') offices (star topology) or it may be a setup where each office can connect to any of the other offices directly (web topology).</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>A WAN link connects to an office using a router and it is possible for an office to have more than one connecting to it.  This may be a 'head office' that plays a central role to the other (possibly smaller 'branch' or 'satellite') offices (star topology) or it may be a setup where each office can connect to any of the other offices directly (web topology).</div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>= Static Routing =</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>= Static Routing =</div></td></tr>
<tr><td colspan="2" class="diff-lineno">Line 46:</td>
<td colspan="2" class="diff-lineno">Line 48:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>With the correct router and static routing configuration it is possible for every office to connect to each other and to further permit surfing the web using the Guernsey internet connection regardless of which office a user is in.</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>With the correct router and static routing configuration it is possible for every office to connect to each other and to further permit surfing the web using the Guernsey internet connection regardless of which office a user is in.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>= Configuration (based on the example) =</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">=</ins>= Configuration (based on the example) <ins class="diffchange diffchange-inline">=</ins>=</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>Static routing can be configured on FreeBSD by editing [[rc.conf]] and either running /etc/netstart, or rebooting.  Static routing may also be configured by manual use of the [[route]] command from the shell, though any changes to the route table made from the shell will not persist through a reboot or running of /etc/netstart.</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>Static routing can be configured on FreeBSD by editing [[rc.conf]] and either running /etc/netstart, or rebooting.  Static routing may also be configured by manual use of the [[route]] command from the shell, though any changes to the route table made from the shell will not persist through a reboot or running of /etc/netstart.</div></td></tr>
<!-- diff cache key bsdwiki:diff:version:1.11a:oldid:8799:newid:8800 -->
</table>Jimbohttp://www.freebsdwiki.net/index.php?title=Network_Configuration_(Advanced)&diff=8799&oldid=prevJimbo at 23:14, 15 September 20072007-09-15T23:14:02Z<p></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 23:14, 15 September 2007</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 9:</td>
<td colspan="2" class="diff-lineno">Line 9:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>== Advanced Networking ==</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>== Advanced Networking ==</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>In contrast to this simplicity a larger organization will have multiple offices, spanning cities or whole jurisdictions.  These offices will each have a LAN that has a different subnet and connect to at least one other office using wide-area network (WAN) links.</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>In contrast to this simplicity a larger organization will <ins class="diffchange diffchange-inline">often </ins>have multiple offices, spanning cities or whole jurisdictions.  These offices will each have a LAN that has a different subnet and connect to at least one other office using wide-area network (WAN<ins class="diffchange diffchange-inline">) or virtual private network (VPN</ins>) links.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>A WAN link connects to an office using a router and it is possible for an office to have more <del class="diffchange diffchange-inline">then </del>one connecting to it.  This <del class="diffchange diffchange-inline">is typically within the </del>'head office' that plays a central role to the other (possibly smaller 'branch' or 'satellite') offices.</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>A WAN link connects to an office using a router and it is possible for an office to have more <ins class="diffchange diffchange-inline">than </ins>one connecting to it.  This <ins class="diffchange diffchange-inline">may be a </ins>'head office' that plays a central role to the other (possibly smaller 'branch' or 'satellite') offices <ins class="diffchange diffchange-inline">(star topology) or it may be a setup where each office can connect to any of the other offices directly (web topology)</ins>.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>= Static Routing =</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>= Static Routing =</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>In the Simple Networking example above any IP traffic that does not belong to the subnet is sent to the same router address <del class="diffchange diffchange-inline">which is known as the </del>default gateway <del class="diffchange diffchange-inline">and it </del>is typically attached to an internet connection.  In the Advanced Networking example IP traffic that does not belong to the subnet may need to be sent to another subnet via a WAN link instead of the default gateway <del class="diffchange diffchange-inline">which would send </del>it to the internet.</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>In the Simple Networking example above any IP traffic that does not belong to the subnet is sent to the same router address<ins class="diffchange diffchange-inline">. this </ins>default gateway is typically attached <ins class="diffchange diffchange-inline">directly </ins>to an internet connection.  In the Advanced Networking example<ins class="diffchange diffchange-inline">, </ins>IP traffic that does not belong to the <ins class="diffchange diffchange-inline">local </ins>subnet may need to be sent to another subnet via a WAN <ins class="diffchange diffchange-inline">or VPN </ins>link instead of the <ins class="diffchange diffchange-inline">being sent directly to the internet.  Typically, there will still be a single </ins>default gateway <ins class="diffchange diffchange-inline">for all clients, but that default gateway will then decide whether to forward the packets </ins>it <ins class="diffchange diffchange-inline">receives out </ins>to the internet<ins class="diffchange diffchange-inline">, or to a router connected to a private WAN or VPN link elsewhere within the organization.  (It is also possible to program routes to different subnets directly into individual client machines, but that involves considerably more to maintain and possibly go wrong, especially in large networks</ins>.<ins class="diffchange diffchange-inline">)</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">This process </del>is <del class="diffchange diffchange-inline">called </del>static routing<del class="diffchange diffchange-inline">, where a known network subnet </del>can <del class="diffchange diffchange-inline">be reached through </del>a <del class="diffchange diffchange-inline">specific WAN link</del>.</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">When the routes to other subnets across private WAN or VPN links are manually pre-programmed into the gateway or the clients, it </ins>is <ins class="diffchange diffchange-inline">known as '''</ins>static routing<ins class="diffchange diffchange-inline">'''.  ('''Dynamic routing''' involves systems which </ins>can <ins class="diffchange diffchange-inline">automatically detect and utilize available routes broadcast by other network devices and pick the best route to </ins>a <ins class="diffchange diffchange-inline">given destination on the fly</ins>.<ins class="diffchange diffchange-inline">)</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">Each network-attached system is configured with the subnet of another office and the local router address that connects to the WAN for the remote office.</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>== Scenario (example use<ins class="diffchange diffchange-inline">, star topology</ins>) ==</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div> </div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>== Scenario (example use) ==</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>An offshore financial institution operates across four jurisdictions; Cayman Islands, Guernsey, Isle of Man and Jersey.</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>An offshore financial institution operates across four jurisdictions; Cayman Islands, Guernsey, Isle of Man and Jersey.</div></td></tr>
<tr><td colspan="2" class="diff-lineno">Line 48:</td>
<td colspan="2" class="diff-lineno">Line 46:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>With the correct router and static routing configuration it is possible for every office to connect to each other and to further permit surfing the web using the Guernsey internet connection regardless of which office a user is in.</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>With the correct router and static routing configuration it is possible for every office to connect to each other and to further permit surfing the web using the Guernsey internet connection regardless of which office a user is in.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">=</del>= Configuration (based on the example) <del class="diffchange diffchange-inline">=</del>=</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>= Configuration (based on the example) =</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>Static routing <del class="diffchange diffchange-inline">is </del>configured on FreeBSD <del class="diffchange diffchange-inline"> </del>by editing [[rc.conf]] and rebooting the <del class="diffchange diffchange-inline">system</del>.</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>Static routing <ins class="diffchange diffchange-inline">can be </ins>configured on FreeBSD by editing [[rc.conf]] and <ins class="diffchange diffchange-inline">either running /etc/netstart, or </ins>rebooting<ins class="diffchange diffchange-inline">.  Static routing may also be configured by manual use of the [[route]] command from the shell, though any changes to the route table made from </ins>the <ins class="diffchange diffchange-inline">shell will not persist through a reboot or running of /etc/netstart</ins>.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>Using the above example the following configuration would be used within the Guernsey office:</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>Using the above example the following configuration would be used within the Guernsey office:</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del style="color: red; font-weight: bold; text-decoration: none;"><pre></del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del style="color: red; font-weight: bold; text-decoration: none;">defaultrouter="172.22.20.1"</del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del style="color: red; font-weight: bold; text-decoration: none;">static_routes="gsyjsy gsyiom gsycmi"</del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del style="color: red; font-weight: bold; text-decoration: none;">route_gsyjsy="-net 172.22.40.0/22 172.22.20.2"</del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del style="color: red; font-weight: bold; text-decoration: none;">route_gsyiom="-net 172.22.60.0/22 172.22.20.2"</del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del style="color: red; font-weight: bold; text-decoration: none;">route_gsycmi="-net 172.22.80.0/22 172.22.20.2"</del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del style="color: red; font-weight: bold; text-decoration: none;"></pre></del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del style="color: red; font-weight: bold; text-decoration: none;">The /22 ('slash twenty-two') used above is a short-code for the subnet mask 255.255.'''252'''.0.  A more typical network subnet mask of 255.255.'''255'''.0 would use /24 and 255.255.0.0 would use /16, and so on.</del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">And within the Jersey office:</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline"> </ins>defaultrouter="172.22.<ins class="diffchange diffchange-inline">20</ins>.<ins class="diffchange diffchange-inline">1</ins>"</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline"><pre></del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline"> </ins>static_routes="<ins class="diffchange diffchange-inline">gsyjsy gsyiom gsycmi</ins>"</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>defaultrouter="172.22.<del class="diffchange diffchange-inline">40</del>.<del class="diffchange diffchange-inline">2</del>"</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline"> route_gsyjsy</ins>="-net 172.22.<ins class="diffchange diffchange-inline">40</ins>.0/22 172.22.<ins class="diffchange diffchange-inline">20</ins>.2"</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>static_routes="<del class="diffchange diffchange-inline">jsygsy jsyiom jsycmi</del>"</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline"> route_gsyiom</ins>="-net 172.22.60.0/22 172.22.<ins class="diffchange diffchange-inline">20</ins>.2"</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">route_jsygsy</del>="-net 172.22.<del class="diffchange diffchange-inline">20</del>.0/22 172.22.<del class="diffchange diffchange-inline">40</del>.2"</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline"> route_gsycmi</ins>="-net 172.22.80.0/22 172.22.<ins class="diffchange diffchange-inline">20</ins>.2"</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">route_jsyiom</del>="-net 172.22.60.0/22 172.22.<del class="diffchange diffchange-inline">40</del>.2"</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">route_jsycmi</del>="-net 172.22.80.0/22 172.22.<del class="diffchange diffchange-inline">40</del>.2"</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline"></pre></del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">You will notice that the default gateway (the 'defaulrouter' parameter) is set to the Jersey WAN router IP and not the Guernsey default gateway IP.  This is intended because the WAN router in Guernsey will take responsibility of the forwarding of internet based traffic to the default gateway.</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">== Breakdown (from </del>the <del class="diffchange diffchange-inline">example configuration</del>) <del class="diffchange diffchange-inline">==</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">Note that while there are four routes defined above, there are only two actual destinations: an edge router which handles internet traffic, and a single WAN or VPN router handling all traffic for </ins>the <ins class="diffchange diffchange-inline">other offices.  The /22 ('slash twenty-two'</ins>) <ins class="diffchange diffchange-inline">used after the offices' network addresses is [[CIDR]] notation for the subnet mask 255.255.'''252'''.0.  A more typical network subnet mask of 255.255.'''255'''.0 would use /24, 255.255.0.0 would use /16, and so on.</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">=== defaultrouter ===</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">And within </ins>the <ins class="diffchange diffchange-inline">Jersey office:</ins></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline"><pre></del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">defaultrouter="172.22.40.2"</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline"></pre></del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">This parameter is </del>the <del class="diffchange diffchange-inline">default gateway and is typically used to indicate the IP address of the router that is responsible for internet traffic.  This is used on all network configurations where an internet connection exists.</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">It is possible to not use it at all however it is unusual in this day and age to not have or need an internet connection</del>.</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline"> defaultrouter="172</ins>.<ins class="diffchange diffchange-inline">22.40.2"</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline"> # static_routes="jsygsy jsyiom jsycmi"</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline"> # route_jsygsy="-net 172.22.20.0/22 172.22.40.2"</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline"> # route_jsyiom="-net 172.22.60.0/22 172.22.40.2"</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline"> # route_jsycmi="-net 172.22.80.0/22 172.22.40.2"</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">=== static_routes ===</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">Notice that in this case, the static routes have actually been commented out - that is because our example here uses a star topology with a single internet connection, and all traffic between offices must go through the </ins>"<ins class="diffchange diffchange-inline">hub</ins>" <ins class="diffchange diffchange-inline">Guernsey office.  So our satellite offices have only </ins>the <ins class="diffchange diffchange-inline">single WAN router, which </ins>routes <ins class="diffchange diffchange-inline">'''all''' traffic </ins>to <ins class="diffchange diffchange-inline">Guernsey, and the Guernsey router then decides what is routed out </ins>to the <ins class="diffchange diffchange-inline">internet, what is routed to another satellite office, and what is delivered locally to one of its own clients in Guernsey</ins>.</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline"><pre></del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">static_routes=</del>"<del class="diffchange diffchange-inline">jsygsy jsyiom jsycmi</del>"</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline"></pre></del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">This parameter is used to list </del>the routes <del class="diffchange diffchange-inline">that are needed </del>to <del class="diffchange diffchange-inline">connect </del>to <del class="diffchange diffchange-inline">other subnets outside </del>the <del class="diffchange diffchange-inline">local subnet but not through the default gateway</del>.</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">The values within </del>the <del class="diffchange diffchange-inline">"quote marks" are textual and </del>would <del class="diffchange diffchange-inline">normally be </del>a <del class="diffchange diffchange-inline">descriptive name for </del>the static <del class="diffchange diffchange-inline">route</del>.  <del class="diffchange diffchange-inline">The example above </del>has <del class="diffchange diffchange-inline">jsygsy </del>to <del class="diffchange diffchange-inline">indicate </del>the <del class="diffchange diffchange-inline">static route between Jersey and Guernsey subnets</del>.  </div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">In some cases, however, you will see individual offices each have their own Internet connection as well as a WAN or VPN connection to </ins>the <ins class="diffchange diffchange-inline">home office.  In this case, you </ins>would <ins class="diffchange diffchange-inline">see </ins>a <ins class="diffchange diffchange-inline">defaultrouter parameter directing traffic to </ins>the <ins class="diffchange diffchange-inline">ISP, and one or more </ins>static <ins class="diffchange diffchange-inline">routes defined directing interoffice traffic to the home office for further routing elsewhere</ins>.  <ins class="diffchange diffchange-inline">In the case of virtual private networks, it is also common to see a "web" topology in which each office not only </ins>has <ins class="diffchange diffchange-inline">its own internet connection, but also routes directly </ins>to <ins class="diffchange diffchange-inline">any other office without need to go through a central "home" or hub office along </ins>the <ins class="diffchange diffchange-inline">way</ins>.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">=== route_name ===</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">If we were using a web topology, Jersey's configuration would not have </ins>the <ins class="diffchange diffchange-inline">static routes commented out, </ins>and <ins class="diffchange diffchange-inline">its defaultrouter would likely be .1 (for its own internet edge device) while leaving </ins>the routes <ins class="diffchange diffchange-inline">to the other offices through .2 (its own private WAN router or VPN server)</ins>.</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline"><pre></del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">route_jsygsy="-net 172.22.20.0/22 172.22.40.2"</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">route_jsyiom="-net 172.22.60.0/22 172.22.40.2"</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">route_jsycmi="-net 172.22.80.0/22 172.22.40.2"</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline"></pre></del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">This parameter is used in conjunction with </del>the <del class="diffchange diffchange-inline">static_routes parameter </del>and <del class="diffchange diffchange-inline">defines </del>the <del class="diffchange diffchange-inline">actual static </del>routes.</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">The name following the route_ part is ''free-form'' text and used as a descriptive name for the route being defined.  This name is the part quoted on the 'static_routes="'''name'''"' parameter.</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">see also: [[OpenVPN]]</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>[[Category:Configuring FreeBSD]]</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>[[Category:Configuring FreeBSD]]</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>[[Category:FreeBSD for Servers]]</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>[[Category:FreeBSD for Servers]]</div></td></tr>
<!-- diff cache key bsdwiki:diff:version:1.11a:oldid:8793:newid:8799 -->
</table>Jimbohttp://www.freebsdwiki.net/index.php?title=Network_Configuration_(Advanced)&diff=8793&oldid=prev80.73.220.216: /* route_name */2007-09-15T21:17:09Z<p><span class="autocomment">route_name</span></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 21:17, 15 September 2007</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 99:</td>
<td colspan="2" class="diff-lineno">Line 99:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>The name following the route_ part is ''free-form'' text and used as a descriptive name for the route being defined.  This name is the part quoted on the 'static_routes="'''name'''"' parameter.</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>The name following the route_ part is ''free-form'' text and used as a descriptive name for the route being defined.  This name is the part quoted on the 'static_routes="'''name'''"' parameter.</div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">[[Category:Configuring FreeBSD]]</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">[[Category:FreeBSD for Servers]]</ins></div></td></tr>
<!-- diff cache key bsdwiki:diff:version:1.11a:oldid:8792:newid:8793 -->
</table>80.73.220.216http://www.freebsdwiki.net/index.php?title=Network_Configuration_(Advanced)&diff=8792&oldid=prev80.73.220.216: /* Simple Networking */2007-09-15T21:16:51Z<p><span class="autocomment">Simple Networking</span></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 21:16, 15 September 2007</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 3:</td>
<td colspan="2" class="diff-lineno">Line 3:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>= Introduction =</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>= Introduction =</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>== Simple Networking ==</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>== Simple Networking ==</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>A home network or a small office LAN will typically have one subnet and a single router with which to connect to the internet.  This router is referred to as the 'default gateway' since any IP addresses not local to the LAN is sent to it for routing onto the appropriate destination.  This setup is fairly straight-forward and most configuration for this type of network can be done from [[Network Configuration (basic)<del class="diffchange diffchange-inline">|this guide</del>]].</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>A home network or a small office LAN will typically have one subnet and a single router with which to connect to the internet.  This router is referred to as the 'default gateway' since any IP addresses not local to the LAN is sent to it for routing onto the appropriate destination.  This setup is fairly straight-forward and most configuration for this type of network can be done from <ins class="diffchange diffchange-inline">the </ins>[[Network Configuration (basic)]] <ins class="diffchange diffchange-inline">guide</ins>.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>'''''Note:''' the configuration name for the 'default gateway' is 'defaultrouter' within the [[rc.conf]] file.''</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>'''''Note:''' the configuration name for the 'default gateway' is 'defaultrouter' within the [[rc.conf]] file.''</div></td></tr>
<!-- diff cache key bsdwiki:diff:version:1.11a:oldid:8791:newid:8792 -->
</table>80.73.220.216http://www.freebsdwiki.net/index.php?title=Network_Configuration_(Advanced)&diff=8791&oldid=prev80.73.220.216: /* Simple Networking */2007-09-15T21:16:24Z<p><span class="autocomment">Simple Networking</span></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 21:16, 15 September 2007</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 3:</td>
<td colspan="2" class="diff-lineno">Line 3:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>= Introduction =</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>= Introduction =</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>== Simple Networking ==</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>== Simple Networking ==</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>A home network or a small office LAN will typically have one subnet and a single router with which to connect to the internet.  This router is referred to as the 'default gateway' since any IP addresses not local to the LAN is sent to it for routing onto the appropriate destination.  This setup is fairly straight-forward and most configuration for this type of network can be done from [[Network Configuration (<del class="diffchange diffchange-inline">Basic</del>)|this guide]].</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>A home network or a small office LAN will typically have one subnet and a single router with which to connect to the internet.  This router is referred to as the 'default gateway' since any IP addresses not local to the LAN is sent to it for routing onto the appropriate destination.  This setup is fairly straight-forward and most configuration for this type of network can be done from [[Network Configuration (<ins class="diffchange diffchange-inline">basic</ins>)|this guide]].</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>'''''Note:''' the configuration name for the 'default gateway' is 'defaultrouter' within the [[rc.conf]] file.''</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>'''''Note:''' the configuration name for the 'default gateway' is 'defaultrouter' within the [[rc.conf]] file.''</div></td></tr>
<!-- diff cache key bsdwiki:diff:version:1.11a:oldid:8790:newid:8791 -->
</table>80.73.220.216http://www.freebsdwiki.net/index.php?title=Network_Configuration_(Advanced)&diff=8790&oldid=prev80.73.220.216: /* Simple Networking */2007-09-15T21:16:01Z<p><span class="autocomment">Simple Networking</span></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 21:16, 15 September 2007</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 3:</td>
<td colspan="2" class="diff-lineno">Line 3:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>= Introduction =</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>= Introduction =</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>== Simple Networking ==</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>== Simple Networking ==</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>A home network or a small office LAN will typically have one subnet and a single router with which to connect to the internet.  This router is referred to as the 'default gateway' since any IP addresses not local to the LAN is sent to it for routing onto the appropriate destination.  This setup is fairly straight-forward and most configuration for this type of network can be done from [[Network Configuration (<del class="diffchange diffchange-inline">Simple</del>)|this guide]].</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>A home network or a small office LAN will typically have one subnet and a single router with which to connect to the internet.  This router is referred to as the 'default gateway' since any IP addresses not local to the LAN is sent to it for routing onto the appropriate destination.  This setup is fairly straight-forward and most configuration for this type of network can be done from [[Network Configuration (<ins class="diffchange diffchange-inline">Basic</ins>)|this guide]].</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>'''''Note:''' the configuration name for the 'default gateway' is 'defaultrouter' within the [[rc.conf]] file.''</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>'''''Note:''' the configuration name for the 'default gateway' is 'defaultrouter' within the [[rc.conf]] file.''</div></td></tr>
<!-- diff cache key bsdwiki:diff:version:1.11a:oldid:8788:newid:8790 -->
</table>80.73.220.216http://www.freebsdwiki.net/index.php?title=Network_Configuration_(Advanced)&diff=8788&oldid=prev80.73.220.216: /* route_name */2007-09-15T21:12:26Z<p><span class="autocomment">route_name</span></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 21:12, 15 September 2007</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 98:</td>
<td colspan="2" class="diff-lineno">Line 98:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>This parameter is used in conjunction with the static_routes parameter and defines the actual static routes.</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>This parameter is used in conjunction with the static_routes parameter and defines the actual static routes.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>The name following the route_ part is ''free-form'' text and used as a descriptive name for the route being defined.  This name is the part quoted on the 'static_routes=""' parameter.</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>The name following the route_ part is ''free-form'' text and used as a descriptive name for the route being defined.  This name is the part quoted on the 'static_routes="<ins class="diffchange diffchange-inline">'''name'''</ins>"' parameter.</div></td></tr>
<!-- diff cache key bsdwiki:diff:version:1.11a:oldid:8787:newid:8788 -->
</table>80.73.220.216http://www.freebsdwiki.net/index.php?title=Network_Configuration_(Advanced)&diff=8787&oldid=prev80.73.220.216: /* Configuration (example use) */2007-09-15T21:11:16Z<p><span class="autocomment">Configuration (example use)</span></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 21:11, 15 September 2007</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 48:</td>
<td colspan="2" class="diff-lineno">Line 48:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>With the correct router and static routing configuration it is possible for every office to connect to each other and to further permit surfing the web using the Guernsey internet connection regardless of which office a user is in.</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>With the correct router and static routing configuration it is possible for every office to connect to each other and to further permit surfing the web using the Guernsey internet connection regardless of which office a user is in.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>== Configuration (example <del class="diffchange diffchange-inline">use</del>) ==</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>== Configuration (<ins class="diffchange diffchange-inline">based on the </ins>example) ==</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>Static routing is configured on FreeBSD  by editing [[rc.conf]] and rebooting the system.</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>Static routing is configured on FreeBSD  by editing [[rc.conf]] and rebooting the system.</div></td></tr>
<tr><td colspan="2" class="diff-lineno">Line 60:</td>
<td colspan="2" class="diff-lineno">Line 60:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>route_gsycmi="-net 172.22.80.0/22 172.22.20.2"</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>route_gsycmi="-net 172.22.80.0/22 172.22.20.2"</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div></pre></div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div></pre></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">The /22 ('slash twenty-two') used above is a short-code for the subnet mask 255.255.'''252'''.0.  A more typical network subnet mask of 255.255.'''255'''.0 would use /24 and 255.255.0.0 would use /16, and so on.</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>And within the Jersey office:</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>And within the Jersey office:</div></td></tr>
<tr><td colspan="2" class="diff-lineno">Line 69:</td>
<td colspan="2" class="diff-lineno">Line 70:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>route_jsycmi="-net 172.22.80.0/22 172.22.40.2"</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>route_jsycmi="-net 172.22.80.0/22 172.22.40.2"</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div></pre></div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div></pre></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>You will notice that the default gateway is set to the WAN router IP and not the Guernsey default gateway IP.  This is intended because the WAN router in Guernsey will take responsibility of forwarding internet based traffic <del class="diffchange diffchange-inline">onward </del>to the default gateway.</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>You will notice that the default gateway <ins class="diffchange diffchange-inline">(the 'defaulrouter' parameter) </ins>is set to the <ins class="diffchange diffchange-inline">Jersey </ins>WAN router IP and not the Guernsey default gateway IP.  This is intended because the WAN router in Guernsey will take responsibility of <ins class="diffchange diffchange-inline">the </ins>forwarding <ins class="diffchange diffchange-inline">of </ins>internet based traffic to the default gateway<ins class="diffchange diffchange-inline">.</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div> </div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">== Breakdown (from the example configuration) ==</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div> </div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">=== defaultrouter ===</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline"><pre></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">defaultrouter="172.22.40.2"</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline"></pre></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">This parameter is the default gateway and is typically used to indicate the IP address of the router that is responsible for internet traffic.  This is used on all network configurations where an internet connection exists.</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div> </div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">It is possible to not use it at all however it is unusual in this day and age to not have or need an internet connection.</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div> </div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">=== static_routes ===</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline"><pre></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">static_routes="jsygsy jsyiom jsycmi"</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline"></pre></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">This parameter is used to list the routes that are needed to connect to other subnets outside the local subnet but not through the default gateway.</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div> </div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">The values within the "quote marks" are textual and would normally be a descriptive name for the static route.  The example above has jsygsy to indicate the static route between Jersey and Guernsey subnets. </ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div> </div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">=== route_name ===</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline"><pre></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">route_jsygsy="-net 172.22.20.0/22 172.22.40.2"</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">route_jsyiom="-net 172.22.60.0/22 172.22.40.2"</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">route_jsycmi="-net 172.22.80.0/22 172.22.40.2"</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline"></pre></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">This parameter is used in conjunction with the static_routes parameter and defines the actual static routes.</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div> </div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">The name following the route_ part is ''free-form'' text and used as a descriptive name for the route being defined.  This name is the part quoted on the 'static_routes=""' parameter</ins>.</div></td></tr>
<!-- diff cache key bsdwiki:diff:version:1.11a:oldid:8786:newid:8787 -->
</table>80.73.220.216