Slackware This 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.
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.
|
 |
01-24-2006, 06:40 AM
|
#1
|
LQ Newbie
Registered: Sep 2005
Posts: 28
Rep:
|
2 nics probles no ping!!!!!
hello slackguys :P
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???
|
|
|
01-24-2006, 08:56 AM
|
#2
|
Member
Registered: Apr 2005
Location: Havant, Hampshire, UK
Distribution: Slamd64, Slackware, PS2Linux
Posts: 465
Rep:
|
I suggest checking the output of /sbin/route . My first guess is that things are not being configured properly and there are no routes through eth1!
- Piete.
|
|
|
01-25-2006, 09:00 AM
|
#3
|
LQ Newbie
Registered: Sep 2005
Posts: 28
Original Poster
Rep:
|
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 0.0.0.0 255.255.255.192 U 0 0 0 eth0
192.168.1.0 0.0.0.0 255.255.255.192 U 0 0 0 eth1
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 192.168.1.254 0.0.0.0 UG 0 0 0 eth0
this is my route -n
|
|
|
01-25-2006, 09:13 AM
|
#4
|
Member
Registered: Apr 2005
Location: Havant, Hampshire, UK
Distribution: Slamd64, Slackware, PS2Linux
Posts: 465
Rep:
|
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 =)
- Piete.
|
|
|
01-25-2006, 10:10 AM
|
#5
|
LQ Newbie
Registered: Sep 2005
Posts: 28
Original Poster
Rep:
|
i tried to make it diferent subnet .... 192.168.1.1 eth0
and 192.168.0.1 eth1 but nothing works...
|
|
|
01-25-2006, 01:22 PM
|
#6
|
Member
Registered: Apr 2005
Location: Havant, Hampshire, UK
Distribution: Slamd64, Slackware, PS2Linux
Posts: 465
Rep:
|
I'd bet my left leg that if you take down
Code:
0.0.0.0 192.168.1.254 0.0.0.0 UG 1 0 0 eth0
and put up
Code:
0.0.0.0 192.168.1.254 0.0.0.0 UG 1 0 0 eth1
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 =)
Sorry I can't help more.
- Piete.
|
|
|
01-25-2006, 06:14 PM
|
#7
|
LQ 5k Club
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,575
|
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"
|
|
|
All times are GMT -5. The time now is 03:43 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
|
|