LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-10-2008, 03:14 AM   #1
alienDog
Member
 
Registered: Apr 2004
Location: Europe
Distribution: Debian, Slackware
Posts: 505

Rep: Reputation: 48
No network with any Linux machine


I have a very strange problem with getting Linux machines to connect to our network. I am able to get any Windows machine networked just fine, but Linux machines with exactly the same settings won't work. The network has fixed IPs for all the machines in it.

The Linux machines seem to connect just fine but the router shows no connection. If I try to access anything (web-page or such), all I get is Looking up... The nameservers are correct.

I am able to ping the gateway/router, but everything seems to stop there. Needless to say, there is nothing about this in router logs.

Actually I was able to connect to the router once using DHCP, but that was only once. Now trying DHCP does make a connection (it shows up on router), but there is still no data transfer...

This happens with every linux machine I've tried. What on earth could be wrong???

--edit--

Here's some more information about the network and the setup:

The router is at 192.168.0.254 and there are two switches between the machine and the router. The router is Netgear WGR614 v7.

We have machines 192.168.0.2, 192.168.0.3, 192.168.0.50, 162.168.0.51, 192.168.0.52 there also used to be 192.168.0.60 that is to be replaced with the new Linux server.

Here are the relevant settings from the new Linux box:

inet addr:192.168.0.60 Bcast:192.168.0.255 Mask:255.255.255.0

I do not know the Bcast IP that the windows machines use, but that should be ok, right?

Route table has (destination, gateway, genmask, flags, metric, ref, use, iface):

localnet * 255.255.255.0 U 0 0 0 eth0
loopback * 255.0.0.0 U 0 0 0 lo
default 192.168.0.254 0.0.0.0 UG 1 0 0 eth0

Arp says:
? (192.168.0.254) at 00:4F:49:00:EE:E8 [ether] on eth0

the firewall is not up (i.e. all with default policy ACCEPT)

DNS servers are the ones that our ISP provides. The machine cannot ping/access them.

-- Edit2 --

Fixed mistyped IP-addresses above...

Last edited by alienDog; 07-10-2008 at 12:45 PM.
 
Old 07-10-2008, 06:00 AM   #2
Swagata Paul
Member
 
Registered: Jun 2008
Location: Kolkata, India
Posts: 57

Rep: Reputation: 15
OK,

Let IP of one machine 192.168.1.3 and Mask is 255.255.255.0
Let IP of another machine is 192.168.0.50 and Mask is 255.255.255.0

Just setup two m/c's with the above configuration. And then try to ping from each another.

Send me the ping results.
I got your problem.
 
Old 07-10-2008, 08:04 AM   #3
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
These first issue I see is that your machines are in two different subnets, only machines with 192.16.0.X addresses would be able to talk to the router given the provided parameters.


Router / Gateway

192.168.0.254

network 192.168.1.0 /24
192.168.1.2,
192.168.1.3,
192.168.1.60

network 192.168.0.0 /24
192.168.0.50,
162.168.0.51,
192.168.0.52

New PC
inet addr:192.168.0.60
Bcast:192.168.0.255
Mask:255.255.255.0
Gateway: 192.168.0.254


At this point I would ask, do you have any security enabled in the Netgear Router ? this address should be able to get through the router provided all the information you have shown is correct. Services can be blocked in that router by IP range, has someone enabled filtering in the router ? Check the Router manual and settings. ftp://downloads.netgear.com/files/wg...al_20apr06.pdf

Check the Router logs as well to see if it is showing access Deniaed when your Linux machines tries to access a web site.
and view the connected devices list in the router.
 
Old 07-10-2008, 12:32 PM   #4
alienDog
Member
 
Registered: Apr 2004
Location: Europe
Distribution: Debian, Slackware
Posts: 505

Original Poster
Rep: Reputation: 48
Quote:
Originally Posted by farslayer View Post
These first issue I see is that your machines are in two different subnets, only machines with 192.16.0.X addresses would be able to talk to the router given the provided parameters.


Router / Gateway

192.168.0.254

network 192.168.1.0 /24
192.168.1.2,
192.168.1.3,
192.168.1.60

network 192.168.0.0 /24
192.168.0.50,
162.168.0.51,
192.168.0.52

New PC
inet addr:192.168.0.60
Bcast:192.168.0.255
Mask:255.255.255.0
Gateway: 192.168.0.254


At this point I would ask, do you have any security enabled in the Netgear Router ? this address should be able to get through the router provided all the information you have shown is correct. Services can be blocked in that router by IP range, has someone enabled filtering in the router ? Check the Router manual and settings. ftp://downloads.netgear.com/files/wg...al_20apr06.pdf

Check the Router logs as well to see if it is showing access Deniaed when your Linux machines tries to access a web site.
and view the connected devices list in the router.
Well, actually no... That was just a typing mistake... They are really 192.168.0.2, 192.168.0.3 and 192.168.0.60... So they are in the same subnet. I fixed the addresses in original post also, sorry about that...

There are no rules blocking the traffic in the router, and the router's logs don't say anything at all. The connections from the Linux machines don't even show up under the "Attached Devices" in the router's ui (unlike connections from Windows machines with identical settings).

Last edited by alienDog; 07-10-2008 at 12:46 PM.
 
Old 07-10-2008, 01:01 PM   #5
alienDog
Member
 
Registered: Apr 2004
Location: Europe
Distribution: Debian, Slackware
Posts: 505

Original Poster
Rep: Reputation: 48
This is what Netgear support has to say about the problem:

Quote:
Nothing in the router which uses netbios to resolve names and add devices to the attached devices section in the router. If a windows machine doesn´t show up you just choose to "activate netbios over tcp/ip".
Try troubleshooting the Linux computers and see what can be done in them. In the router you can only make sure you have the latest firmware.
So "Activate NetBIOS over TCP/IP", how am I supposed do that in Linux???
 
Old 07-10-2008, 08:06 PM   #6
williebens
Member
 
Registered: Jan 2008
Posts: 88

Rep: Reputation: 16
If you get an ip with ifconfig and the gateway is setup properly, then have you restarted the network interfaces (eth0 or eth1) ?

Thanks.
--Willie
 
Old 07-11-2008, 02:30 AM   #7
alienDog
Member
 
Registered: Apr 2004
Location: Europe
Distribution: Debian, Slackware
Posts: 505

Original Poster
Rep: Reputation: 48
Quote:
Originally Posted by williebens View Post
If you get an ip with ifconfig and the gateway is setup properly, then have you restarted the network interfaces (eth0 or eth1) ?

Thanks.
--Willie
Yes, of course I have.
 
Old 07-11-2008, 09:50 AM   #8
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
Quote:
Originally Posted by alienDog View Post
So "Activate NetBIOS over TCP/IP", how am I supposed do that in Linux???
http://www.samba.org/samba/docs/man/....html#id367198

That would be a function in Samba.. broadcast based peer name resolution

I would think your Machines would still show up in the client list just with IP or MAC addresses instead of with machine names.. but I guess that isn't happening and I'm not familiar enough with their routers to tell you any different.
 
  


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
2 linux machine network, one headless. whansard Linux - Networking 3 05-21-2005 03:15 PM
network seems slow just on linux machine thinkweb Linux - Networking 2 03-09-2005 02:07 PM
linux machine does not connect to the network in windows network Bzuco Linux - Networking 2 07-19-2004 04:44 AM
linux machine on my windows network ??? wynter919 Fedora 2 12-29-2003 09:31 PM
Cannot see Linux machine from Network Neighborhood rwelch Linux - Networking 13 03-09-2003 08:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:05 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