LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-31-2004, 10:35 PM   #1
ferreter
Member
 
Registered: Oct 2002
Location: USA, IL
Distribution: Debian/Gentoo/Slack
Posts: 215

Rep: Reputation: 30
adding a second NIC


What is the best way to add a second nic in my Slack box? I've looked at /etc/rc.d/rc.inet1 but it only seemed to accomodate one nic entry.
 
Old 11-01-2004, 02:02 AM   #2
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 51
Try /etc/rc.d/rc.inet1.conf
 
Old 11-01-2004, 02:07 AM   #3
tlowk
Member
 
Registered: Nov 2003
Location: Belgium
Distribution: Slackware
Posts: 184

Rep: Reputation: 26
I think from version 9 or 10 there is a config file /etc/rc.d/rc.inet1.conf

i case you don't have this file I suggest you just modify the
/etc/rc.d/rc.inet1.conf

you copy the part with variables (put them just below the original so
all config stuff is on the top part of that file)

IPADDR
NETMASK
USE_DHCP
DHCP_HOSTNAME
but not the GATEWAY (no reason for this)

rename the copied variables to IPADDR2 (just add a 2 to all of them)

and the part that starts with
if [ "$USE_DHCP" = "yes" ];
..
else
..
fi
and ends with the

modify in this copy also the variable names (adding a 2 and rename eth0 to eth1)



also you will need to compile the driver in your kernel or load the module for the
second card on the same moment as the other card (eg /etc/rc.d/rc.netdevice)

Regards

Tlowk
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Adding a new NIC on CentOS 3.4 Diesel_Fuel Linux - Networking 1 10-28-2005 04:26 PM
Adding different gateway to the second NIC jomy Linux - Networking 3 12-25-2004 02:36 AM
Adding a nic slowly Slackware 3 12-23-2003 03:36 AM
Problem adding a third NIC in Redhat 9.0 althalas Linux - Networking 10 06-25-2003 08:32 PM
adding a NIC to RH Ver8 Melo Linux - Networking 3 06-02-2003 09:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:06 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration