LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-24-2006, 06:40 AM   #1
xrtc
LQ Newbie
 
Registered: Sep 2005
Posts: 28

Rep: Reputation: 15
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???
 
Old 01-24-2006, 08:56 AM   #2
piete
Member
 
Registered: Apr 2005
Location: Havant, Hampshire, UK
Distribution: Slamd64, Slackware, PS2Linux
Posts: 465

Rep: Reputation: 44
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.
 
Old 01-25-2006, 09:00 AM   #3
xrtc
LQ Newbie
 
Registered: Sep 2005
Posts: 28

Original Poster
Rep: Reputation: 15
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
 
Old 01-25-2006, 09:13 AM   #4
piete
Member
 
Registered: Apr 2005
Location: Havant, Hampshire, UK
Distribution: Slamd64, Slackware, PS2Linux
Posts: 465

Rep: Reputation: 44
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.
 
Old 01-25-2006, 10:10 AM   #5
xrtc
LQ Newbie
 
Registered: Sep 2005
Posts: 28

Original Poster
Rep: Reputation: 15
i tried to make it diferent subnet .... 192.168.1.1 eth0
and 192.168.0.1 eth1 but nothing works...
 
Old 01-25-2006, 01:22 PM   #6
piete
Member
 
Registered: Apr 2005
Location: Havant, Hampshire, UK
Distribution: Slamd64, Slackware, PS2Linux
Posts: 465

Rep: Reputation: 44
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.
 
Old 01-25-2006, 06:14 PM   #7
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,437

Rep: Reputation: 2783Reputation: 2783Reputation: 2783Reputation: 2783Reputation: 2783Reputation: 2783Reputation: 2783Reputation: 2783Reputation: 2783Reputation: 2783Reputation: 2783
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"
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
probles with gcc 3.2.2 dogbird Linux - Software 1 12-13-2005 02:36 PM
Two NICs card, but only can ping to eth1 myohtutoo Linux - Newbie 2 04-05-2004 12:23 PM
main menu probles! gurra59 Linux - Newbie 7 09-11-2003 02:01 AM
Multiple NICs Ping problem xblade Linux - Networking 3 07-01-2003 08:10 PM
network printer probles linuxlah Linux - General 1 08-02-2002 12:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:45 AM.

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