Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] need help setting up eth1 to lan
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
oldefortran
l33t
l33t


Joined: 28 Feb 2004
Posts: 652

PostPosted: Mon Nov 03, 2008 7:56 pm    Post subject: [SOLVED] need help setting up eth1 to lan Reply with quote

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
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54834
Location: 56N 3W

PostPosted: Mon Nov 03, 2008 9:09 pm    Post subject: Reply with quote

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
View user's profile Send private message
oldefortran
l33t
l33t


Joined: 28 Feb 2004
Posts: 652

PostPosted: Tue Nov 04, 2008 7:15 am    Post subject: Reply with quote

Thank you. That solved all problems!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum