Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
10-18-2005, 03:46 PM
|
#1
|
LQ Newbie
Registered: May 2005
Posts: 20
Rep:
|
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
|
|
|
10-18-2005, 04:17 PM
|
#2
|
Senior Member
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380
Rep:
|
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 04:19 PM.
|
|
|
10-18-2005, 04:31 PM
|
#3
|
LQ Newbie
Registered: May 2005
Posts: 20
Original Poster
Rep:
|
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
|
|
|
10-18-2005, 04:45 PM
|
#4
|
Senior Member
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 11:01 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|