vapier 05/12/12 04:36:21 Modified: xml/htdocs/doc/en home-router-howto.xml Log: add some notes on adding more LANs
Revision Changes Path 1.38 +42 -3 xml/htdocs/doc/en/home-router-howto.xml 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 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 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 Index: home-router-howto.xml =================================================================== RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/en/home-router-howto.xml,v retrieving revision 1.37 retrieving revision 1.38 diff -u -r1.37 -r1.38 --- home-router-howto.xml 5 Dec 2005 13:34:49 -0000 1.37 +++ home-router-howto.xml 12 Dec 2005 04:36:21 -0000 1.38 @@ -1,6 +1,6 @@ <?xml version='1.0' encoding='UTF-8'?> <!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> -<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/home-router-howto.xml,v 1.37 2005/12/05 13:34:49 neysx Exp $ --> +<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/home-router-howto.xml,v 1.38 2005/12/12 04:36:21 vapier Exp $ --> <guide link="/doc/en/home-router-howto.xml" lang="en"> <title>Home Router Guide</title> @@ -17,8 +17,8 @@ <!-- The content of this document is released into the public domain --> <license/> -<version>1.22</version> -<date>2005-11-04</date> +<version>1.23</version> +<date>2005-12-11</date> <chapter> <title>Introduction</title> @@ -872,6 +872,45 @@ </body> </section> +<section> +<title>Connect Another LAN (or two or three or ...)</title> +<body> + +<p> +Sometimes you have need of connecting the router to another LAN. Maybe you +want to hook up a group of friends temporarily, or you're a neat freak and +want to section off different groups of computers, or you're just really +really bored. Whatever the reasons, extending the router to other LAN +networks should be pretty straightforward. In the following examples, I will +assume that this new network is connected via a third ethernet card, namely +<c>eth2</c>. +</p> + +<p> +First you need to configure the interface. Just take the instructions in the +<uri link="#doc_chap4_pre1">4.1 code listing</uri> and replace <c>eth0</c> +with <c>eth2</c> and <c>192.168.0</c> with <c>192.168.1</c>. +</p> + +<p> +Then you need to tweak dnsmasq to service the new interface. Just edit the +<path>/etc/conf.d/dnsmasq</path> file again and append <c>-i eth2</c> to +DNSMASQ_OPTS; using -i multiple times is OK. Then edit +<path>/etc/dnsmasq.conf</path> and add another line like the dhcp-range line +in the <uri link="#doc_chap5_pre1">5.1 code listing</uri>, replacing +<c>192.168.0</c> with <c>192.168.1</c>. Having multiple dhcp-range lines is +OK too. +</p> + +<p> +Finally, see the rules in the <uri link="#doc_chap5_pre2">5.2 code +listing</uri> and duplicate the rules that have <c>-i ${LAN}</c> in them. You +may want to create another variable, say <c>LAN2</c>, to make things easier. +</p> + +</body> +</section> + </chapter> <chapter> -- [email protected] mailing list
