View previous topic :: View next topic |
Author |
Message |
oldefortran l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
Joined: 28 Feb 2004 Posts: 652
|
Posted: Mon Nov 03, 2008 7:56 pm Post subject: [SOLVED] need help setting up eth1 to lan |
|
|
First I try do this:
/etc/init.d/net.eth1 start
* Please make sure that /etc/conf.d/net has $ifconfig_ set
* (or $iface_ for old-style configuration)
and no eth1. The first question is: where did this net.eth1 script come from? how do I know if I use the correct one? Can I reinstall it? I think I added it 100 years ago but I do not remember.
Second question is: what should it say in /etc/conf.d/net ?
The only non-comment lines I have in that file is these
config_eth0=( "dhcp" )
config_eth1=( "192.168.3.2 netmask 255.255.255.0 broadcast 192.168.3.255" )
and eth0 line is perfect, but I want eth1 to be the interface to a local lan (and serve as dhcpserver) so the other computers can access the internet via eth1 and then on to the net by eth0.
There is also the masquerading part, how do I easiest set that up, in what script should I start the masquerade?
Last edited by oldefortran on Tue Nov 04, 2008 7:16 am; edited 1 time in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
NeddySeagoon Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
![](images/avatars/3946266373f47d606a2db3.jpg)
Joined: 05 Jul 2003 Posts: 54834 Location: 56N 3W
|
Posted: Mon Nov 03, 2008 9:09 pm Post subject: |
|
|
oldefortran,
net.eth1 is a symbolic link to net.lo
net.lo is the real networking script and runs as whatever its called as.
net.eth0 should also be a symlink to net.lo
Your net file looks ok
For masquerading, you need IPTables, this guide may help _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
oldefortran l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
Joined: 28 Feb 2004 Posts: 652
|
Posted: Tue Nov 04, 2008 7:15 am Post subject: |
|
|
Thank you. That solved all problems! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|