Gentoo Archives: gentoo-doc-cvs

From: vapier <vapier@×××××××××××.org>
To: gentoo-doc-cvs@l.g.o
Subject: [gentoo-doc-cvs] cvs commit: home-router-howto.xml
Date: Mon, 12 Dec 2005 04:36:30
Message-Id: 200512120436.jBC4aMDo014414@robin.gentoo.org
1 vapier 05/12/12 04:36:21
2
3 Modified: xml/htdocs/doc/en home-router-howto.xml
4 Log:
5 add some notes on adding more LANs
6
7 Revision Changes Path
8 1.38 +42 -3 xml/htdocs/doc/en/home-router-howto.xml
9
10 file : http://www.gentoo.org/cgi-bin/viewcvs.cgi/xml/htdocs/doc/en/home-router-howto.xml?rev=1.38&content-type=text/x-cvsweb-markup&cvsroot=gentoo
11 plain: http://www.gentoo.org/cgi-bin/viewcvs.cgi/xml/htdocs/doc/en/home-router-howto.xml?rev=1.38&content-type=text/plain&cvsroot=gentoo
12 diff : http://www.gentoo.org/cgi-bin/viewcvs.cgi/xml/htdocs/doc/en/home-router-howto.xml.diff?r1=1.37&r2=1.38&cvsroot=gentoo
13
14 Index: home-router-howto.xml
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/en/home-router-howto.xml,v
17 retrieving revision 1.37
18 retrieving revision 1.38
19 diff -u -r1.37 -r1.38
20 --- home-router-howto.xml 5 Dec 2005 13:34:49 -0000 1.37
21 +++ home-router-howto.xml 12 Dec 2005 04:36:21 -0000 1.38
22 @@ -1,6 +1,6 @@
23 <?xml version='1.0' encoding='UTF-8'?>
24 <!DOCTYPE guide SYSTEM "/dtd/guide.dtd">
25 -<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/home-router-howto.xml,v 1.37 2005/12/05 13:34:49 neysx Exp $ -->
26 +<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/home-router-howto.xml,v 1.38 2005/12/12 04:36:21 vapier Exp $ -->
27
28 <guide link="/doc/en/home-router-howto.xml" lang="en">
29 <title>Home Router Guide</title>
30 @@ -17,8 +17,8 @@
31 <!-- The content of this document is released into the public domain -->
32 <license/>
33
34 -<version>1.22</version>
35 -<date>2005-11-04</date>
36 +<version>1.23</version>
37 +<date>2005-12-11</date>
38
39 <chapter>
40 <title>Introduction</title>
41 @@ -872,6 +872,45 @@
42 </body>
43 </section>
44
45 +<section>
46 +<title>Connect Another LAN (or two or three or ...)</title>
47 +<body>
48 +
49 +<p>
50 +Sometimes you have need of connecting the router to another LAN. Maybe you
51 +want to hook up a group of friends temporarily, or you're a neat freak and
52 +want to section off different groups of computers, or you're just really
53 +really bored. Whatever the reasons, extending the router to other LAN
54 +networks should be pretty straightforward. In the following examples, I will
55 +assume that this new network is connected via a third ethernet card, namely
56 +<c>eth2</c>.
57 +</p>
58 +
59 +<p>
60 +First you need to configure the interface. Just take the instructions in the
61 +<uri link="#doc_chap4_pre1">4.1 code listing</uri> and replace <c>eth0</c>
62 +with <c>eth2</c> and <c>192.168.0</c> with <c>192.168.1</c>.
63 +</p>
64 +
65 +<p>
66 +Then you need to tweak dnsmasq to service the new interface. Just edit the
67 +<path>/etc/conf.d/dnsmasq</path> file again and append <c>-i eth2</c> to
68 +DNSMASQ_OPTS; using -i multiple times is OK. Then edit
69 +<path>/etc/dnsmasq.conf</path> and add another line like the dhcp-range line
70 +in the <uri link="#doc_chap5_pre1">5.1 code listing</uri>, replacing
71 +<c>192.168.0</c> with <c>192.168.1</c>. Having multiple dhcp-range lines is
72 +OK too.
73 +</p>
74 +
75 +<p>
76 +Finally, see the rules in the <uri link="#doc_chap5_pre2">5.2 code
77 +listing</uri> and duplicate the rules that have <c>-i ${LAN}</c> in them. You
78 +may want to create another variable, say <c>LAN2</c>, to make things easier.
79 +</p>
80 +
81 +</body>
82 +</section>
83 +
84 </chapter>
85
86 <chapter>
87
88
89
90 --
91 gentoo-doc-cvs@g.o mailing list