LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-18-2005, 02:46 PM   #1
kennmurrah
LQ Newbie
 
Registered: May 2005
Posts: 20

Rep: Reputation: 0
need help in telling Debian about second nic


Greetings.

When I installed Debian Sarge, the installer recognized two NICs and asked which one I wanted to use for the installation ... Now that I've completed the install, how do I tell it about the second NIC ?

Thanks

Kenn
 
Old 10-18-2005, 03:17 PM   #2
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
I presume that it (eth1) is going to be used to communicate with other systems on the lan. It will need to be on a different subnet to eth0. The next thing is that you will have to decide whether it is going be a dhcp client or have a static address. The configuration is conatined in /etc/network/interfaces and this should be edited accordingly.
If you are going to have it as a dhcp client then add the following to the interfaces file;

auto eth1
iface eth1 inet dhcp

If you are going to use a static address then add;

auto eth1
iface eth1 inet static
address <ip_address>
netmask <XXX.XXX.XXX.XXX>

Having edited and saved the file from a root console do /etc/init.d/networking restart to implement the changes.

Last edited by TigerOC; 10-18-2005 at 03:19 PM.
 
Old 10-18-2005, 03:31 PM   #3
kennmurrah
LQ Newbie
 
Registered: May 2005
Posts: 20

Original Poster
Rep: Reputation: 0
Hmmmm .... maybe I'm trying to make this harder than it is :-)

I knew everything that you just told me (thanks for refreshing my memory, though), but I assumed that I would have to configure the hardware as well. From what you've told me, simply editing the interfaces file should solve my problem.

Thanks so much!

kenn
 
Old 10-18-2005, 03:45 PM   #4
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
Quote:
Originally posted by kennmurrah
... but I assumed that I would have to configure the hardware as well. From what you've told me, simply editing the interfaces file should solve my problem.

Check /var/log/dmesg to see if the second card has been picked up. If it has it should tell you the details of the card type and the speed. If this is the case then merely setting the address as above will get the network working. If it's not listed then you'll have to install the driver.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Wireless nic - Debian ElmPie Linux - Wireless Networking 7 08-02-2004 05:21 PM
debian keeps forgetting my NIC chrull Linux - Hardware 0 04-22-2004 12:31 PM
what is this error telling me? cadkins Linux - Newbie 1 03-18-2004 11:53 PM
Debian and NIC Jata Linux - Hardware 0 05-24-2003 12:22 PM
how do i setup my nic in debian? [cacheflow] Linux - Networking 0 07-02-2002 11:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration