Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
2 nics in a box
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
rrsivernell
n00b
n00b


Joined: 11 May 2003
Posts: 17

PostPosted: Wed Jun 11, 2003 7:52 pm    Post subject: 2 nics in a box Reply with quote

Hi all, I am building a machine as a router / gateway / webserver. I am currently in the build process now. I have eth0 as connect to internet as it should be, when I get to the final part I will copy net.eth0 to net.ethx, I believe that is the correct form. My question is when I install nic #2 in and set it up for my intranet machines, what do I copy net.eth1 to net.eth?.

Rick
Back to top
View user's profile Send private message
TimoTye
n00b
n00b


Joined: 16 May 2003
Posts: 27
Location: Dallas, TX

PostPosted: Wed Jun 11, 2003 8:27 pm    Post subject: Reply with quote

What I think you are asking is: what will the device name of the new nic be?

The answer is (I beleive) that it depends on what slot you place the nic card into. The os sees the first card as eth0 the second is finds as eth1 and so on...

So when you put the second card in it may become eth0 and the first card you had in already would be reassigned to eth1. In this case just swap the ethernet cables.
Back to top
View user's profile Send private message
ctford0
l33t
l33t


Joined: 25 Oct 2002
Posts: 774
Location: Lexington, KY,USA

PostPosted: Wed Jun 11, 2003 8:27 pm    Post subject: Reply with quote

The only reason you have net.eth0 is to provide an easy way to bring up dhcp and to activate your network card. Once you add the second nic, you will have a device called eth1, representing your second nic. The net.ethx rc-scripts are written in such a way to allow you to copy them to say, for your case, you would need to create net.eth1 for your nic eth1. You also have to edit /etc/conf.d/net just to make sure your internal nic is assigned the correct ip.

Unless you load your network drivers as modules, then you will only know which ethx corresponds to which card after you try to bring up the device.

Chris
Back to top
View user's profile Send private message
rrsivernell
n00b
n00b


Joined: 11 May 2003
Posts: 17

PostPosted: Wed Jun 11, 2003 9:12 pm    Post subject: Reply with quote

many thanks for the info and advice. I had temporaly forgotten /etc/net. I will modify it before the real start of the system.


Rick
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