LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Problems creating LAN. Need help! (https://www.linuxquestions.org/questions/linux-networking-3/problems-creating-lan-need-help-80987/)

<Ol>Origy 08-11-2003 11:52 AM

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.

david_ross 08-11-2003 12:29 PM

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

<Ol>Origy 08-11-2003 02:57 PM

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.

js_530 08-12-2003 12:23 AM

Don't forget to disable the firewall that Red Hat comes with. It's under the setup menu.

Robert0380 08-12-2003 03:26 AM

post deleted after further reading the original post

<Ol>Origy 08-12-2003 04:10 AM

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.

thomassounness 08-12-2003 06:01 AM

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

<Ol>Origy 08-12-2003 10:09 AM

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.

Vengenc 08-12-2003 10:33 AM

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.

<Ol>Origy 08-12-2003 12:53 PM

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?

sorrodos 08-12-2003 12:57 PM

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 :)

<Ol>Origy 08-12-2003 01:08 PM

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

david_ross 08-12-2003 01:13 PM

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

sorrodos 08-12-2003 01:43 PM

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.

<Ol>Origy 08-12-2003 01:53 PM

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-eth0:DEVICE=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-eth1:DEVICE=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-lo:DEVICE=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?


All times are GMT -5. The time now is 10:37 AM.