Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
03-22-2002, 12:47 PM
|
#1
|
Member
Registered: Mar 2002
Location: Sweden
Distribution: Slackware 10.1
Posts: 103
Rep:
|
??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)
|
|
|
03-22-2002, 01:20 PM
|
#2
|
Member
Registered: Mar 2002
Distribution: Mandrake 8.1
Posts: 386
Rep:
|
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.
|
|
|
03-22-2002, 02:15 PM
|
#3
|
Member
Registered: Feb 2002
Location: Orlando
Distribution: Whatever I feel like at the time I install.
Posts: 284
Rep:
|
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
|
|
|
03-22-2002, 02:20 PM
|
#4
|
Member
Registered: Mar 2002
Location: Sweden
Distribution: Slackware 10.1
Posts: 103
Original Poster
Rep:
|
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:
|
|
|
03-22-2002, 02:23 PM
|
#5
|
Member
Registered: Mar 2002
Location: Sweden
Distribution: Slackware 10.1
Posts: 103
Original Poster
Rep:
|
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
|
|
|
03-22-2002, 02:27 PM
|
#6
|
Member
Registered: Feb 2002
Location: Orlando
Distribution: Whatever I feel like at the time I install.
Posts: 284
Rep:
|
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.
|
|
|
03-22-2002, 03:17 PM
|
#7
|
Member
Registered: Aug 2001
Location: Lansing, Michigan
Distribution: slackware8+
Posts: 472
Rep:
|
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 03:19 PM.
|
|
|
03-25-2002, 05:44 AM
|
#8
|
Member
Registered: Oct 2001
Location: Beverwijk (Holland
Distribution: Red Hat 7.1
Posts: 132
Rep:
|
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 06:25 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|