LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 09-14-2004, 10:24 PM   #1
takisd
Member
 
Registered: Dec 2003
Posts: 39

Rep: Reputation: 15
2 NICs - networking issues


Hi

i'm having quite the frustrated time with my debian box.

i'm running debian woody (with some bits from testing)

i'm trying to configure as a web/mail/ftp server.

all packages are in and working fine (ftp seems flakey - but that can wait).

i'm running kernel 2.4.27-1-686-smp

i have two NICs - one internal one external. the internal card seems fine. the external card drops out every now and then. if i reboot the box, it seems ok for a moment. 5 minutes later, the external NIC is not pingable, can't see web site, mail access is down. wait another 5min and it might come back again. i've tried three cards, so i've effectively ruled out hardware. there is a firewall, but that doesn't seem to be the problem - besides i can access it with no probs when its up ok.

its not the provider as there are multiple win2k servers running similar setups on the network (point here is to replace those with linux).

nothing jumps out at me in the logs.
i don't know where else to look.

ifconfig output is below:

Code:
eth0      Link encap:Ethernet  HWaddr 00:0D:61:71:C7:81  
          inet addr:192.168.207.162  Bcast:192.168.207.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:6895 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1306 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:567007 (553.7 KiB)  TX bytes:159891 (156.1 KiB)
          Interrupt:20 Base address:0x7000 

eth1      Link encap:Ethernet  HWaddr 00:02:44:81:A7:6B  
          inet addr:my.external.ip.address  Bcast:61.255.255.255  Mask:255.255.255.240
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1574 errors:0 dropped:0 overruns:0 frame:0
          TX packets:264 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:157963 (154.2 KiB)  TX bytes:52673 (51.4 KiB)
          Interrupt:22 Base address:0xa000 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:9 errors:0 dropped:0 overruns:0 frame:0
          TX packets:9 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:634 (634.0 b)  TX bytes:634 (634.0 b)
lspci -v output:
Code:
01:02.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139 (rev 10)
	Subsystem: Surecom Technology EP-320X-R
	Flags: bus master, medium devsel, latency 32, IRQ 22
	I/O ports at a000 [size=256]
	Memory at f8000000 (32-bit, non-prefetchable) [size=256]
	Capabilities: [50] Power Management version 2

01:08.0 Ethernet controller: Intel Corp.: Unknown device 1050 (rev 02)
	Subsystem: Giga-byte Technology: Unknown device 3013
	Flags: bus master, medium devsel, latency 32, IRQ 20
	Memory at f8001000 (32-bit, non-prefetchable) [size=4K]
	I/O ports at a400 [size=64]
	Capabilities: [dc] Power Management version 2
the external card just doesn't want to stay up. if i restart networking, it will work for a while, and then down again... and then maybe back up... you get the picture...

anyway, any suggestions or pointers of what to check would be appreciated.

Thanks heaps

Takis
 
Old 09-15-2004, 04:57 AM   #2
apeekaboo
Member
 
Registered: Apr 2003
Location: Stockholm/Sweden
Distribution: Kubuntu, Debian, Slax
Posts: 91

Rep: Reputation: 16
Just some thoughts:
  • If you've tried changing NICs, then it sounds more like a driver/module problem.
    Does the manufacturer perhaps provide a Linux driver of their own?
  • You could try searching for the NIC chipset on google to se if anyone else have had the same problems.
    It might be possible that the module has to be loaded with some special variables.
    If a module bails out there is normally a note written to /var/log/messages. I've experienced this with a PCMCIA card which sometimes switched from 100Mbit to 10 Mbit, which confused the system so the network went down. After some googling I found out how to force the card to 100 Mbit and after that all was good!
  • Try booting with Knoppix to see what modules it chooses.
  • If everything else fail, switch to another brand of NIC. After all, NICs are cheap and your time is not...
Good luck!
 
Old 09-15-2004, 05:08 AM   #3
dylants
Member
 
Registered: Oct 2003
Location: Bath UK
Distribution: RedHat 7,9 RHEL 2.1-4 Suse 9.1, 9.2, Ubuntu, Centos 3-4, Fedora 3-5
Posts: 44

Rep: Reputation: 15
I would suggest checking the broadcast address, and your routing table.

When you say you've tried three different nic's are they all the same type?
I'm not familiar with Debian - if I changed hardware type in RedHat I would have to run Kudzu to detect the new hardware, or modify teh /etc/modules.conf file to make sure the correct (or compatable) drivers were loaded.

Are there any clues in /var/log/messages?
 
Old 09-15-2004, 08:33 AM   #4
msh8r
Member
 
Registered: Jul 2001
Location: Houston, TX
Distribution: RedHat, CentOS, Fedora
Posts: 48

Rep: Reputation: 15
just a stupid question (sometimes we overlook the obvious): did you try another cable as well?
 
Old 09-16-2004, 02:57 AM   #5
takisd
Member
 
Registered: Dec 2003
Posts: 39

Original Poster
Rep: Reputation: 15
Hi

thanks heaps for the responses...

i have tried cables. i have tried different modules for the NICs also. i have a new card coming in that i haven;t tried before soon.

one card is a netgear one which i have using the natsemi module, the other is a generic one using the realtek chipset and using the 8139too module. i have swapped them over in terms over internal/external... both work fine for internal - problems happen on both cards when on the external network.

i have fiddled with broadcast values but i don't know if they're correct. what range should these be??

the NICs haven't been all the same type, though i have tried a couple of netgear ones.

the intel interface is actually onboard. i have disabled this a couple of times and used 2 plain cards instead - no change when using this configuration.

Knoppix is a good idea... i'll try that.

all logs tell me nothing unfortunately...

i'm still cracking away... i just want to get this sorted before i look too stupid and the honchos here think the linux move was a bad idea... i pushed so hard for it ... a little frustrating when i can;t even get the network to stay on for longer than about 5 min.

anyway... thanks heaps...

still trudging away...

Takis
 
Old 09-16-2004, 04:31 AM   #6
vince
LQ Newbie
 
Registered: Jun 2004
Location: Netherlands
Distribution: debian
Posts: 3

Rep: Reputation: 0
dhcp

Hi,
since you are talking about fidelling with the braodcast range.... aren't you supposed to get the whole configuration over DHCP (e.g. as root: dhclient eth1) - i suppose the provider knows how to set the broadcast range.


vince
 
Old 09-16-2004, 04:55 AM   #7
dylants
Member
 
Registered: Oct 2003
Location: Bath UK
Distribution: RedHat 7,9 RHEL 2.1-4 Suse 9.1, 9.2, Ubuntu, Centos 3-4, Fedora 3-5
Posts: 44

Rep: Reputation: 15
Takis,

I believe that your isp should determine your broadcast address.

As you have 255.255.255.240 as your ip netmask then that suggests you have an address range of 16 addresses. Your broadcast address is usually the highest valued address in your range (well it has been for me in the past). I can't say any more than you need to check this with your isp as they have control over the address ranges in use.

HTH

Dylan
 
Old 09-16-2004, 11:02 AM   #8
msh8r
Member
 
Registered: Jul 2001
Location: Houston, TX
Distribution: RedHat, CentOS, Fedora
Posts: 48

Rep: Reputation: 15
Upon taking a closer look at the original post, the broadcast address is most definitely wrong:

inet addr:my.external.ip.address Bcast:61.255.255.255 Mask:255.255.255.240

As one of the previous posts says, it should be within the range of your subnet. With the 255.255.255.240 netmask you have 16 IP addresses in your subnet. The very first is your subnet address, the second is frequently used as the defauilt gateway (router), and the last is usually the broadcst address. Some installations use the subnet address (the first in your range) also as broadcast address. The 13 remaining addresses inyour subnet can be used for individual machines.
So, the first three bytes "my.external.ip" (using your example above) should be the same for router, all machines, and broadcast.
 
Old 09-17-2004, 09:13 AM   #9
takisd
Member
 
Registered: Dec 2003
Posts: 39

Original Poster
Rep: Reputation: 15
Hi folks

thanks all so much for helping me on this one.

i think its resolved. first, you were right... my broadcast was in fact wrong.

i also tried a knoppix cd and found that the modules i had were what knoppix picked so i was happy with that. (thats a good one btw that i had not thought of... thanks).

further, i removed one of the gateways. in specifying a gateway for each NIC which was also different for each NIC, it would almost get confused as to which one to use, perhaps even loop around and then dump. hence i suspect the up/down characteristics. i copied the network details off a windows box on with a similar internal/external setup and figured that was right.

i removed the gateway from the internal card and kept just the outside one. can anyone confirm that i should have only one gateway amongst 2 cards???

it appears that the combination of the braodcast and the removal of the gateway on the internal card has done the trick (well so far so good anyway).

i'm still a little unsure, but glad its working.

thanks so much to everyone for chipping in with this. i couldn't have done it without you. its also another feather for linux's cap as my honchos over here were concerned about immediate linux troubleshooting support before the 'get someone in' stage. the community has jumped in to help very nicely. i plan to swap over the other windows servers here and be done with them for good (i hope). sorry... feeling very warm and fuzzy right now....

thanks again.

Takis
 
Old 09-17-2004, 09:37 AM   #10
dylants
Member
 
Registered: Oct 2003
Location: Bath UK
Distribution: RedHat 7,9 RHEL 2.1-4 Suse 9.1, 9.2, Ubuntu, Centos 3-4, Fedora 3-5
Posts: 44

Rep: Reputation: 15
Get used to the warm fuzzy feeling - especially when you see some of the uptimes you can get (I have an intranet server that has been running for 12 months without any admin!).

Gateways - yes you can have more than one if you wish. Each gateway you wish to use is the means by which you get traffic to another subnet - i.e. the gateway to another network. I have some servers running apache in a web server farm, they have a route off the 'front end' (the default route) to serve the public requests, a route off the 'back end' so that I can administer them and they also have a route onto another subnet - for traffic to/from another office!

A route is merely a way of specifying that all traffic for "this subnet" should go via "here". The gateway being the device addressed "here".

Regards

Dylan
 
  


Reply



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
Networking issues biased99 Linux - Networking 4 02-09-2005 03:36 AM
Routing issues with multiple nics on ClarkConnect 2.2 (RedHat 9) Killbot_5000 Linux - Networking 1 01-13-2005 10:58 AM
RH 7.3 Networking Issues sussen Linux - Networking 2 11-15-2004 08:41 AM
Networking Issues. StrongKungFu Debian 2 04-10-2004 12:52 PM
networking issues lunchin Linux - Networking 7 02-01-2003 06:27 PM

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

All times are GMT -5. The time now is 06:41 PM.

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