LinuxQuestions.org
Review your favorite Linux distribution.
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 06-20-2004, 11:52 PM   #1
DraZtiK
LQ Newbie
 
Registered: Mar 2004
Posts: 11

Rep: Reputation: 0
works on windows but not linux


I had a windows server running at my Central Office from a connection my provider gave me...everything worked fine, so I wanted to switch it over to linux but for some reason I can't get it to work.

my provider gave me an IP, subnet, gateway, DNS, and wins server info that I used on my windows 2000 server and it works.

when I enter that info into linux via netconfig the only option that isnt listed is the wins server info so I set that in the samba conf file under wins server = IP, then started samba but I can't ping it. I tried disabling IPChains.

what am I missing? its a RedHat based distro.
 
Old 06-21-2004, 12:23 AM   #2
Crito
Senior Member
 
Registered: Nov 2003
Location: Knoxville, TN
Distribution: Kubuntu 9.04
Posts: 1,168

Rep: Reputation: 53
Not sure what you're missing but WINS is for netbios name resolution only and would not affect your ability to ping the box. Whatever your network connectivity problem is it has nothing to do with Samba.
 
Old 06-21-2004, 02:12 AM   #3
DraZtiK
LQ Newbie
 
Registered: Mar 2004
Posts: 11

Original Poster
Rep: Reputation: 0
OK thanks for the samba thing so here is what I found.

an example:

IP= 65.30.4.145
subnet=255.255.255.224
gateway=65.30.4.159
dns=65.30.4.130

now I can ping other ip's in my network like 65.30.4.146 and 147 but not outside it like google's 216.239.41.104.
 
Old 06-21-2004, 02:40 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Did you add the nameserver info to the /etc/resolv.conf file.
 
Old 06-21-2004, 03:00 AM   #5
DraZtiK
LQ Newbie
 
Registered: Mar 2004
Posts: 11

Original Poster
Rep: Reputation: 0
Yes and it is in there properly.

when I ping that IP "216.239.41.104" I get Network is unreachable, but like I said I can ping other ip's in my network.


I seem to be having a problem close to this one: http://www.experts-exchange.com/Netw..._21004305.html


when I do a route it says:


65.30.4.128 0.0.0.0 255.255.255.224 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
 
Old 06-21-2004, 03:36 AM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
I take it you have tried:
route add default gw 65.30.4.159

Look at the output of dmesg. Do you see any errors with the network card?
 
Old 06-21-2004, 03:41 AM   #7
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 50
your default route is missing.

edit /etc/sysconfig/network and add

GATEWAY=65.30.4.159

Save the file and run the command

#service network restart
 
Old 06-21-2004, 02:12 PM   #8
DraZtiK
LQ Newbie
 
Registered: Mar 2004
Posts: 11

Original Poster
Rep: Reputation: 0
Well I looked at the file "network" as ppuru suggested and GATEWAY is not listed in there so I added and will try it when I get the server back to my CO.
 
Old 06-22-2004, 11:26 AM   #9
DraZtiK
LQ Newbie
 
Registered: Mar 2004
Posts: 11

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by ppuru
your default route is missing.

edit /etc/sysconfig/network and add

GATEWAY=65.30.4.159

Save the file and run the command

#service network restart

tried it but didn't work.


I don't understand what i'm missing, it worked fine on my personal lan at home.
 
Old 06-22-2004, 03:55 PM   #10
czarherr
Member
 
Registered: Sep 2003
Location: Suwon, Korea
Distribution: Slackware 14
Posts: 288

Rep: Reputation: 32
its possible your gateway is incorrect if you can ping inside the network but not outside
 
Old 06-22-2004, 04:56 PM   #11
DraZtiK
LQ Newbie
 
Registered: Mar 2004
Posts: 11

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by czarherr
its possible your gateway is incorrect if you can ping inside the network but not outside
If it was incorrect why would it work just fine on windows?
 
Old 06-22-2004, 09:27 PM   #12
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
When you restarted the network does the output of route show the gateway information?
If not what happens when you try to add it manually.
route add default gw 65.30.4.159
 
Old 06-22-2004, 09:42 PM   #13
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 50
can you post the output of

#route -nv

OR

#netstat -nr

And

#/sbin/ifconfig -a

Last edited by ppuru; 06-22-2004 at 09:43 PM.
 
  


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
Bittorrent works in Windows but not Linux? oudent Linux - Software 4 10-26-2005 03:55 PM
Vnc only works linux to windows not windows to linux mbdayton Linux - Networking 2 04-16-2005 06:36 PM
Internet works with Windows but not Linux. costasm Linux - Networking 8 11-26-2003 12:08 PM
Any linux distro that works from windows ? Rodcl Linux - Distributions 10 10-19-2002 04:56 PM
linux fails where windows works boots147 Linux - Software 15 01-31-2002 07:49 AM

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

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