I am following this tutorial for setting up a testing server for my web development projects.
When I attempt setting up a static IP address (using the configuration below), I receive the error "ping: unknown host www.google.com" when I attempt using ping.
auto eth0
iface eth0 inet static
address 192.168.0.100
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1
Ping works fine when the configuration is:
auto eth0
iface eth0 inet dhcp
I am a novice to server setup and administration.
Here is the output from /sbin/ifconfig eth0
, as requested:
eth0 Link encap:Ethernet HWaddr 00:08:a1:0d:93:a1
inet addr:192.168.0.100 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::208:a1ff:fe0d:93a1/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:69 errors:0 dropped:0 overruns:0 frame:0
TX packets:303 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:9323 (9.3 KB) TX bytes:12240 (12.2 KB)
Interrupt:21 Base address:0xd800
Output from route -n
:
Kernal IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
0.0.0.0 192.168.0.1 0.0.0.0 UG 100 0 0 eth0
DNS information from /etc/resolv.conf
:
nameserver 192.168.1.1
nameserver 71.242.0.12
domain home
search home