Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 11-29-2009, 12:39 AM   #1
LQ Newbie
Registered: Oct 2009
Posts: 11

Rep: Reputation: 0
Question cannot connect to local network although everything is configured properly

running RedHat Enterprise Linux 4.
here's my /etc/sysconfig/network-scripts/ifcfg-eth0

my routing table
[root@cvs_server ~]# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface   U     0      0        0 eth0     U     0      0        0 eth0         UG    0      0        0 eth0
my etc/hosts
[root@cvs_server ~]# more /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.       localhost       localhost     cvs_server
i made sure that iptables are off too.
when i start the network connection i can see from the log that there were no errors during the startup but i cannot access the other machines on the local network nor does this machine accept incoming connections too because it cannot be seen from all the other machines. the weirdest thing is that sometimes if i restart the machine IT WORKS( sometimes after a couple of restarts ) !!! i haven't been able to find out why, i didn't change anything in the configuration nothing at all.
Old 11-29-2009, 03:51 PM   #2
Senior Member
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,284

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
Check the output of "ifconfig eth0" (no quotes) to make sure that the IP address is actually being assigned and that packets are being transmitted/received. If you get something like "eth0: device not found" it means you don't have the rioght friver. Is it possible that you have two network interfaces plugged into the computer and you simply have the cable plugged into the wrong one?
Old 11-29-2009, 04:00 PM   #3
Senior Member
Registered: Jul 2009
Distribution: OpenSuse 11.1, Fedora 14, Ubuntu 12.04/12.10, FreeBSD 9.0
Posts: 1,571

Rep: Reputation: 92
do please:
ifconfig eth0 down
ifconfig eth0 up

Post outputs here, please.
Old 11-30-2009, 04:15 AM   #4
LQ Newbie
Registered: Oct 2009
Posts: 11

Original Poster
Rep: Reputation: 0
Originally Posted by nimnull22 View Post
do please:
ifconfig eth0 down
ifconfig eth0 up

Post outputs here, please.
after i first posted i restarted a couple of times and now it's working but i did what you're asking for before( ifdown and ifup eth0 ), the IP was assigned to eth0.

this is what i was having when pinging the gateway and eth0

[root@cvs_server ~]# ping
PING ( 56(84) bytes of data.
64 bytes from icmp_seq=0 ttl=64 time=0.026 ms
64 bytes from icmp_seq=1 ttl=64 time=0.023 ms

--- ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 999ms
rtt min/avg/max/mdev = 0.023/0.024/0.026/0.005 ms, pipe 2

[root@cvs_server ~]# ping
PING ( 56(84) bytes of data.
From icmp_seq=1 Destination Host Unreachable



local, network

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
I can connect in local network but no internet connection? RMLinux Linux - Newbie 3 12-03-2008 12:18 AM
Can I connect a pc to my local network if I have a real IP Linux Fan Linux - Networking 3 08-29-2008 04:33 PM
Unable to connect properly to local web server from Gentoo Gethyn Linux - Networking 3 09-25-2006 04:04 PM
network card configured, but still can't connect to router! mikeh2 Linux - Wireless Networking 9 11-11-2005 06:34 AM
ssh wont connect outside of local network clintonkerr Linux - Software 9 09-20-2005 07:35 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:46 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration