LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Wireless Networking (https://www.linuxquestions.org/questions/linux-wireless-networking-41/)
-   -   Wirless connection but unable to access internet (https://www.linuxquestions.org/questions/linux-wireless-networking-41/wirless-connection-but-unable-to-access-internet-423147/)

wildcat06 03-09-2006 08:30 AM

Wirless connection but unable to access internet
 
I have seen similar post and have tried to resolve my problem. But haven't been able to.
I have Linksys router which is connected to a DSL Modem. I have connected my windows 2000 PC to the router using the ethernet card. This machine can access internet fine. I have a fedora core 3 labtop with intel wireless card. I can connect to the router fine and an ip address gets assigned to the labtop. But I am unable to ping yahoo.com or its IP address. Here is some command output

resolv.conf

; generated by /sbin/dhclient-script
search domain_not_set.invalid
nameserver 68.94.156.1
nameserver 68.94.157.1

route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1

ifconfig

eth1 Link encap:Ethernet HWaddr 00:0E:35:3A:FD:91
inet addr:192.168.2.101 Bcast:192.168.2.255 Mask:255.255.255.0
inet6 addr: fe80::20e:35ff:fe3a:fd91/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3614 errors:0 dropped:0 overruns:0 frame:0
TX packets:1008 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:130432 (127.3 KiB) TX bytes:63490 (62.0 KiB)
Interrupt:11 Base address:0x2000 Memory:c0210000-c0210fff

I have tried adding a default gateway by
route add gw 192.168.2.1 dev eth1.
But that does not seem to solve the problem. Any advice would be appricated. Thank you for taking the time and reading the post.

ralvez 03-09-2006 09:11 AM

OK. Your routing table shows the problem, it reads:
192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
but should read:
192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
0.0.0.0 192.168.2.1 0.0.0.0 UG 0 0 0 eth1

I think that the reason it did not get added is because there is an error in the command to add it, it should read:
route add default gw 192.168.2.1 eth1

Try it, see if it works.

R

wildcat06 03-09-2006 09:51 AM

I will try it this evening and share the results. Thank You.

wildcat06 03-09-2006 06:34 PM

I ran the command. It did not give me any error. But I am still unable to ping yahoo.com. Also when run the command route, it just shows the one entry. I am logged in as root. Is there any other way to add a gateway.

wildcat06 03-09-2006 06:36 PM

Here is the output of route
192.168.2.0 * 255.255.255.0 U 0 0 0 eth1 .

wildcat06 03-27-2006 09:08 AM

OK. I figured out my problem. It is the Network Manager that is overwriting my routing information. I am not sure why. But once I shut down the process, I have a wireless connection....finally!!!...


All times are GMT -5. The time now is 12:25 AM.