LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-22-2002, 11:47 AM   #1
eXor
Member
 
Registered: Mar 2002
Location: Sweden
Distribution: Slackware 10.1
Posts: 103

Rep: Reputation: 15
Question ??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 .

/Ludvig (Sweden)

---------
Slackware 8.0
eth0 rtl8139
eth1 rtl8139 (It's an D-link DFE-538TX)
 
Old 03-22-2002, 12:20 PM   #2
Sixpax
Member
 
Registered: Mar 2002
Distribution: Mandrake 8.1
Posts: 386

Rep: Reputation: 31
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.
 
Old 03-22-2002, 01:15 PM   #3
bbenz3
Member
 
Registered: Feb 2002
Location: Orlando
Distribution: Whatever I feel like at the time I install.
Posts: 284

Rep: Reputation: 30
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
 
Old 03-22-2002, 01:20 PM   #4
eXor
Member
 
Registered: Mar 2002
Location: Sweden
Distribution: Slackware 10.1
Posts: 103

Original Poster
Rep: Reputation: 15
Unhappy 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:
 
Old 03-22-2002, 01:23 PM   #5
eXor
Member
 
Registered: Mar 2002
Location: Sweden
Distribution: Slackware 10.1
Posts: 103

Original Poster
Rep: Reputation: 15
Exclamation 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
 
Old 03-22-2002, 01:27 PM   #6
bbenz3
Member
 
Registered: Feb 2002
Location: Orlando
Distribution: Whatever I feel like at the time I install.
Posts: 284

Rep: Reputation: 30
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.
 
Old 03-22-2002, 02:17 PM   #7
Syncrm
Member
 
Registered: Aug 2001
Location: Lansing, Michigan
Distribution: slackware8+
Posts: 472

Rep: Reputation: 30
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. :-)

Last edited by Syncrm; 03-22-2002 at 02:19 PM.
 
Old 03-25-2002, 04:44 AM   #8
Sylhouette
Member
 
Registered: Oct 2001
Location: Beverwijk (Holland
Distribution: Red Hat 7.1
Posts: 132

Rep: Reputation: 15
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.
 
  


Reply



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
cannot activate eth1 using ifup or using ifcfg-eth1 akay Linux - Hardware 10 12-16-2010 05:10 AM
Routing between eth1 and eth1:1 cli_man Linux - Networking 3 04-05-2004 11:54 AM
eth1 added, mysql connections FROM this machine are from eth1. Need bound to eth0??? kreese Linux - Networking 9 03-31-2004 12:12 PM
Kernel 2.4.22 finds eth0 and eth1 but 2.6.0 does not find eth1 coollink Linux - Networking 3 01-13-2004 07:32 PM
??eth1 on Slackware?? eXor Linux - Newbie 1 03-22-2002 12:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:44 PM.

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