On 21 Mar 2008, at 02:09, Alexander Rozhkov wrote:
I connect to Internet through VPN. I decided to put a router (D-Link
DI-604) to split the connection between several computers. I've
managed to make my Mac iBook to work OK with the new setup. Yet my
laptop with Debian refuses to connect to Internet.
The phenomenology is as follows:
1. I can connect to the router itself at http://192.168.0.1/, I can
establish/break connection between the router and my internet
provider.
2. Whenever I try to connect to the outside it fails. The brouser
(Firefox) says: "... could not be found. Please check the name and try
again."
It might not be able to resolve domain names. Can you ping an outside
IP address?
Try visiting sites by their IP, does http://64.233.167.99/ work? (one
of Google's IPs)
What is inside your /etc/resolv.conf?
Try putting the following in your /etc/resolv.conf:
nameserver 208.67.222.222
nameserver 208.67.220.220
and see if it makes a difference.
3. The output of different commands are:
# ifconfig
eth0 Link encap:Ethernet HWaddr 00:0D:56:DC:30:0F
inet addr:192.168.0.105 Bcast:192.168.0.255 Mask:
255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:12 errors:0 dropped:0 overruns:0 frame:0
TX packets:13 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1682 (1.6 KiB) TX bytes:2020 (1.9 KiB)
Interrupt:11
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:102 errors:0 dropped:0 overruns:0 frame:0
TX packets:102 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:6540 (6.3 KiB) TX bytes:6540 (6.3 KiB)
#killall dhclient
# dhclient
Internet Software Consortium DHCP Client 2.0pl5
Copyright 1995, 1996, 1997, 1998, 1999 The Internet Software
Consortium.
All rights reserved.
Please contribute if you find this software useful.
For info, please visit http://www.isc.org/dhcp-contrib.html
Listening on LPF/eth0/00:0d:56:dc:30:0f
Sending on LPF/eth0/00:0d:56:dc:30:0f
Sending on Socket/fallback/fallback-net
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPACK from 192.168.0.1
skiped default router from dhcp server: 192.168.0.1
bound to 192.168.0.105 -- renewal in 302400 seconds.
#more /etc/dhclinet.conf
interface "eth0" {
send dhcp-client-identifier 1:00:0D:56:DC:30:0F;
send dhcp-lease-time 86400;
}
# netstat -r
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window
irtt
Iface
192.168.0.0 * 255.255.255.0 U 0
0 0
eth0
looks like route is missing a gateway, u should have another line
there like this:
default 192.168.0.1 255.255.255.0 UG 0 0 0 eth0
make sure your /etc/network/interfaces has only this for eth0:
allow-hotplug eth0
iface eth0 inet dhcp
--
Siraaj Khandkar
"Information by itself is worthless. It is the critical thinking that
allows us
to process the information that gives the information its value."
- Yasser Seirawan
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]