View previous topic :: View next topic |
Author |
Message |
rrsivernell n00b
Joined: 11 May 2003 Posts: 17
|
Posted: Wed Jun 11, 2003 7:52 pm Post subject: 2 nics in a box |
|
|
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 |
|
|
TimoTye n00b
Joined: 16 May 2003 Posts: 27 Location: Dallas, TX
|
Posted: Wed Jun 11, 2003 8:27 pm Post subject: |
|
|
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 |
|
|
ctford0 l33t
Joined: 25 Oct 2002 Posts: 774 Location: Lexington, KY,USA
|
Posted: Wed Jun 11, 2003 8:27 pm Post subject: |
|
|
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 |
|
|
rrsivernell n00b
Joined: 11 May 2003 Posts: 17
|
Posted: Wed Jun 11, 2003 9:12 pm Post subject: |
|
|
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 |
|
|
|