LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 03-04-2001, 11:20 AM   #1
jkelly295
LQ Newbie
 
Registered: Mar 2001
Posts: 4

Rep: Reputation: 0

I am trying to set up a network between two machines one running red hat 7 and the other running Win 98. What I really want is to be able to serve web pages from the linux box using apache to the win box. I have the network cards installed and there is a green light on both the nics and the hub. The nic card is configured in the linux box and and ifconfig shows that it is functioning.

The Problem is:

I have not been able to ping from one computer to the next. I also have sendmail hanging on boot. I have listed below the networking settings for the two computers

Linux box
primary name + domain localhost.localdomain
ip 10.0.0.24
Net mask 255.0.0.0
eth0
Tulip

Windows
ip 10.0.0.25


The computers can ping themselves but not each other. I have heard that a problem in the resolv.conf file is responsible for the sendmail hang. When I look at most how to pages it says to contact my sys admin for some setting of another. In this situation I am the sys admin. Where do I come up with all of the IP and dns info?
 
Old 03-05-2001, 01:47 PM   #2
Jason2000
LQ Newbie
 
Registered: Mar 2001
Posts: 3

Rep: Reputation: 0
Hi,,now I am a really really really fresh Linux Newbie (installed it yesterday) but i was under the impression that eth0 had to be the loopback 127.0.0.1 and the first device should be eth1. Then to add to that, I was told something today about the eth1 settings,,,hmm had something to do with gateway settings but cant remember now. I know I have not really helped, but my pathetic attempt to join the Linux comunnity may stir some othe Gurus into a reply (I hope so,,cos I have the same problem ;-))

Thanks..

Jason
 
Old 03-05-2001, 05:00 PM   #3
crabboy
Senior Member
 
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,821

Rep: Reputation: 121Reputation: 121
J295, your IP address look fine. just make sure that you have the same subnet mask on both machines. I don't see why it shouldn't be working. You have good hardware connectivity. You really don't need a resolv.conf file unless you have connectivity to the internet. If you do, then you want to put the DNS host addresses in the file.

nameserver xxx.xxx.xxx.xxx
nameserver xxx.xxx.xxx.xxx (secondary)

As for J2k, the eth0 interface is not the loopback device. eth0 on my machine is external, eth1 internal and lo is loopback. Here is the output of ifconfig on my machine (address have been masked to protect the innocent.)

eth0 Link encap:Ethernet HWaddr 00:A0:24:92:XX:XX
inet addr:xxx.xxx.xx.xxx Bcast:xxx.xxx.xxx.xxx Mask:255.255.255.252
UP BROADCAST NOTRAILERS RUNNING MTU:1500 Metric:1
RX packets:42401 errors:0 dropped:0 overruns:0 frame:0
TX packets:39644 errors:0 dropped:0 overruns:0 carrier:0
collisions:6 txqueuelen:100
Interrupt:11 Base address:0x300 Memory:4-3c509

eth1 Link encap:Ethernet HWaddr 00:A0:24:A3:XX:XX
inet addr:10.0.0.199 Bcast:10.0.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:39989 errors:0 dropped:0 overruns:0 frame:0
TX packets:42556 errors:0 dropped:0 overruns:0 carrier:0
collisions:15 txqueuelen:100
Interrupt:10 Base address:0x280 Memory:4-3c509

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:3904 Metric:1
RX packets:32 errors:0 dropped:0 overruns:0 frame:0
TX packets:32 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
 
Old 03-22-2001, 12:23 PM   #4
siddiqu
Member
 
Registered: Mar 2001
Location: India
Posts: 332

Rep: Reputation: 30
Hi..

Since u are having two ethernet card.

Are u sure which card binded with which IP address ??

I think u have connected the wrong network. connect the cable int next card and try it.

Or see the mac address in the card and find out which card is binded to whic IP address.


Sendmail hanging is because of host name lookup failure. put the host entry for ur IPaddresses ( eth0,eth1) in hosts file

regards
siddiqu.T
 
Old 03-22-2001, 12:26 PM   #5
jkelly295
LQ Newbie
 
Registered: Mar 2001
Posts: 4

Original Poster
Rep: Reputation: 0
siddiqu

I think that you have me confused with one of the other posters. I only have one ethernet card and it is the only one that the cable is connected to. Any other ideas.

Jkelly295
 
Old 03-22-2001, 12:32 PM   #6
siddiqu
Member
 
Registered: Mar 2001
Location: India
Posts: 332

Rep: Reputation: 30
Please check the Cable..
How u are connecting Cross over or streight cable ??

Enable tcpdump check any packet is coming are not ???

Siddiqu.T

 
Old 03-23-2001, 08:19 PM   #7
jkelly295
LQ Newbie
 
Registered: Mar 2001
Posts: 4

Original Poster
Rep: Reputation: 0
I meant that I only have one card in the linux box and one in the windows machine. I am also using a hub. I have already changed the cables with no effect.

How do I enable the tcpdump that you mentioned.

Thanks

Joe
 
Old 04-05-2001, 08:55 PM   #8
jkelly295
LQ Newbie
 
Registered: Mar 2001
Posts: 4

Original Poster
Rep: Reputation: 0
I finally got my computers to see each other. After replacing both the nics, the hub, cables, and reinstalling windows and linux about ten times the problem turned out to be an irq conflict in the Windows machine. I also knew that the problem was not in Linux to Windows protocols because I had also tried to network my laptop running Win Me to the Win 98 machine.

I noticed on another post that there was a guy who mentioned that to ensure that there were no irq conflicts make sure that the pnp os selection in the bios was set to no. I went in and changed that setting and amazingly everything worked. File sharing and internet connection sharing the whole nine yards. Hope that this helps someone else out there.

 
  


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
linux shuts down built in network card then windows tells me network card is unplugge lesmoxhaybaker SUSE / openSUSE 8 08-29-2006 05:10 PM
Integrating Linux Network into a Windows Network Crash64 Linux - General 3 04-30-2005 08:42 PM
linux machine does not connect to the network in windows network Bzuco Linux - Networking 2 07-19-2004 04:44 AM
windows nt network and linux newbe200615 Linux - Networking 4 06-25-2003 02:16 AM
accessing a windows network from a linux network and vise vesra uche okorie Linux - Networking 0 12-16-2001 04:15 AM

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

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