View Full Version : ping to router/gateway from frdora
patpat77
2006-05-14, 10:34 PM CDT
Hi GURUS,
Need some help on configuring a router connection on Linux
I am using fedora 4 and its directly connected to a linksys wireess router using RJ45 (not using the wireless option for now as my broadcom wirless card is not identified by Fedora)
ipadress of the Linux machine is 192.168.1.102
ipaddress of the linksys router is 192.168.1.1
The router is connected to the internet and I have no problems accessing the internet or the router properties from windows machine but when I try to ping the router from Linux it gives destination host not reachable.
Router ipaddress is given as the gateway on Linux server
ifconfig shows all the infrmation propery and the routing table also shows that it will be forwarding all the requests to the gateway /router .
Do we have any restrictions if Linux is conected directly to the router?
How can I make the Linux machine ping to the router?
Thanks
mndar
2006-05-14, 10:45 PM CDT
Check the cables first. Use the same cable with your other working machine.
If the cable is not the problem, post the outputs of the two commands you've referred to viz. ifconfig and route -n just to make the picture clearer.
It might be a misconfigured firewall. Try stopping iptables. /etc/init.d/iptables stop
It could also be SELinux. Try disabling that. There are two ways.
Edit /etc/selinux/config. Set SELINUX=disabled
patpat77
2006-05-14, 11:37 PM CDT
Check the cables first. Use the same cable with your other working machine.
If the cable is not the problem, post the outputs of the two commands you've referred to viz. ifconfig and route -n just to make the picture clearer.
It might be a misconfigured firewall. Try stopping iptables. /etc/init.d/iptables stop
It could also be SELinux. Try disabling that. There are two ways.
Edit /etc/selinux/config. Set SELINUX=disabled
Firewall is already disabled on the server.I tried disabling SELINUX also but has not helped.
The system is configred for multiboot windows and LInux and windows is able to connect to the gateway and internet which shows that the cable is fine.
Here is the ifconfig report
eth0 Link encap:Ethernet HWaddr 00:C0:9F:E8:C2:A7
inet addr:192.168.1.103 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::2c0:9fff:fee8:c2a7/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:78 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:3
Base address:0x1800
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:8467 errors:0 dropped:0 overruns:0 frame:0
TX packets:8467 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:10670764 (10.1 MiB) TX bytes:10670764 (10.1 MiB)
route -n
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 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
traceroute to 192.168.1.1 (gateway address)
1 DYA (192.168.1.103) 3000.535 ms !H 3000.175 ms !H 3000.494 ms !H
Ping to 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
From 192.168.1.103 icmp_seq=1 Destination Host Unreachable
From 192.168.1.103 icmp_seq=2 Destination Host Unreachable
From 192.168.1.103 icmp_seq=3 Destination Host Unreachable
---192.168.1.1 ping statistics ---
7 packets transmitted, 0 received, +3 errors, 100% packet loss, time 5999ms, pipe 4
Thanks
ptsz
2006-05-15, 01:23 AM CDT
Is in your router the ping for the inner network enabled?
patpat77
2006-05-15, 09:36 AM CDT
Hi
I believe inner network ping is enabled.I am able to ping if I load windows.
Also I was able to configure the wireless option on Linux using nidswrapper and that is able to connect to the router and also able to access the internet.
So its just the ethernet connection (eth0) which is creating the problem.
Iron_Mike
2006-05-15, 08:31 PM CDT
You didn't mention if you are running static ip adresses or using DHCP
arrabatthaus
2006-06-09, 06:16 AM CDT
Hello to everyone,
I have the same problem using static IP adress. I use FC4 2.6.1.11_1369 and a Sitecom Wl115 (rt61 obtained by lspci -n and Wiki List) .
I just post my problems at
http://forums.fedoraforum.org/forum/showthread.php?t=110596&highlight=ping
arrabatthaus
2006-06-10, 08:17 AM CDT
Hi,
this message from my Fedora using wireless card !! Finally it works!! :) :)
I used driver and install info from ralink (rt61 chipset) (http://www.ralinktech.com/supp-1.htm).
I also tried using ndiswrapper but driver doesn't works.
I have only a problem: during start-up my system hangs, anyone has some idea about to resolve this situation? :confused:
Thanks!
P.
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.