| 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.38 2005/12/12 04:36:21 vapier Exp $ --> |
3 | <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/home-router-howto.xml,v 1.39 2005/12/21 01:09:14 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"> |
| … | |
… | |
| 197 | lying so I hope you have it now! Load up <path>/etc/ppp/pppoe.conf</path> in |
197 | lying so I hope you have it now! Load up <path>/etc/ppp/pppoe.conf</path> in |
| 198 | your favorite editor and set it up. |
198 | your favorite editor and set it up. |
| 199 | </p> |
199 | </p> |
| 200 | |
200 | |
| 201 | <note> |
201 | <note> |
| 202 | In order for the following net.eth1 settings to work, you must have |
202 | In order for the following net settings to work, you must have |
| 203 | baselayout-1.10.1 or later installed on your system. |
203 | baselayout-1.11.14 or later installed on your system. |
| 204 | </note> |
204 | </note> |
| 205 | |
205 | |
| 206 | <pre caption="Setting up eth1"> |
206 | <pre caption="Setting up eth1"> |
| 207 | <comment>(Replace 'vla9h924' with your username and 'password' with your password)</comment> |
207 | <comment>(Replace 'vla9h924' with your username and 'password' with your password)</comment> |
| 208 | |
208 | |
| 209 | # <i>nano /etc/ppp/pppoe.conf</i> |
|
|
| 210 | <comment># Ethernet card connected to ADSL modem</comment> |
|
|
| 211 | ETH=eth1 |
|
|
| 212 | <comment># ADSL user name.</comment> |
|
|
| 213 | USER=vla9h924 |
|
|
| 214 | # <i>nano /etc/ppp/pap-secrets</i> |
209 | # <i>nano /etc/ppp/pap-secrets</i> |
| 215 | <comment># client server secret</comment> |
210 | <comment># client server secret</comment> |
| 216 | "vla9h924" * "password" |
211 | "vla9h924" * "password" |
| 217 | # <i>nano /etc/conf.d/net</i> |
212 | # <i>nano /etc/conf.d/net</i> |
| 218 | <comment>Add an entry for config_eth1 and set it to adsl:</comment> |
213 | <comment>Tell baselayout to use adsl for your eth1:</comment> |
| 219 | config_eth1=( "adsl" ) |
214 | config_eth1=( "adsl" ) |
|
|
215 | user_eth1=( "vla9h924" ) |
| 220 | # <i>ln -s net.lo /etc/init.d/net.eth1</i> |
216 | # <i>ln -s net.lo /etc/init.d/net.eth1</i> |
| 221 | # <i>rc-update add net.eth1 default</i> |
217 | # <i>rc-update add net.eth1 default</i> |
| 222 | # <i>/etc/init.d/net.eth1 start</i> |
218 | # <i>/etc/init.d/net.eth1 start</i> |
| 223 | </pre> |
219 | </pre> |
| 224 | |
220 | |
| 225 | <warn> |
221 | <warn> |
| 226 | When the DSL interface comes up, it will create ppp0. Although your NIC |
222 | When the DSL interface comes up, it will create ppp0. Although your NIC is |
| 227 | is called eth1, the IP is actually bound to ppp0. From now on, when you |
223 | called eth1, the IP is actually bound to ppp0. From now on, when you see |
| 228 | see examples that utilize 'eth1', substitute with 'ppp0'. |
224 | examples that utilize 'eth1', substitute with 'ppp0'. |
| 229 | </warn> |
225 | </warn> |
| 230 | |
226 | |
| 231 | </body> |
227 | </body> |
| 232 | </section> |
228 | </section> |
| 233 | |
229 | |