SlackwareThis Forum is for the discussion of Slackware Linux.
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.
i have 2 nics on my slak 10.2 and its running only samba server
eth0: 192.168.1.1
eth1: 192.168.1.2
i have both nics with cables and they gone to my switch,eth0 is 1GB
i can ping 192.168.1.1 and 192.168.1.2.if i unplug the cable from eth0 i cant ping both ip... that means that the packets requests for eth1 pass throughout eth0!!!!!!
can anyone help me plz!!!
PS : i compiled my shelf kernel 2.6.15.1 maybe its something wrong in my kernel???
I'm afraid I have just the one NIC, but, I have the following:
Code:
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 192.168.0.1 0.0.0.0 UG 1 0 0 eth0
You should try adding a gateway route to eth1. Just rummaging from the command line you should be able to add it by:
Code:
route add default gw 192.168.1.254 eth1
Have a read of the man pages and try `route add` for more information on how to make it work. I don't know why the startup scripts don't bring up a second route, but I suspect there was never any intention of using two cables to go to the same place =)
You'd be routing everything through eth1, but, not having 2 nics I can't help you any further. I think you will have to do some more reading on using 2 nics and respecifying what exactly it is you want to do with them. You may need an extra program if you want to do traffic shaping.
Try getting a clearer idea of what you want to accomplish by putting both NICs in the same place and head over to the network forum, or perhaps a kind network guru will help you out from here =)
I have Samba servers running multiple NICs.
I suggest that you have one subnet per NIC.
In your /etc/rc.d/rc.inet1.conf
# Config information for eth0:
IPADDR[0]="192.168.1.1"
NETMASK[0]="255.255.255.192"
...
# Config information for eth1:
IPADDR[1]="192.168.2.1"
NETMASK[1]="255.255.255.192"
# You will probably also want to set a default gateway
# so that you can have internet access.
# Default gateway IP address:
GATEWAY="192.168.1.1"
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.