LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Network Connectivity issue (https://www.linuxquestions.org/questions/linux-newbie-8/network-connectivity-issue-608469/)

parpatel2000 12-21-2007 08:30 PM

Network Connectivity issue
 
I installed Fedora Linux 8.0, it has a realtek driver installed for network card. It is being given a static IP Address, I get ping response when pinging it's own IP Address. But cannot ping the gateway, therefore no connectivity to network. Same PC has WindowsXP with same IP Address and same network card working. I tried ifconfig eth0 down and up, ifconfig show that it has IP address. Cannot figure out what to do next for connectivity.

I tried this same process with Fedora 7.0 and Ubuntu, same results. Pleasse help...

{BBI}Nexus{BBI} 12-21-2007 08:33 PM

Check your firewall settings.

parpatel2000 12-21-2007 08:57 PM

I have disabled Firewall to trouble shoot this issue, also SELinux is set to permissive

{BBI}Nexus{BBI} 12-21-2007 09:00 PM

Have you added the ip/hostname(s) to your /etc/hosts file?

parpatel2000 12-21-2007 09:06 PM

No have not added anything in host files

{BBI}Nexus{BBI} 12-21-2007 09:07 PM

Try adding one (or all) and see if it works.

parpatel2000 12-21-2007 09:15 PM

added ip address to hosts file in /etc, still no connectivty
the line I added is 192.168.0.1

is there anything else needed?

parpatel2000 12-21-2007 09:19 PM

I stopped and restarted the network service, and got message " Error adding 192.168.0.12 for eth0" where 192.168.0.12 is my IP Address

{BBI}Nexus{BBI} 12-21-2007 09:19 PM

If you have more than one machine on your network, can any of them ping your fedora box?

parpatel2000 12-21-2007 09:22 PM

Driver is Realtek RTL-8139/8139C/8139C+

parpatel2000 12-21-2007 09:27 PM

No, other PC cannot ping this one, when I try to ping a gateway from this problem computer, I get message of Host unreachable, if that helps

{BBI}Nexus{BBI} 12-21-2007 09:28 PM

Can you post the output of ifconfig to this thread? Also your /etc/hosts file content.

parpatel2000 12-21-2007 09:45 PM

[root@localhost etc]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:40:CA:3C:21:7A
inet addr:192.168.0.12 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::240:caff:fe3c:217a/64 Scope:Link
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:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:18 Base address:0xa000



lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:4683 errors:0 dropped:0 overruns:0 frame:0
TX packets:4683 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3595868 (3.4 MiB) TX bytes:3595868 (3.4 MiB)







[root@localhost etc]# more hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
192.168.0.1
127.0.0.1 localhost.localdomain localhost nssinc
::1 localhost.localdomain localhost nssinc
[root@localhost etc]#

{BBI}Nexus{BBI} 12-21-2007 10:19 PM

Can you locate your ifcfg-eth0 file and post its contents.

I'm not sure if it makes any difference, but the highlighted line should appear on a separate line after your local 127.0.0.1 address.

Quote:

[root@localhost etc]# more hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
192.168.0.1
127.0.0.1 localhost.localdomain localhost nssinc
::1 localhost.localdomain localhost nssinc

parpatel2000 12-21-2007 10:41 PM

This is the output of ifcfg-eth0

#Realtek Semiconductor Co., Ltd RTL-8139/8139C/8139C+
DEVICE-eth0
BOOTPROTO=none
HWADDR=00:40:CA:3C:21:7A
ONBOOT=yes
NETMASK=255.255.255.0
IPADDR=192.168.0.12
GATEWAY=192.168.0.1
TYPE=Ethernet
USERCTL=no
IPV6INIT=no
PEERDNS=yes
MTU=1500
[root@localhost devices]#


All times are GMT -5. The time now is 06:31 PM.