How to build LAN drivers with no internet access
Dotan Cohen
dotancohen at gmail.com
Mon Jul 2 18:55:09 IDT 2012
I can now connect, but I don't have DNS:
shelly at neptune:~$ ping 192.117.111.61
connect: Network is unreachable
shelly at neptune:~$ sudo ifconfig eth0 192.168.0.110 netmask 255.255.255.0
shelly at neptune:~$ sudo route add default gw 192.168.0.1 eth0
shelly at neptune:~$ ping 192.117.111.61
PING 192.117.111.61 (192.117.111.61) 56(84) bytes of data.
64 bytes from 192.117.111.61: icmp_req=1 ttl=64 time=1.21 ms
64 bytes from 192.117.111.61: icmp_req=2 ttl=64 time=0.507 ms
^C
--- 192.117.111.61 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 0.507/0.859/1.212/0.353 ms
shelly at neptune:~$ ping google.com
ping: unknown host google.com
shelly at neptune:~$ ifconfig
eth0 Link encap:Ethernet HWaddr 54:04:a6:82:6b:eb
inet addr:192.168.0.110 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::5604:a6ff:fe82:6beb/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:13 errors:0 dropped:0 overruns:0 frame:0
TX packets:47 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:856 (856.0 B) TX bytes:7339 (7.3 KB)
Interrupt:41 Base address:0xa000
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:160 errors:0 dropped:0 overruns:0 frame:0
TX packets:160 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:11440 (11.4 KB) TX bytes:11440 (11.4 KB)
Why doesn't the DNS work, isn't this how to set it properly (to
Google's public DNS):
shelly at neptune:~$ cat /etc/dhcp3/dhclient.conf
prepend domain-name-servers 8.8.8.8, 8.8.4.4;
prepend domain-name-servers 2001:4860:4860::8888, 2001:4860:4860::8844;
And for that matter, why did I have to set the IP address manually?
Shouldn't that be already set like this:
shelly at neptune:~$ cat /etc/network/interfaces
iface eth0 inet static
address 192.168.0.110
netmask 255.255.255.0
gateway 192.168.0.1
auto lo
iface lo inet loopback
--
Dotan Cohen
http://gibberish.co.il
http://what-is-what.com
More information about the Linux-il
mailing list