LinuxQuestions.org
Help answer threads with 0 replies.
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 11-29-2009, 12:39 AM   #1
stevena
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

Code:
DEVICE=eth0
BOOTPROTO=none
HWADDR=00:1f:c6:ca:a3:ef
IPADDR=10.16.10.96
NETMASK=255.255.255.0
ONBOOT=yes
GATEWAY=10.16.10.254
TYPE=Ethernet
USERCTL=yes
IPV6INIT=no
PEERDNS=yes
IPADDR=10.16.10.96
my routing table
Code:
[root@cvs_server ~]# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.16.10.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
0.0.0.0         10.16.10.254    0.0.0.0         UG    0      0        0 eth0
my etc/hosts
Code:
[root@cvs_server ~]# more /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1       localhost       localhost
10.16.10.96     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
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,066

Rep: Reputation: 295Reputation: 295Reputation: 295
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
nimnull22
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
ping 10.16.10.96
ping 10.16.10.254

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

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

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

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

--- 10.16.10.96 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 10.16.10.254
PING 10.16.10.254 (10.16.10.254) 56(84) bytes of data.
From 10.16.10.254 icmp_seq=1 Destination Host Unreachable

....
 
  


Reply

Tags
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


All times are GMT -5. The time now is 12:23 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration