Click to See Complete Forum and Search --> : Slackware - 2nd Network Card
Evil Jeff
07-06-2001, 01:05 AM
I have a network card set up in Slackware (current - just before 8.0, still 7.1 range), having used netconfig. I have a second network card. Does anyone know how to set up a second card (eth1, the first is eth0) in slackware? I don't have ifup, so I can't automatically configure it. And I don't know how to read code so I can't check the ifup scripts' code. I haven't been able to find anything yet so I can't even rtfm. Anyone have any advice?
Evil Jeff
www.hellincorporated.com (http://www.hellincorporated.com)
armando86
07-06-2001, 01:26 AM
Does eth1 use a static IP or DHCP? For a static IP just type ifconfig eth1 YOURIP. If eth1 usese DHCP then use the dhcpcd command (check the man page for details). Then put whatever command you used in /etc/rc.d/rc.local so that it takes place every time you boot up.
Assuming that the driver is installed for the card you can issue:
ifconfig -i eth1 (ip.you.want.it.to.be) up
and the command will set up the rest, UNLESS as above it is an external interface (goes out to the NET), rather than an internal (LAN) connection.
Evil Jeff
07-06-2001, 01:28 PM
Thanks. It's an internal nic, but it has an outside connection. I'm on a dhcp network, so I'll just rtfm for dhcpd. Thanks for the pointers.
Evil Jeff
www.hellincorporated.com (http://www.hellincorporated.com)
jbstew32
07-06-2001, 02:09 PM
reading the fsking manual sucks bad...but when u do, you know a whole lot more :)
the pain is worth it...
FYI -
The network script for slackware is /etc/rc.d/rc.inet1 and this file takes the parms for ifconfig in setting up your network. If you read the file over I'm sure you can see how to add a second NIC to the file, and there are is also a bit about DHCP there as well.
Strike
07-06-2001, 10:38 PM
Originally posted by Evil Jeff:
<STRONG>Thanks. It's an internal nic, but it has an outside connection. I'm on a dhcp network, so I'll just rtfm for dhcpd. Thanks for the pointers.
Evil Jeff
www.hellincorporated.com (http://www.hellincorporated.com)</STRONG>
Careful there are two apps that sound very similar that perform opposite functions - dhcpd (DHCP Daemon, issues addresses to clients on a network), and dhcpcd (DHCP Client Daemon, my DHCP client of choice with dhclient following second). So, make sure you grab the client (dhcpcd) and not the server (dhcpd)
Evil Jeff
07-07-2001, 02:28 AM
Thanks for the warning, Strike. I'll be careful on that :). I'll check the /etc/rc.d/ scripts and see if I can't figure it out from there.
Wow, from newbie to Slackware and manual eth1 setup (without the ease of ifup) in less than a year. All hail the command line power of slackware! <zombie eyes> Join us...</zombie eyes>
Evil Jeff
www.hellincorporated.com (http://www.hellincorporated.com)