LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 04-23-2005, 04:54 AM   #1
Cornholio
Member
 
Registered: Dec 2004
Location: Alemania
Distribution: Slackware 10.0
Posts: 115

Rep: Reputation: 15
2nd NIC?


Hi there!

I installed a second NIC last week.

It works, no problem, ... but...

How can I set it up permanently? By now I have to "ifconfig eth1..." everytime I wanna use it, because "netconfig" only configures my first card.

How, or where, can I add the second card?

Thanks a lot, Sascha
 
Old 04-23-2005, 04:57 AM   #2
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
Just edit /etc/rc.d/rc.inet1.conf, and set correct values for "Config information for eth1"
 
Old 04-25-2005, 10:12 AM   #3
Cornholio
Member
 
Registered: Dec 2004
Location: Alemania
Distribution: Slackware 10.0
Posts: 115

Original Poster
Rep: Reputation: 15
Thanks very much!

I know, I'm late... but thanks thanks thanks.. !!! :-)
 
Old 04-25-2005, 10:17 AM   #4
Astro
Member
 
Registered: Jan 2003
Location: Ballston Lake, NY
Distribution: Slackware, Debian
Posts: 665

Rep: Reputation: 30
personally i like doing this in my rc.local file...

Code:
##Setting eth1 for gigabit with aiwa
# First we set the ip address and misc shitza:
IPADDR="10.0.0.2"      # Internal IP
NETMASK="255.255.255.0"   # Netmask
NETWORK="10.0.0.0"     # Network Address
BROADCAST="10.0.0.255" # Broadcast Address
GATEWAY=""                #Gateway

##Set up the NIC
echo "Configuring eth1 as ${IPADDR}..."
/sbin/ifconfig eth1 ${IPADDR} broadcast ${BROADCAST} netmask ${NETMASK}
 
  


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
Install of 2nd NIC briankb713 Linux - Networking 1 01-18-2005 08:31 AM
2nd NIC in an Ultra 5 plonker Solaris / OpenSolaris 1 04-29-2004 06:26 PM
1st nic regular FTP, 2nd nic SSH Riselong Linux - Distributions 2 02-02-2004 05:13 PM
2nd NIC def1014 Linux - Networking 3 10-23-2002 08:54 AM
2nd Nic Killing Me!!!!! patmurray Linux - Networking 0 02-23-2002 09:59 PM

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

All times are GMT -5. The time now is 05:37 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
Open Source Consulting | Domain Registration