LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   ??eth1 on Slackware?? (https://www.linuxquestions.org/questions/linux-networking-3/eth1-on-slackware-16825/)

eXor 03-22-2002 11:47 AM

??eth1 on Slackware??
 
Hello!

I have slackware 8 installed. And my eth0 card works perfectly but I allso wan't to install eth1 so I can have a network.

How do I install eth1?
And how do I make it start every time I boot?

I'm an absolutly :newbie: .

/Ludvig (Sweden)

---------
Slackware 8.0
eth0 rtl8139
eth1 rtl8139 (It's an D-link DFE-538TX)

Sixpax 03-22-2002 12:20 PM

There's probably a GUI utility that will let you do this.

I'm not familiar with Slackware, but in RH/MDK there is a file for each NIC in /etc/sysconfig/network-scripts labeled ifcfg-eth0, ifcfg-eth1, etc. Inside those files are the necessary information for the adapter (device, ip addr, netmask, etc). You might look on your system to see if you have something similar, then just copy the eth0 file to eth1 and make the necessary changes.

bbenz3 03-22-2002 01:15 PM

The other part to getting it to startup on boot is you need to set the alias for it. In RH there is a file called /etc/modules.conf where you can put aliases. I think it may also be called /etc/conf.modules in some distros. You would need to add the following line:
alias eth1 name_of_driver

ex) mine looks like this
.
.
.
alias eth0 3c515 --> my card is a 3com 515 card and uses the 3c515.o driver
alias eth1 3c509
alias eth2 3c509

eXor 03-22-2002 01:20 PM

Thanks...but nothing helps!!
 
Thanks for your answers but it dosen't help. I have written

alias eth0 rtl8139
alias eth1 rtl8139

because both of them is realtek...
But it still dosen't work.

:smash:

eXor 03-22-2002 01:23 PM

Allso!!!
 
Full /etc/modules.conf

alias net-pf-4 off #we won't use PF IPX
alias net-pf-5 off #we won't use PF AppelTalk

alias eth0 rtl8319
alias eth1 rtl8319



-------

But I dosen't start att al. How do I start a modul for eth1? How can I start it?

/Ludvig

bbenz3 03-22-2002 01:27 PM

You have to find the config file like the other guy said as well. You can try now that you have the alias for to simply type "ifconfig eth1 up" and then type "ifconfig" to see if it turned itself on or not. You can also try running "setup" I know it is on RH but don't know about slack. Run all of these commands from the command line.

Syncrm 03-22-2002 02:17 PM

ok, what your problem is is that redhat and most other linux distros treat network initilization differently than slackware. here's how you'll wanna add eth1 to your system:

in your network initilization script - which is /etc/rc.d/rc.inet1 - you'll want to duplicate the section in which it loads eth0 (which is pretty much everything after your loopback device).

i modified my rc.inet1 script a little in order to have it make more sense to me. i removed all of the eth0 init lines from that file and moved them to a separate file called "rc.eth0" (which i created). then i copied rc.eth0 to rc.eth1 and modified any mention of that file so that instead of "eth0" it read "eth1". then i changed my network settings according to what i wanted eth1 to be configured as. finally, you'll want to specify the device name, so add the line:

DEVICE="eth1"

to the top of your config variables (IPADDRESS, GATEWAY, etc).

then in rc.inet1 where the eth0 lines used to be, i simply add the following:

/etc/rc.d/rc.eth0
/etc/rc.d/rc.eth1

of course, you could always skip the new file process and simply duplicate the eth0 config section to reflect eth1, i just like the new files for the reason of clarity.

after you've done this, reinitilize your network by typing:

/etc/rc.d/rc.inet1

and you should see eth1 configured and ready to roll! hope this helps. :-)

Sylhouette 03-25-2002 04:44 AM

You can also edit the file netconfig has made

I do not know exactly which one it is (i am not using slack anymore for quiete a while now)

It is in /etc/rc.d i thought it was called rc.inet1 or something like that

Find the line /sbin/ifconfig eth0 $IPADDRES or somthing like this

Then insert a new line below that line and start the same:
/sbin/ifconfig eth1 ipadress=192.168.0.10:BROADCAST=192.168.0.255 and so on if youwant to know it exactly i will reinstall Slack and then look for the file and the syntax

Good luck.


All times are GMT -5. The time now is 07:17 AM.