[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 304
  • Last Modified:

Linux Network trouble. Need help

All,

I installed Redhat 9.0 on a system in my home.  The computer is connected to a linksys router but currently cannot ping the router or any local computer or anything out on the internet.  It acts as though it's locked out.  I have checked all cable connections and they are live and work properly.  I do have the firewall turned off on the linux box.

The box is running Linux 9 (Redhat) with Gnome GUI.

I was looking for any assistance if possible.

Below are results for some  tests I run

Here is the route -en
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
192.168.2.0     0.0.0.0         255.255.255.0   U         0 0          0 eth0
169.254.0.0     0.0.0.0         255.255.0.0     U         0 0          0 eth0
127.0.0.0       0.0.0.0         255.0.0.0       U         0 0          0 lo
0.0.0.0         192.168.2.1     0.0.0.0         UG        0 0          0 eth0


Here is the lsmod
Module                  Size  Used by    Not tainted
nls_iso8859-1           3516   1  (autoclean)
nls_cp437               5116   1  (autoclean)
sd_mod                 13516   0  (autoclean)
vfat                   13004   1  (autoclean)
fat                    38808   0  (autoclean) [vfat]
parport_pc             19076   1  (autoclean)
lp                      8996   0  (autoclean)
parport                37056   1  (autoclean) [parport_pc lp]
iptable_filter          2412   0  (autoclean) (unused)
ip_tables              15096   1  [iptable_filter]
autofs                 13268   0  (autoclean) (unused)
3c59x                  30704   1
sr_mod                 18136   0  (autoclean)
ide-scsi               12208   0
ide-cd                 35708   0
cdrom                  33728   0  [sr_mod ide-cd]
usb-storage            69332   0
scsi_mod              107160   4  [sd_mod sr_mod ide-scsi usb-storage]
keybdev                 2944   0  (unused)
mousedev                5492   1
hid                    22148   0  (unused)
input                   5856   0  [keybdev mousedev hid]
usb-uhci               26348   0  (unused)
usbcore                78784   1  [usb-storage hid usb-uhci]
ext3                   70784   2
jbd                    51892   2  [ext3]


And ifconfig -a
[CODE]
eth0      Link encap:Ethernet  HWaddr 00:A0:24:E0:4B:6C  
          inet addr:192.168.2.145  Bcast:192.168.2.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:4 errors:0 dropped:0 overruns:0 frame:0
          TX packets:284 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:240 (240.0 b)  TX bytes:17157 (16.7 Kb)
          Interrupt:10 Base address:0xe400

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:8232 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8232 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:564175 (550.9 Kb)  TX bytes:564175 (550.9 Kb)

iptables -en returns

Nothing but blank Forward/Outgoing etc.

Again I cannot get out of the linux box to my local network or the Internet.

This linux box is behind a linksys router/switch.  IP of router.  (192.168.2.1)

Thanks,

Roger
0
Rog D
Asked:
Rog D
  • 5
  • 3
  • 2
  • +2
2 Solutions
 
wesly_chenCommented:
Hi,

   Can you do
# grep -i eth0 /var/log/messages
to see any error messages and post the output here?

Wesly
0
 
Rog DManager Inforamtion SystemsAuthor Commented:
No Errors are showing up.... I see where eth0 comes up successful.

It can ping localhost and it's own ip but nothing else.

Roger
0
 
wesly_chenCommented:
Hi,

   How about any error message in /var/log/dmesg?
Do you see "eth0: Transmit error, TX status ...." in /var/log/messages?
Could you post the output of
# grep -i eth0 /var/log/messages

Wesly
0
NEW Veeam Backup for Microsoft Office 365 1.5

With Office 365, it’s your data and your responsibility to protect it. NEW Veeam Backup for Microsoft Office 365 eliminates the risk of losing access to your Office 365 data.

 
owensleftfootCommented:
Try "route add default gw 192.168.2.1"
0
 
wesly_chenCommented:
>Here is the route -en
>Kernel IP routing table
>Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
>192.168.2.0     0.0.0.0         255.255.255.0   U         0 0          0 eth0
>169.254.0.0     0.0.0.0         255.255.0.0     U         0 0          0 eth0
>127.0.0.0       0.0.0.0         255.0.0.0       U         0 0          0 lo
>0.0.0.0         192.168.2.1     0.0.0.0         UG        0 0          0 eth0    <=== default gateway

Default gateway is already there.
But you can delete the redantant route:
# route del -net 169.254.0.0 netmask 255.255.0.0

Wesly

0
 
Rog DManager Inforamtion SystemsAuthor Commented:
I did remove the 169.254.0.0 entry.

Nothing changed.

It seems that when I set the network device to DHCP and activate it, it hangs like it isn't getting information from the linksys router.  Other widnows systems connected to the router are working properly and getting ip informaiton.  I am beginning to think it's something with the way linksys router is talking to a Linux box?????

Roger
0
 
martapCommented:

It might be something as simple as a defective NIC. You could also try to replace the UTP cable.
0
 
xDamoxCommented:
have you tryed redhats network config?

Using DHCP
Using DHCP is the easiest and best way of setting up networking.  To use DHCP there must be a DHCP server on your local network.  NMU has such a server.
To set up dhcp, you must have the ethenet card working.   After that, just edit the /etc/sysconfig/network-scripts/ifcfg-eth0 to include the proto line as shown below.
DEVICE="eth0"
ONBOOT="yes"
IPADDR="198.110.193.9"
NETMASK="255.255.255.0"
BOOTPROTO="dhcp"
Setting up the Ethernet Card Address
To set up the ethernet card you will need to know your netmask.  Your netmask is used to tell if a given IP address is on the given network.  You netmask is dependent on the class of your network.  A Class C network has a netmask of 255.255.255.0, a Class B network has a netmask of 255.255.0.0.  Custom subnets have different netmasks.

You can then configure your card by hand with a command like
ifconfig eth0 netmask 255.255.255.0 198.110.193.101 up

You can make these settings permenant by editing /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
IPADDR=198.110.193.9
NETMASK=255.255.255.0
NETWORK=198.110.193.0
BROADCAST=198.110.193.255
ONBOOT=yes
Checking Ethernet Card Status
You can check the ethernet card at this point to make sure it's working by restarting the network and then trying to ping a machine GIVEN ITS IP NUMBER and ASSUMING ITS ON THE LOCAL NET.  Other functionality is not yet set up.  Try a command like

   /etc/rc.d/init.d/network restart
   ping 198.110.193.9

If everything is fine
0
 
owensleftfootCommented:
Have you tried giving the linux box a static ip?
0
 
wesly_chenCommented:
Hi,

   I've 3Com 10/100 (3C90x) NIC card in my RedHat box and show up in "lsmod" as
-----
3c59x                  30704   1
----
as yours.

   I've the same problem with that all network configuration are right (static IP, clean routing table, NIC driver loaded and
recognized by OS). But just can not ping my DSL router (default gateway in the same network). My linux box is dual
boot with Win98se, which has no problem to surf internet.

   I found "eth0: Transmit error, TX status ...." in /var/log/messages and dmesg, but I couldn't figure it out the cause.
First, I suspect my netgear gigabit 8-port switch which the Linux 3Com driver didn't do the good job to negotiate transfer rate.
Changed the switch still failed.

   Finally, I pulled out the modem and the network is up.....   (tear...)

   Anyway, this may not suit your case, but you might want to switch NIC card to test.

   Never give up, which is my principle.

Regards,

Wesly
0
 
Rog DManager Inforamtion SystemsAuthor Commented:
I did take out the modem card.  Now everything seems to be going well.  Thanks for the tip though as this is the exact situation I had

Rog
0
 
wesly_chenCommented:
Gald to hear that everything go smoothly now.

I think the IRQ assignment in Linux doesn't do the good job
or the reserved IRQ range for Linux and Windows are different. So works for Windows doesn't work for Linux.

Regards,

Wesly
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

  • 5
  • 3
  • 2
  • +2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now