/[gentoo]/xml/htdocs/doc/en/home-router-howto.xml
Gentoo

Diff of /xml/htdocs/doc/en/home-router-howto.xml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.42 Revision 1.43
1<?xml version='1.0' encoding='UTF-8'?> 1<?xml version='1.0' encoding='UTF-8'?>
2<!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> 2<!DOCTYPE guide SYSTEM "/dtd/guide.dtd">
3<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/home-router-howto.xml,v 1.42 2006/03/17 10:17:04 neysx Exp $ --> 3<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/home-router-howto.xml,v 1.43 2006/03/29 01:30:31 vapier Exp $ -->
4 4
5<guide link="/doc/en/home-router-howto.xml" lang="en"> 5<guide link="/doc/en/home-router-howto.xml" lang="en">
6<title>Home Router Guide</title> 6<title>Home Router Guide</title>
7 7
8<author title="Author"> 8<author title="Author">
15</abstract> 15</abstract>
16 16
17<!-- The content of this document is released into the public domain --> 17<!-- The content of this document is released into the public domain -->
18<license/> 18<license/>
19 19
20<version>1.25</version> 20<version>1.26</version>
21<date>2006-03-17</date> 21<date>2006-03-28</date>
22 22
23<chapter> 23<chapter>
24<title>Introduction</title> 24<title>Introduction</title>
25<section> 25<section>
26<body> 26<body>
245config_eth1=( "dhcp" ) 245config_eth1=( "dhcp" )
246 246
247<comment>Static IP Users:</comment> 247<comment>Static IP Users:</comment>
248# <i>nano /etc/conf.d/net</i> 248# <i>nano /etc/conf.d/net</i>
249<comment>You'll need entries like so:</comment> 249<comment>You'll need entries like so:</comment>
250ifconfig_eth1=( "66.92.78.102 broadcast 66.92.78.255 netmask 255.255.255.0" ) 250config_eth1=( "66.92.78.102 broadcast 66.92.78.255 netmask 255.255.255.0" )
251routes_eth1=( "default gw 66.92.78.1" ) 251routes_eth1=( "default gw 66.92.78.1" )
252# <i>nano /etc/resolv.conf</i> 252# <i>nano /etc/resolv.conf</i>
253<comment>Add one line per DNS server:</comment> 253<comment>Add one line per DNS server:</comment>
254nameserver 123.123.123.123 254nameserver 123.123.123.123
255 255
277</p> 277</p>
278 278
279<pre caption="Setting up eth0"> 279<pre caption="Setting up eth0">
280# <i>nano /etc/conf.d/net</i> 280# <i>nano /etc/conf.d/net</i>
281<comment>Add a line like the following:</comment> 281<comment>Add a line like the following:</comment>
282ifconfig_eth0=( "192.168.0.1 broadcast 192.168.0.255 netmask 255.255.255.0" ) 282config_eth0=( "192.168.0.1 broadcast 192.168.0.255 netmask 255.255.255.0" )
283# <i>rc-update add net.eth0 default</i> 283# <i>rc-update add net.eth0 default</i>
284# <i>/etc/init.d/net.eth0 start</i> 284# <i>/etc/init.d/net.eth0 start</i>
285</pre> 285</pre>
286 286
287</body> 287</body>
323</p> 323</p>
324 324
325<pre caption="Setting up a DHCP server"> 325<pre caption="Setting up a DHCP server">
326# <i>emerge dnsmasq</i> 326# <i>emerge dnsmasq</i>
327# <i>nano /etc/dnsmasq.conf</i> 327# <i>nano /etc/dnsmasq.conf</i>
328<comment>You should need to just add this one line:</comment> 328<comment>Add this line to enable dhcp:</comment>
329dhcp-range=192.168.0.100,192.168.0.250,72h 329dhcp-range=192.168.0.100,192.168.0.250,72h
330<comment>Restrict dnsmasq to just the LAN interface</comment>
331interface=eth0
330 332
331# <i>nano /etc/conf.d/dnsmasq</i>
332<comment>Add "-i eth0" to DNSMASQ_OPTS</comment>
333# <i>rc-update add dnsmasq default</i> 333# <i>rc-update add dnsmasq default</i>
334# <i>/etc/init.d/dnsmasq start</i> 334# <i>/etc/init.d/dnsmasq start</i>
335</pre> 335</pre>
336 336
337<p> 337<p>

Legend:
Removed from v.1.42  
changed lines
  Added in v.1.43

  ViewVC Help
Powered by ViewVC 1.1.20