ph0 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 20 Jun 2003 Posts: 65 Location: Germany / Bayern
|
Posted: Sun Apr 17, 2005 12:46 pm Post subject: [solved]Network unreachable (WLAN) |
|
|
Hello,
I've set up linux-wlan-ng for my prism2_usb and it works just fine for LAN-connections, pings, resolves etc. But it won't pass the gateway. DNS-resolving works, but see yourself:
Quote: | tealc root # ifconfig wlan0
wlan0 Link encap:Ethernet HWaddr 00:0C:46:27:B4:CE
inet addr:192.168.0.6 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5055 errors:0 dropped:0 overruns:0 frame:0
TX packets:3780 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:5108685 (4.8 Mb) TX bytes:284140 (277.4 Kb)
tealc root # route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 192.168.0.1 255.255.255.0 UG 0 0 0 wlan0
192.168.0.0 * 255.255.255.0 U 0 0 0 wlan0
loopback localhost 255.0.0.0 UG 0 0 0 lo
tealc root # cat /etc/resolv.conf
domain home.net
nameserver 192.168.0.1
tealc root # ping -c 1 192.168.0.1
PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.
64 bytes from 192.168.0.1: icmp_seq=1 ttl=64 time=16.2 ms
--- 192.168.0.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 16.200/16.200/16.200/0.000 ms
tealc root # ping www.heise.de
connect: Network is unreachable |
If I enter the IP of heise.de, it says the same. If I enter a public DNS-server into resolv.conf, it can't resolv anymore.
This laptop has two LAN-devices: eth0 and wlan0. eth0 has 192.168.0.4 and wlan0 192.168.0.6. Both are enabled for forwarding on the router and work on other machines (as their IPs). I thought they might conflict with each other, so I brought eth0 down (ifconfig eth0 down) and even rmmodded the module. It won't work then too.
I've no idea what to do and would really appreciate any suggestions.
Thanks,
ph0
[edit] solution:
eth0 has to be in e.g. 192.168.1.4 and THEN you have to add a new default-route for wlan0, then it works. A pity that I have to change that each time I want to use wlan0 ![Sad :(](images/smiles/icon_sad.gif) |
|