LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-20-2001, 10:16 PM   #1
Daniel_Kim
LQ Newbie
 
Registered: Jul 2001
Posts: 12

Rep: Reputation: 0
Question W2K & Linux net prob.


I've got a miniscule network comprised of only 2 computers. On one, I'm running W2K pro and on the other I'm dual-booting W2K Advanced Server and TurboLinux Server 6.0 with no problems as of yet. I've already set-up DHCP on the linuxbox and configured my NIC to work. Everything works fine, except that I can't ping with either computer. I always receive a REQUEST TIMED OUT message when I ping with my windows system. If i ping with linux, it shows no message until I press ctrl+c to stop the ping cycle and always receive 100% packet loss. I'm pretty positive it's not the cable because I'm always able to ping when I run W2K Server on the linuxbox and can always connect to it with the other machine. Also, since I've also set-up linux for DHCP I always receive an IP address when I log onto the windows machine.(I hope I'm not being vague, when I say my windows machine I mean my W2K pro machine; I'm dual-booting linux with W2k server). Anyway I was hoping someone can help me out with this problem. Is there something I might be missing? Also, I want to know If I absolutely need Samba to connect windows to linux for file-sharing, printer-sharing and general networking. I also need advice for windows to linux networking. Is there a how-to on this subject I can obtain somewhere?
 
Old 07-21-2001, 10:27 AM   #2
dilberim82
Member
 
Registered: Apr 2001
Location: NY
Distribution: used to be Redhat, now Debian Sarge
Posts: 291

Rep: Reputation: 30
hey

Search it in here, i think i read something like that like a week ago or something.
 
Old 07-23-2001, 11:33 PM   #3
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
To ping all you need is the ip addresses to be on the same network. The routing tables will be created when you set the ip address for the same network addresses.

To do this you need to know the address of the win computer. Maybe it's something like 192.168.0.1 with a netmask of 255.255.255.0 or something simular.

this means that where you have a 255 in the netmask the numbers must match to be on the same network.

so 192.168.0 is the network but it is stated like this 192.168.0.0


the last number must be different, it is the individual machine


so you can set up linux with 192.168.0.2 with a netmask of 255.255.255.0


To do that try this

ifconfig eth0 192.168.0.2 netmask 255.255.255.0


then you can ping the other computer by ping 192.168.0.1


to use names put them in the /etc/hosts file like this


192.168.0.1 win2k


then you can do

ping win2k
 
Old 07-24-2001, 02:08 PM   #4
Daniel_Kim
LQ Newbie
 
Registered: Jul 2001
Posts: 12

Original Poster
Rep: Reputation: 0
To: DavidPhillips

DavidPhillips,

The problem with doing that is that I would have to set up static IP's on both machines. I want to learn how to maintain and troubleshoot DHCP on linux so I've configured DHCP on my linux system. They are both on the same network, which is 192.168.73.0 and netmask of 255.255.255.0. The odd thing is that I always receive an IP address, but cannot ping to linux. Which brings up another question, whether relevant or not, can you put DHCP clients into /etc/hosts? And if so, how do you do it?
Thanks for your reply.
 
Old 09-06-2001, 09:09 AM   #5
suselinux
LQ Newbie
 
Registered: Aug 2001
Posts: 29

Rep: Reputation: 15
samba and dhcp

I would definitely be interested to know if you can put DHCP clients in the /etc/hosts file. There must be some way to use Samba and have DHCP.

Any insight to this would be greatly appreciated.
 
Old 09-22-2001, 09:00 PM   #6
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
/etc/hosts is the place your system looks to resolve names to addresses. Which you apparently already know.

So putting them in there would allow you to use the name in place of the address. However you should specify the address for dhcp to assign to each client based on their hardware mac address so that the hosts file is correct.

As far as pinging the machine goes if

ping aaa.aaa.aaa.aaa does not work you have something setup wrong, must likely the default route is a problem.

aaa.aaa.aaa.aaa being the ip address of the machine you are pinging, on the same network.


If these machines are on a different network and you need to access them from one another use samba as a wins server.
 
  


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
IP config: net/firewall/server/W2K darb Linux - Networking 7 03-31-2004 05:18 PM
W2K + SuSE install prob. KenCo Linux - Newbie 9 09-30-2003 04:32 AM
SAMBA bet RH 9 & W2K with Netgear Router - can't see W2K share cevjr Linux - Software 0 07-30-2003 11:44 AM
Cant ping Linux from W2K on same net skriv Linux - Newbie 2 06-13-2002 10:06 AM
W2K & Linux network config. Daniel_Kim Linux - Networking 2 07-09-2001 03:58 AM

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

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