Differential D37322 Diff 114357 documentation/content/en/books/handbook/advanced-networking/_index.adoc
Changeset View
Changeset View
Standalone View
Standalone View
documentation/content/en/books/handbook/advanced-networking/_index.adoc
Show First 20 Lines • Show All 223 Lines • ▼ Show 20 Lines | |||||
The routing table of a router needs additional routes so it knows how to reach other networks. | The routing table of a router needs additional routes so it knows how to reach other networks. | ||||
Routes can be either added manually using static routes or routes can be automatically learned using a routing protocol. | Routes can be either added manually using static routes or routes can be automatically learned using a routing protocol. | ||||
Static routes are appropriate for small networks and this section describes how to add a static routing entry for a small network. | Static routes are appropriate for small networks and this section describes how to add a static routing entry for a small network. | ||||
[NOTE] | [NOTE] | ||||
==== | ==== | ||||
For large networks, static routes quickly become unscalable. | For large networks, static routes quickly become unscalable. | ||||
FreeBSD comes with the standard BSD routing daemon man:routed[8], which provides the routing protocols RIP, versions 1 and 2, and IRDP. | FreeBSD comes with the standard BSD routing daemon man:routed[8], which provides the routing protocols RIP, versions 1 and 2, and IRDP. | ||||
Support for the BGP and OSPF routing protocols can be installed using the package:net/zebra[] package or port. | Support for the BGP and OSPF routing protocols can be installed using the package:net/frr7[] package or port. | ||||
==== | ==== | ||||
Consider the following network: | Consider the following network: | ||||
image::static-routes.png[] | image::static-routes.png[] | ||||
In this scenario, `RouterA` is a FreeBSD machine that is acting as a router to the rest of the Internet. | In this scenario, `RouterA` is a FreeBSD machine that is acting as a router to the rest of the Internet. | ||||
It has a default route set to `10.0.0.1` which allows it to connect with the outside world. | It has a default route set to `10.0.0.1` which allows it to connect with the outside world. | ||||
▲ Show 20 Lines • Show All 2,650 Lines • ▼ Show 20 Lines | |||||
.... | .... | ||||
=== Connecting to a Provider | === Connecting to a Provider | ||||
In order to connect to other IPv6 networks, one must have a provider or a tunnel that supports IPv6: | In order to connect to other IPv6 networks, one must have a provider or a tunnel that supports IPv6: | ||||
* Contact an Internet Service Provider to see if they offer IPv6. | * Contact an Internet Service Provider to see if they offer IPv6. | ||||
* http://www.tunnelbroker.net[Hurricane Electric] offers tunnels with end-points all around the globe. | * http://www.tunnelbroker.net[Hurricane Electric] offers tunnels with end-points all around the globe. | ||||
[NOTE] | |||||
==== | |||||
Install the package:net/freenet6[] package or port for a dial-up connection. | |||||
==== | |||||
This section demonstrates how to take the directions from a tunnel provider and convert them into [.filename]#/etc/rc.conf# settings that will persist through reboots. | This section demonstrates how to take the directions from a tunnel provider and convert them into [.filename]#/etc/rc.conf# settings that will persist through reboots. | ||||
The first [.filename]#/etc/rc.conf# entry creates the generic tunneling interface [.filename]#gif0#: | The first [.filename]#/etc/rc.conf# entry creates the generic tunneling interface [.filename]#gif0#: | ||||
[.programlisting] | [.programlisting] | ||||
.... | .... | ||||
cloned_interfaces="gif0" | cloned_interfaces="gif0" | ||||
▲ Show 20 Lines • Show All 328 Lines • Show Last 20 Lines |