From b38d7a8865cac1299fed9505c5ea1f29ea5c55c0 Mon Sep 17 00:00:00 2001 From: Marc Fonvieille Date: Fri, 9 Jan 2004 16:47:13 +0000 Subject: [PATCH] Show how to define a default route via /etc/rc.conf and using route(8). --- .../handbook/advanced-networking/chapter.sgml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/en_US.ISO8859-1/books/handbook/advanced-networking/chapter.sgml b/en_US.ISO8859-1/books/handbook/advanced-networking/chapter.sgml index 0152f8d244..448f0caf5c 100644 --- a/en_US.ISO8859-1/books/handbook/advanced-networking/chapter.sgml +++ b/en_US.ISO8859-1/books/handbook/advanced-networking/chapter.sgml @@ -341,7 +341,7 @@ host2.example.com link#1 UC 0 0 machine, so there is no need for the intermediate step of sending traffic to the ISP server. - As a final note, it is common to use the address It is common to use the address X.X.X.1 as the gateway address for your local network. So (using the same example), if your local class-C address space was 10.20.30 and your ISP was @@ -368,6 +368,21 @@ host2.example.com link#1 UC 0 0 + + You can easily define the default route via the + /etc/rc.conf file. In our example, on the + Local2 machine, we added the following line + in /etc/rc.conf: + + defaultrouter="10.20.30.1" + + It is also possible to do it directly from the command + line with the &man.route.8; command: + + &prompt.root; route add default 10.20.30.1 + + For more informations on manual manipulation of network + routing tables, consult &man.route.8; manual page.