LinuxQuestions.org
Visit Jeremy's Blog.
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 08-11-2003, 11:52 AM   #1
<Ol>Origy
Member
 
Registered: Aug 2003
Location: Slovenia
Distribution: Arch, Debian, Embedded
Posts: 136

Rep: Reputation: 15
Problems creating LAN. Need help!


At first I'd like to say hello to everyone on this forum because you guessed! I'm new here and new to linux as well. This is my first post and hopefully I'll get the knowledge to fix my problem soon. Therefore I'll try to provide as much details as possible. So let's get on topic.

I have recently installed Red Hat Lunux 9 on one of my PC's and because I'm new to linux I decided to use KDE. The installation went fine. Okay this is some background info. Now here's the problem:

I am trying to create a LAN. I have 3 PC's to net-up. One is a RH linux one (the one I mentioned above) and the other ones are Win XP.
The problem is that I can't get the linux PC to see the LAN. The Win XP computers are able to see each other (ping) but none of them can see the linux PC and the linux PC can't see any of the XP's either. Therefore I thought there is something misconfigured in the linux PC. When I try to ping on XP (command prompt) I get "Request timed out." messages and on linux I get "Destination Host Unreachable".
For my LAN (ethernet) I use LevelOne 5 port 10/100 switch. When I ping the lights on the switch and on the network card don't blink.
I will be using the linux PC as a server and router but not just yet. That's why I have 2 network cards installed (both 10/100 and both support linux - at least that's how it said on their packages):
- SiS 900/7106CI
- RealTek RTL-8139, SMC EZ Card

I configured them at the installation. Both were detected and both now appear in the Network Configuration tool. I'll be using the RealTek one (eth1) for my LAN and the other one (eth0) to connect to internet later. The LAN one activates on boot. No errors. Yes I tried switching them but it didn't help. Now here's my configuration of the LAN - network cards on all 3 PC's:

PC1 - Red Hat Linux 9 (the future server)
IP: 192.168.1.1
Netmask: 255.255.255.0

PC2 - Windows XP (the one I'm using now/dialup 56K)
IP: 192.168.1.2
Netmask: 255.255.255.0

PC3 - Windows XP (another PC)
IP: 192.168.1.3
Netmask: 255.255.255.0

I have configured all the network cards to use static IP addresses so it's a static IP network. My ifconfig on linux shows the following (if this is helpful):

eth1

Link encap:Ethernet HWaddr 00:10:0C:E0:00:00
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:10 Base address:0xe000

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:50324 errors:0 dropped:0 overruns:0 frame:0
TX packets:50324 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3420524 (3.2 Mb) TX bytes:3420524 (3.2 Mb)

I have also disabled the firewall (iptables) but it doesn't help.

This is it. I do not have much linux knowledge so can someone guide me step-by-step?
Let me know if I'm missing some information.
Thanks.
 
Old 08-11-2003, 12:29 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Can you post the output of "route -n" on linux and one xp machine.

You say the lights don't blink but do the link lights come on?

What happens if you run:
ifdown eth0
ifdown eth0
ifup eth0
 
Old 08-11-2003, 02:57 PM   #3
<Ol>Origy
Member
 
Registered: Aug 2003
Location: Slovenia
Distribution: Arch, Debian, Embedded
Posts: 136

Original Poster
Rep: Reputation: 15
Sure. Here it is if this is what you requested. BTW "route -n" didn't work on XP so I used "route print" instead.

Linux:
Kernel IP routing table

Destination Gateway Genmask Flags Metric Ref Use Iface

192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1

169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth1

127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo


Win XP:
===========================================================================
Interface List
0x1 ........................... MS TCP Loopback interface
0x2 ...00 e0 4c e8 87 c8 ...... Realtek RTL8139 Family PCI Fast Ethernet NIC - P
acket Scheduler Miniport
===========================================================================
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface Metric
127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1
192.168.1.0 255.255.255.0 192.168.1.2 192.168.1.2 20
192.168.1.2 255.255.255.255 127.0.0.1 127.0.0.1 20
192.168.1.255 255.255.255.255 192.168.1.2 192.168.1.2 20
224.0.0.0 240.0.0.0 192.168.1.2 192.168.1.2 20
255.255.255.255 255.255.255.255 192.168.1.2 192.168.1.2 1
===========================================================================
Persistent Routes:
None


Yes. The lights do turn on when I powerup the computer. If I remove the cable the lights turn off and when I plug it they turn on.

If I type ifdown eth0 nothing happens.
when I type ifup eth0 I get this message:
Determining IP information for eth0... failed; no link present. Check cable?

You must know that I'm actually using eth1 for LAN and not eth0. eth0 is inactive and I will later be using it to connect to internet.

Typing ifdown eth1 and ifup eth1 will successfully de/activate the realtek network card (eth1) tho the lights stay on.

Last edited by <Ol>Origy; 08-11-2003 at 02:58 PM.
 
Old 08-12-2003, 12:23 AM   #4
js_530
Member
 
Registered: Jul 2003
Posts: 162

Rep: Reputation: Disabled
Don't forget to disable the firewall that Red Hat comes with. It's under the setup menu.
 
Old 08-12-2003, 03:26 AM   #5
Robert0380
LQ Guru
 
Registered: Apr 2002
Location: Atlanta
Distribution: Gentoo
Posts: 1,280

Rep: Reputation: 47
post deleted after further reading the original post

Last edited by Robert0380; 08-12-2003 at 03:29 AM.
 
Old 08-12-2003, 04:10 AM   #6
<Ol>Origy
Member
 
Registered: Aug 2003
Location: Slovenia
Distribution: Arch, Debian, Embedded
Posts: 136

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by js_530
Don't forget to disable the firewall that Red Hat comes with. It's under the setup menu.
Lalala (if this is the one)

Quote:
Originally posted by <Ol>Origy
I have also disabled the firewall (iptables) but it doesn't help.
 
Old 08-12-2003, 06:01 AM   #7
thomassounness
LQ Newbie
 
Registered: Apr 2003
Location: Malaysia
Distribution: Mandrake 9.0 / Suse 8.0
Posts: 25

Rep: Reputation: 15
Thoughts ....

How to have visibility from one side of a LAN to another

Things in the way ....

workgroup name
dns name
host name

Are any of these relevant and should these be set to the same?

Q: if in root - can you see each other in LinNeighbourhood?

um ... that's it for my questioning answers ...

Thomas
 
Old 08-12-2003, 10:09 AM   #8
<Ol>Origy
Member
 
Registered: Aug 2003
Location: Slovenia
Distribution: Arch, Debian, Embedded
Posts: 136

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by thomassounness
Thoughts ....

How to have visibility from one side of a LAN to another

Things in the way ....

workgroup name
dns name
host name

Are any of these relevant and should these be set to the same?

Q: if in root - can you see each other in LinNeighbourhood?

um ... that's it for my questioning answers ...

Thomas
I'm not able to even PING the linux PC. It can't access the lan. This has nothing to do with sharing.
 
Old 08-12-2003, 10:33 AM   #9
Vengenc
LQ Newbie
 
Registered: Aug 2003
Posts: 13

Rep: Reputation: 0
Sounds to me like you have 1 of 3 problems

1. Bad card.
2. Bad cable.
3. Cable plugged into wrong ethernet card

Of course you should check those in reverse order.
 
Old 08-12-2003, 12:53 PM   #10
<Ol>Origy
Member
 
Registered: Aug 2003
Location: Slovenia
Distribution: Arch, Debian, Embedded
Posts: 136

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by Vengenc
Sounds to me like you have 1 of 3 problems

1. Bad card.
2. Bad cable.
3. Cable plugged into wrong ethernet card

Of course you should check those in reverse order.
1: No it is not bad card. I tried using the other one for lan but it didn't work either. It worked before... when I still had Windows 98 on the PC.

2: No. The cable is fine. I have been using this cable before and if it wasn't fine I guess the lights on the switch and the network card wouldn't come up.

3: Wrong again. I know it's plugged into the right card because I have labelled them.

I have none of the 3 problems you listed. There is probably something misconfigured in linux... But what?

Is there an expert in da house?
 
Old 08-12-2003, 12:57 PM   #11
sorrodos
Member
 
Registered: Jul 2003
Location: Salt Lake City, UT and Spokane, WA
Distribution: Mandrake 10.0, Gentoo, FreeSBIE 1.0
Posts: 345

Rep: Reputation: 30
What type of card are you using? Did RH's installation correctly configure it? I've had issues w/ RH not recognizing my network card before, and it was a pretty common one. Thats why I switched to SuSE
 
Old 08-12-2003, 01:08 PM   #12
<Ol>Origy
Member
 
Registered: Aug 2003
Location: Slovenia
Distribution: Arch, Debian, Embedded
Posts: 136

Original Poster
Rep: Reputation: 15
I'm using a 10/100 fast ethernet PCI (LAN) card - RealTek RTL-8139, SMC EZ Card
"Did RH's installation correctly configure it?" - How should I know. I was asked to configure the cards during the installation. I configured one (the lan one) manually and the other one with DHCP. Both now appear in the Network Configuration tool so I assume it's okay. eth0 - the DHCP one is inactive because I'll be using it later. This means we have to focus on eth1 - the lan one. This one is activated on boot and has an IP of: 192.168.1.1

Last edited by <Ol>Origy; 08-12-2003 at 01:10 PM.
 
Old 08-12-2003, 01:13 PM   #13
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
It is funny that you don't have a default route but that shouldn't change local trafic. You could try:
route add default gw 192.168.1.2

What do your config files look like:
grep "" /etc/sysconfig/network-scripts/ifcfg*
cat /etc/sysconfig/network
 
Old 08-12-2003, 01:43 PM   #14
sorrodos
Member
 
Registered: Jul 2003
Location: Salt Lake City, UT and Spokane, WA
Distribution: Mandrake 10.0, Gentoo, FreeSBIE 1.0
Posts: 345

Rep: Reputation: 30
On my machine, I have a wireless LAN card and an Ethernet card. I use the wireless one when I am home during the summer and the ethernet one while I am at school the rest of the year. I am at home now, so my Ethernet card is inactive. Unless I stop Linux from interfacing with it, I cannot connect with my wireless card at home. Remove your DHCP card for now and see if you can connect to your network. Then when you setup up your physical connection, reconnect and reconfigure the DHCP card and see if that works.
 
Old 08-12-2003, 01:53 PM   #15
<Ol>Origy
Member
 
Registered: Aug 2003
Location: Slovenia
Distribution: Arch, Debian, Embedded
Posts: 136

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by david_ross
It is funny that you don't have a default route but that shouldn't change local trafic. You could try:
route add default gw 192.168.1.2

What do your config files look like:
grep "" /etc/sysconfig/network-scripts/ifcfg*
cat /etc/sysconfig/network
I typed "route add default gw 192.168.1.2" in the terminal but it just accepted the line. What was this supposed to do again?

"grep "" /etc/sysconfig/network-scripts/ifcfg*" returns:
/etc/sysconfig/network-scripts/ifcfg*
/etc/sysconfig/network-scripts/ifcfg-eth0EVICE=eth0
/etc/sysconfig/network-scripts/ifcfg-eth0:BOOTPROTO=dhcp
/etc/sysconfig/network-scripts/ifcfg-eth0:ONBOOT=no
/etc/sysconfig/network-scripts/ifcfg-eth0:USERCTL=no
/etc/sysconfig/network-scripts/ifcfg-eth0:PEERDNS=yes
/etc/sysconfig/network-scripts/ifcfg-eth0:TYPE=Ethernet
/etc/sysconfig/network-scripts/ifcfg-eth1EVICE=eth1
/etc/sysconfig/network-scripts/ifcfg-eth1:BOOTPROTO=none
/etc/sysconfig/network-scripts/ifcfg-eth1:BROADCAST=192.168.1.255
/etc/sysconfig/network-scripts/ifcfg-eth1:IPADDR=192.168.1.1
/etc/sysconfig/network-scripts/ifcfg-eth1:NETMASK=255.255.255.0
/etc/sysconfig/network-scripts/ifcfg-eth1:NETWORK=192.168.1.0
/etc/sysconfig/network-scripts/ifcfg-eth1:ONBOOT=yes
/etc/sysconfig/network-scripts/ifcfg-eth1:USERCTL=no
/etc/sysconfig/network-scripts/ifcfg-eth1:PEERDNS=no
/etc/sysconfig/network-scripts/ifcfg-eth1:TYPE=Ethernet
/etc/sysconfig/network-scripts/ifcfg-loEVICE=lo
/etc/sysconfig/network-scripts/ifcfg-lo:IPADDR=127.0.0.1
/etc/sysconfig/network-scripts/ifcfg-lo:NETMASK=255.0.0.0
/etc/sysconfig/network-scripts/ifcfg-lo:NETWORK=127.0.0.0
/etc/sysconfig/network-scripts/ifcfg-lo:# If you're having problems with gated making 127.0.0.0/8 a martian,
/etc/sysconfig/network-scripts/ifcfg-lo:# you can change this to something else (255.255.255.255, for example)
/etc/sysconfig/network-scripts/ifcfg-lo:BROADCAST=127.255.255.255
/etc/sysconfig/network-scripts/ifcfg-lo:ONBOOT=yes
/etc/sysconfig/network-scripts/ifcfg-lo:NAME=loopback

"cat /etc/sysconfig/network" returns:
NETWORKING=yes
HOSTNAME=lcserver

I can open files in Konqueror with a text editor and copy text from there too.

Quote:
Originally posted by sorrodos
On my machine, I have a wireless LAN card and an Ethernet card. I use the wireless one when I am home during the summer and the ethernet one while I am at school the rest of the year. I am at home now, so my Ethernet card is inactive. Unless I stop Linux from interfacing with it, I cannot connect with my wireless card at home. Remove your DHCP card for now and see if you can connect to your network. Then when you setup up your physical connection, reconnect and reconfigure the DHCP card and see if that works.
Okay. I will do that now. Remove... You mean the hardware, right?

Last edited by <Ol>Origy; 08-12-2003 at 01:54 PM.
 
  


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
problems creating bootsplash babag Mandriva 4 04-16-2005 12:35 PM
Creating a Server in a LAN Environment Nukem Linux - General 3 11-06-2004 03:38 PM
10.0 creating problems with iptables ryedunn Mandriva 1 03-15-2004 12:11 AM
Problem creating LAN with Linux and windows XP PC kouyou Linux - Networking 1 02-29-2004 01:53 PM
Problem in creating Lan in Linux and windows environment ann6260 Linux - Networking 2 08-12-2003 01:30 AM

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

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