LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Can't hit the internet, eth1 shows traffic, but can't get out (https://www.linuxquestions.org/questions/linux-networking-3/cant-hit-the-internet-eth1-shows-traffic-but-cant-get-out-255762/)

chiquitomuir 11-16-2004 06:57 PM

Can't hit the internet, eth1 shows traffic, but can't get out
 
Ok, I'm not sure if this should be in the wireless networking section or in this section, but anyways this is the problem:

I'm using a Cisco Aironet 350 wireless pcmcia card, that all works fine, it's loaded, linux sees it and everything, I'm using Cisco's ACU software and that works too, I'm using the LEAP authentication my user is authenticated when I supply the user name and password, I've got the 350 card associated with an access point and there is traffic passing between the two, or at least my card is recieving packets (I assume from the AP).

When I try to ping anything or when I try to hit the internet (using firefox 1.0) I immediately get an error about not being able to find the page or the host is unkown.

It's like linux isn't seeing that eth1 is xmitting, any ideas?

Thanks for the help.

zhangmaike 11-16-2004 08:45 PM

Try adding the line:

nameserver 192.168.0.1

to /etc/resolv.conf, replace 192.168.0.1 with the local IP address of your wireless router if it's different than that (mine is 192.168.0.1).

EDIT: You may also have to run "route add default gw 192.168.0.1 eth1" Once again, replacing 192.168.0.1 with your router's IP.

chiquitomuir 11-16-2004 09:19 PM

Thanks for replying.

Adding the default gateway sounded like the key to me, but no dice, comes up saying that the network is unreachable, which is really wierd because according to the Cisco ACU client it's picking up the Access Point and is displaying it's IP address, but when I try to ping the IP address it too says that the network is unreachable.

Wierd.

Any other ideas?

zhangmaike 11-16-2004 09:50 PM

If you don't already have that line in /etc/resolv.conf, you need to add it in order to get internet working... In order to get my wifi card up and running, I needed to add that line, and run this script on startup:

Code:

#!/bin/bash

echo "Setting encryption key..."
iwconfig ath0 key encryption-key-goes-here

# My card (ath0) has a static ip (192.168.0.192) assigned to it by the router, so no DHCP.
# If you need DHCP, run dhcpcd first, and remove the ip from ifconfig
echo "Setting IP address and bringing up interface..."
ifconfig ath0 192.168.0.192 up

echo "Creating default route and gateway..."
route add default gw 192.168.0.1 ath0

And that's all I had to do... you REALLY need that line in /etc/resolv.conf, though, if you don't already have it.

Apart from that, I'm out of ideas. Try the resolv.conf thing if you haven't already.


All times are GMT -5. The time now is 04:32 PM.