Linux - NetworkingThis 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.
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.
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.
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
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.
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. :-)
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.